/*====================*/
/*===== STYLE 1 =====*/
/*====================*/
.tbl-profit td{
	border-color: #2F318B;
	border-width: 1px;
	border-style: solid;
}
.tbl-profit .tbl-bg-bluex{
	background-color: #2F318B;color: white;padding: 4px;
}
.tbl-profit .tbl-tt{
	font-weight: bold;font-size: 12pt;
}
.tbl-profit .tbl-tt2{
	font-size: 10pt;
}

/*====================*/
/*===== STYLE 2 =====*/
/*====================*/
/* Base Styles */
.savings-calculator-container {
	max-width: 500px;
	margin: 0px auto auto auto;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calculator-header {
	text-align: center;
	margin-bottom: 25px;
}

.calculator-header h2 {
	color: #2c3e50;
	font-size: 1.8rem;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;

	/* Untuk mobile */
	@media (max-width: 767px) {
		font-size: 1.5rem;
	}
}

.calculator-header .subtitle {
	color: #7f8c8d;
	font-size: 1rem;
	margin-top: 0;
}

/* Calculator Card */
.calculator-card {
	background: white;
	border-radius: 16px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.card-header {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-icon {
	font-size: 1.8rem;
}

.header-text h3 {
	margin: 0;
	font-size: 1.3rem;
}

.header-text p {
	margin: 5px 0 0;
	font-size: 0.7rem;
	opacity: 0.9;
}

/* Calculator Form */
.calculator-form {
	padding: 25px;

	/* Untuk desktop */
	@media (min-width: 768px) {
		overflow-y: auto;
		height: 55vh; /* 80% dari viewport height */
		display: flex;
		flex-direction: column;
		padding-bottom: 20px; /* Padding bottom container */
	}
	/* Untuk mobile */
	@media (max-width: 767px) {
		margin-bottom: 120px;
		height: auto;
		max-height: none;
		padding: 20px;
	}
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #2c3e50;
	font-weight: 500;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.input-group {
	position: relative;
}

.input-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #7f8c8d;
	font-weight: 500;
}

/* Required Field Indicators */
.required-field input,
.required-field select {
	border-left: 3px solid #e74c3c;
}
.required-field .select2-selection--single {
	border-left: 3px solid #E74C3C !important;
}
.required-field label {
	font-weight: 600;
}

.form-input {
	width: 100%;
	padding: 6px 15px 6px 40px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.3s;
	box-sizing: border-box;
}

.form-input:focus {
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
	outline: none;
}

/* Calculate Button */
.calculate-btn {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #2ecc71, #27ae60);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 15px 0 0px 0;
}

.calculate-btn:hover {
	background: linear-gradient(135deg, #27ae60, #2ecc71);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Results */
.result-container {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 10px 20px 5px 20px;
	margin-top: 20px;
	border-left: 4px solid #2ecc71;
}

.result-header {
	color: #2c3e50;
	font-weight: 500;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.result-amount {
	font-size: 1.5rem;
	font-weight: 600;
	color: #27ae60;
	margin-bottom: 15px;
}

.result-details {
	border-top: 1px solid #eaeaea;
	padding-top: 15px;
}

.detail-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.detail-item:last-child {
	margin-bottom: 0;
}

/* Footer */
.calculator-footer {
	padding: 15px 25px;
	background: #f8f9fa;
	color: #7f8c8d;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 8px;
	border-top: 1px solid #eaeaea;
}

/* Modal Styles */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-container {
	background: white;
	border-radius: 12px;
	width: 90%;
	max-width: 400px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content {
	padding: 25px;
	text-align: center;
}

.modal-logo img {
	max-width: 60%;
	margin-bottom: 20px;
}

.modal-text {
	margin-bottom: 20px;
	color: #2c3e50;
	line-height: 1.6;
}

.modal-link {
	display: inline-block;
	margin-top: 15px;
	padding: 10px 15px;
	background: #3498db;
	color: white;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.modal-link:hover {
	background: #2980b9;
	transform: translateY(-2px);
}

.modal-close {
	width: 100%;
	padding: 10px;
	background: #f8f9fa;
	border: none;
	border-radius: 6px;
	color: #7f8c8d;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
}

.modal-close:hover {
	background: #eaeaea;
}


/*====================*/
/*===== STYLE 3 =====*/
/*====================*/
/* Additional styles for collapsible section */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
  color: #3498db;
  font-weight: 500;
  transition: all 0.3s;
}

.collapsible-header:hover {
  color: #2980b9;
}

.collapsible-header i {
  transition: transform 0.3s;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 5px;
}

.collapsible-content ul {
  padding-left: 10px;
  margin-top: 10px;
  list-style-type: none;
}

.collapsible-content li {
  margin-bottom: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.collapsible-container{
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
}

.collapsible-container.active .collapsible-header i {
  transform: rotate(180deg);
}

.collapsible-container.active .collapsible-content {
  max-height: 500px; /* Adjust based on content height */
}