/* ==========================================================================
   Convert Solar to Lunar Date Styles (Đổi Ngày Dương Sang Âm)
   ========================================================================== */

.convert-page-main {
	padding: 24px 0 60px;
	background-color: var(--color-bg, #fcfaf7);
	min-height: calc(100vh - 200px);
}

/* Hero Section */
.convert-hero-header {
	text-align: center;
	max-width: 860px;
	margin: 0 auto 32px;
	padding: 0 16px;
}

.convert-hero-badge {
	display: inline-block;
	background: linear-gradient(135deg, #a62c2b 0%, #851c1b 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 14px;
	box-shadow: 0 4px 12px rgba(166, 44, 43, 0.2);
}

.convert-page-title {
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 800;
	color: var(--color-primary, #a62c2b);
	margin: 0 0 12px;
	line-height: 1.25;
}

.convert-page-desc {
	font-size: 15px;
	line-height: 1.65;
	color: #555;
	margin: 0 auto;
	max-width: 720px;
}

/* Form Card */
.convert-form-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 26px 28px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid #ebdcd3;
	margin-bottom: 36px;
	position: relative;
	overflow: hidden;
}

.convert-form-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #a62c2b 0%, #d4af37 50%, #a62c2b 100%);
}

.convert-form-grid {
	display: grid;
	grid-template-columns: 1.2fr 2fr auto;
	gap: 20px;
	align-items: flex-end;
}

.form-group label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #444;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.input-with-icon {
	position: relative;
	display: flex;
	align-items: center;
}

.input-with-icon .form-control {
	width: 100%;
	height: 46px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #222;
	border: 1.5px solid #dcd3cb;
	border-radius: 10px;
	background-color: #fdfbf9;
	transition: all 0.2s ease;
}

.input-with-icon .form-control:focus {
	outline: none;
	border-color: #a62c2b;
	box-shadow: 0 0 0 3px rgba(166, 44, 43, 0.12);
	background-color: #fff;
}

.input-icon {
	position: absolute;
	right: 12px;
	pointer-events: none;
	font-size: 16px;
}

.select-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr;
	gap: 10px;
}

.select-wrap {
	position: relative;
}

.form-select {
	width: 100%;
	height: 46px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	border: 1.5px solid #dcd3cb;
	border-radius: 10px;
	background-color: #fdfbf9;
	cursor: pointer;
	transition: all 0.2s ease;
}

.form-select:focus {
	outline: none;
	border-color: #a62c2b;
	box-shadow: 0 0 0 3px rgba(166, 44, 43, 0.12);
	background-color: #fff;
}

.btn-convert-submit {
	height: 46px;
	padding: 0 24px;
	background: linear-gradient(135deg, #a62c2b 0%, #851c1b 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(166, 44, 43, 0.3);
	white-space: nowrap;
}

.btn-convert-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(166, 44, 43, 0.4);
	filter: brightness(1.05);
}

.btn-convert-submit:active {
	transform: translateY(0);
}

/* Quick Chips */
.convert-quick-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px dashed #e8ddd4;
}

.chips-label {
	font-size: 13px;
	font-weight: 700;
	color: #777;
}

.chip-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 20px;
	background-color: #f5eee8;
	color: #5d4037;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.chip-btn:hover {
	background-color: #ebdcd1;
	color: #a62c2b;
	text-decoration: none;
}

.chip-btn--active {
	background: #a62c2b;
	color: #fff;
	border-color: #851c1b;
	box-shadow: 0 2px 8px rgba(166, 44, 43, 0.25);
}

.chip-btn--active:hover {
	background: #851c1b;
	color: #fff;
}

/* Result Section */
.convert-result-section {
	background: #ffffff;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
	border: 1px solid #ebdcd3;
	margin-bottom: 40px;
}

.convert-result-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f2e9e2;
}

.convert-result-heading h2 {
	font-size: 22px;
	font-weight: 800;
	color: #a62c2b;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.result-date-badge {
	background-color: #f7f1eb;
	color: #6b4c3d;
	font-size: 14px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 8px;
	border: 1px solid #e8ddd4;
}

/* Dual Comparison Cards */
.convert-dual-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 24px;
	align-items: center;
	margin-bottom: 30px;
}

.convert-card {
	padding: 24px;
	border-radius: 16px;
	text-align: center;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.convert-card--solar {
	background: linear-gradient(145deg, #fbf7f4 0%, #f4eae2 100%);
	border: 2px solid #e5d3c5;
}

.convert-card--lunar {
	background: linear-gradient(145deg, #fff9f0 0%, #fef0db 100%);
	border: 2px solid #e8c691;
}

.card-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.convert-card--solar .card-badge {
	background-color: #555;
	color: #fff;
}

.convert-card--lunar .card-badge {
	background-color: #a62c2b;
	color: #fff;
}

.card-main-number {
	font-size: clamp(54px, 7vw, 76px);
	font-weight: 900;
	line-height: 1;
	margin-bottom: 10px;
}

.convert-card--solar .card-main-number {
	color: #2b3a4a;
}

.convert-card--lunar .card-main-number {
	color: #a62c2b;
}

.card-dow {
	font-size: 18px;
	font-weight: 700;
	color: #333;
	margin-bottom: 4px;
}

.card-month-year {
	font-size: 15px;
	color: #666;
	font-weight: 600;
}

.card-footer-item {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px dashed rgba(0, 0, 0, 0.1);
	font-size: 13px;
	color: #555;
}

.card-footer-item .item-val {
	color: #a62c2b;
	margin-left: 4px;
}

.convert-transform-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(166, 44, 43, 0.15);
	color: #a62c2b;
	border: 1px solid #f0e1d8;
}

/* Details Panel */
.convert-details-panel {
	background: #faf6f2;
	border-radius: 16px;
	padding: 24px;
	border: 1px solid #ebdcd3;
}

.details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.detail-box {
	background: #ffffff;
	border-radius: 12px;
	padding: 16px;
	border: 1px solid #eadecf;
	display: flex;
	gap: 12px;
}

.detail-box__icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
	padding-top: 2px;
}

.detail-box__content {
	flex: 1;
}

.detail-box__label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-bottom: 8px;
}

.detail-box__value p {
	margin: 0 0 5px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.detail-box__value p:last-child {
	margin-bottom: 0;
}

.zodiac-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	margin-bottom: 6px;
}

.zodiac-badge--good {
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}

.zodiac-badge--bad {
	background-color: #fbe9e7;
	color: #c62828;
	border: 1px solid #ffccbc;
}

.status-subtext {
	font-size: 13px;
	color: #666;
}

.taboo-warning {
	color: #c62828;
	font-size: 12px;
	font-weight: 600;
}

.lucdieu-title {
	font-size: 15px;
	color: #a62c2b;
	margin-bottom: 4px !important;
}

.lucdieu-desc {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
}

/* Zodiac Hours Box */
.detail-hours-box {
	background: #ffffff;
	border-radius: 12px;
	padding: 16px 20px;
	border: 1px solid #eadecf;
	margin-bottom: 24px;
}

.hours-header {
	margin-bottom: 8px;
}

.hours-title {
	font-size: 14px;
	font-weight: 800;
	color: #a62c2b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hours-tags {
	font-size: 14px;
	line-height: 1.8;
	color: #333;
}

.hours-tags strong {
	color: #1a5e20;
	background-color: #f1f8e9;
	padding: 2px 6px;
	border-radius: 4px;
}

.hour-sep {
	color: #aaa;
}

/* CTA Wrap */
.convert-cta-wrap {
	text-align: center;
	padding-top: 6px;
}

.btn-day-detail-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	background: linear-gradient(135deg, #a62c2b 0%, #801312 100%);
	color: #ffffff;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(166, 44, 43, 0.28);
	transition: all 0.25s ease;
}

.btn-day-detail-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(166, 44, 43, 0.4);
	color: #ffffff;
	text-decoration: none;
}

/* Month Calendar Section */
.convert-month-section {
	background: #ffffff;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid #ebdcd3;
	margin-bottom: 40px;
}

.section-title-wrap {
	text-align: center;
	margin-bottom: 20px;
}

.section-title {
	font-size: 20px;
	font-weight: 800;
	color: #a62c2b;
	margin: 0 0 6px;
}

.section-sub {
	font-size: 14px;
	color: #777;
	margin: 0;
}

/* Selected day in month table */
.vncal-table td.is-selected {
	background-color: #fff9e6 !important;
	border: 2px solid #d4af37 !important;
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
	position: relative;
	z-index: 2;
}

.vncal-table td.is-selected .solar-num {
	font-weight: 900;
	color: #a62c2b !important;
}

/* Guide & Editorial Section */
.convert-guide-section {
	margin-bottom: 40px;
}

.guide-card {
	background: #ffffff;
	border-radius: 20px;
	padding: 36px 40px;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
	border: 1px solid #ebdcd3;
}

.guide-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f2e9e2;
}

.guide-badge {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	background-color: #f7ede6;
	color: #a62c2b;
	padding: 6px 14px;
	border-radius: 999px;
}

.guide-cms-edit a {
	font-size: 13px;
	color: #a62c2b;
	font-weight: 600;
	text-decoration: none;
	padding: 4px 10px;
	border: 1px dashed #a62c2b;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.guide-cms-edit a:hover {
	background: #fdf2f1;
}

.guide-content h2,
.guide-content h3 {
	color: #a62c2b;
	margin-top: 24px;
	margin-bottom: 12px;
}

.guide-content p,
.guide-content li {
	font-size: 15px;
	line-height: 1.7;
	color: #444;
}

.guide-content ul {
	padding-left: 20px;
	margin-bottom: 18px;
}

/* Responsive Styles */
@media (max-width: 900px) {
	.convert-form-grid {
		grid-template-columns: 1fr;
	}

	.convert-dual-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.convert-transform-arrow {
		margin: 0 auto;
		transform: rotate(90deg);
	}

	.convert-result-section,
	.convert-month-section,
	.guide-card {
		padding: 20px 16px;
	}

	.convert-form-card {
		padding: 20px 16px;
	}
}
