/* ==========================================
   CALCULATOR PAGE STYLES
   ========================================== */

/* Calculator Hero - Subtle Breathe */
.calculator-hero {
	padding: 8rem 0 4rem;
	background: linear-gradient(
		180deg,
		var(--bg-primary) 0%,
		var(--bg-secondary) 100%
	);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.calculator-hero::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(
		circle,
		rgba(212, 175, 55, 0.12) 0%,
		rgba(212, 175, 55, 0.06) 40%,
		transparent 70%
	);
	animation: breathe 5s ease-in-out infinite;
	pointer-events: none;
}

.calculator-hero::after {
	content: none;
}

@keyframes breathe {
	0%,
	100% {
		opacity: 0.5;
		transform: translate(-50%, -50%) scale(0.95);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.05);
	}
}

.calculator-hero h1 {
	font-family: var(--font-display);
	font-size: 4rem;
	margin-bottom: 1rem;
	color: var(--gold);
	position: relative;
	z-index: 1;
	letter-spacing: -0.5px;
}

.calculator-info .container {
	max-width: 1400px;
	padding: 0 2rem;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.calculator-hero-subtitle {
	font-size: 1.3rem;
	color: var(--text-secondary);
	margin-bottom: 3rem;
	position: relative;
	z-index: 1;
}

.calculator-features {
	display: flex;
	justify-content: center;
	gap: 3rem;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.calc-feature {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2rem;
	background: linear-gradient(
		135deg,
		rgba(212, 175, 55, 0.15) 0%,
		rgba(244, 228, 193, 0.08) 100%
	);
	border: 2px solid rgba(212, 175, 55, 0.35);
	border-radius: 50px;
	font-weight: 600;
	color: var(--text-primary);
	transition: all 0.3s ease;
}

.calc-feature:hover {
	background: linear-gradient(
		135deg,
		rgba(212, 175, 55, 0.2) 0%,
		rgba(244, 228, 193, 0.12) 100%
	);
	border-color: rgba(212, 175, 55, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.calc-feature-icon {
	font-size: 1.5rem;
}

/* Calculator Section */
.bonus-calculator-section {
	padding: 4rem 0;
	background: var(--bg-primary);
}

.calculator-wrapper {
	background: var(--bg-card);
	border: 2px solid var(--gold);
	border-radius: 24px;
	padding: 3rem;
	max-width: 900px;
	margin: 0 auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.calculator-header {
	text-align: center;
	margin-bottom: 2rem;
}

.calculator-header h2 {
	font-family: var(--font-display);
	font-size: 2.5rem;
	color: var(--gold);
	margin-bottom: 0.75rem;
}

.calculator-header p {
	color: var(--text-secondary);
	font-size: 1.1rem;
}

/* Calculator Tabs */
.calculator-tabs {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--border);
}

.calc-tab {
	padding: 1rem 2rem;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	bottom: -2px;
}

.calc-tab.active {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

.calc-tab:hover {
	color: var(--text-primary);
}

.calculator-content {
	display: none;
}

.calculator-content.active {
	display: block;
	animation: fadeInUp 0.5s ease;
}

.calculator-body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.calculator-input-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.calculator-input-group label {
	color: var(--text-primary);
	font-weight: 600;
	font-size: 0.95rem;
}

.calculator-input-group input {
	padding: 0.85rem 1.25rem;
	background: var(--bg-primary);
	border: 2px solid var(--border);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 1.1rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

.calculator-input-group input:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.calculator-input-group input::placeholder {
	color: var(--text-muted);
	font-weight: 400;
}

.input-hint {
	color: var(--text-muted);
	font-size: 0.8rem;
	font-style: italic;
	margin-top: 0.25rem;
}

.calculator-results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	padding: 2rem;
	background: var(--bg-secondary);
	border-radius: 16px;
	border: 1px solid var(--border);
}

.result-item {
	text-align: center;
	padding: 1.5rem;
	background: var(--bg-card);
	border-radius: 12px;
	border: 1px solid var(--border);
	transition: all 0.3s ease;
}

.result-item:hover {
	border-color: var(--gold);
	transform: translateY(-2px);
}

.result-item.highlight {
	border: 2px solid var(--gold);
	background: rgba(212, 175, 55, 0.05);
}

.result-label {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.result-value {
	color: var(--gold);
	font-size: 1.8rem;
	font-weight: 700;
	font-family: var(--font-display);
}

.calculator-tip {
	margin-top: 2rem;
	padding: 1.25rem;
	background: rgba(212, 175, 55, 0.1);
	border-left: 4px solid var(--gold);
	border-radius: 8px;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.calculator-tip strong {
	color: var(--gold);
}

/* Calculator Info Section */
.calculator-info {
	padding: 6rem 0;
	background: var(--bg-secondary);
}

.calculator-info h2 {
	font-family: var(--font-display);
	font-size: 3rem;
	text-align: center;
	color: var(--gold);
	margin-bottom: 4rem;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.info-card {
	background: var(--bg-card);
	border: 2px solid var(--border);
	border-radius: 20px;
	padding: 2.5rem;
	transition: all 0.3s ease;
}

.info-card:hover {
	border-color: var(--gold);
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
	font-size: 1.5rem;
	color: var(--gold);
	margin-bottom: 1rem;
	font-family: var(--font-display);
}

.info-card p {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 1rem;
}

/* Calculator CTA */
.calculator-cta {
	padding: 6rem 0;
	background: linear-gradient(
		135deg,
		var(--bg-primary) 0%,
		var(--bg-secondary) 100%
	);
	text-align: center;
}

.calculator-cta h2 {
	font-family: var(--font-display);
	font-size: 3rem;
	color: var(--gold);
	margin-bottom: 1rem;
}

.calculator-cta p {
	font-size: 1.2rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.cta-btn-large {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.25rem 3rem;
	background: var(--exclusive);
	color: var(--bg-primary);
	text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cta-btn-large:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* ==========================================
   CALCULATOR PAGE - MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 968px) {
	.calculator-hero h1 {
		font-size: 3rem;
	}

	.calculator-features {
		gap: 1.5rem;
	}

	.calculator-wrapper {
		padding: 2rem;
	}

	.info-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
}

@media (max-width: 768px) {
	.calculator-hero {
		padding: 6rem 0 3rem;
	}

	.calculator-hero h1 {
		font-size: 2.5rem;
	}

	.calculator-hero-subtitle {
		font-size: 1.1rem;
		margin-bottom: 2rem;
	}

	.calculator-features {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}

	.calc-feature {
		width: 100%;
		max-width: 300px;
		justify-content: center;
	}

	.calculator-wrapper {
		padding: 2rem 1.5rem;
	}

	.calculator-header h2 {
		font-size: 2rem;
	}

	.calculator-header p {
		font-size: 1rem;
	}

	.calculator-tabs {
		flex-direction: column;
		gap: 0;
		border-bottom: none;
	}

	.calc-tab {
		border-bottom: 2px solid var(--border);
		padding: 0.85rem 1.5rem;
		text-align: left;
	}

	.calc-tab.active {
		border-bottom-color: var(--gold);
		background: rgba(212, 175, 55, 0.1);
	}

	.calculator-body {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.calculator-input-group input {
		padding: 0.8rem 1.15rem;
		font-size: 1rem;
	}

	.calculator-results {
		grid-template-columns: 1fr;
		padding: 1.5rem;
		gap: 1.25rem;
	}

	.result-item {
		padding: 1.25rem;
	}

	.result-label {
		font-size: 0.85rem;
	}

	.result-value {
		font-size: 1.6rem;
	}

	.calculator-tip {
		padding: 1.15rem;
		font-size: 0.9rem;
	}

	/* Info Section */
	.calculator-info {
		padding: 4rem 0;
	}

	.calculator-info h2 {
		font-size: 2.5rem;
		margin-bottom: 3rem;
	}

	.info-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.info-card {
		padding: 2rem;
	}

	.info-card h3 {
		font-size: 1.35rem;
	}

	.info-card p {
		font-size: 0.95rem;
	}

	/* CTA */
	.calculator-cta {
		padding: 4rem 0;
	}

	.calculator-cta h2 {
		font-size: 2.5rem;
	}

	.calculator-cta p {
		font-size: 1.1rem;
	}

	.cta-btn-large {
		padding: 1.15rem 2.5rem;
		font-size: 1.05rem;
	}
}

@media (max-width: 480px) {
	.calculator-hero {
		padding: 5rem 0 2.5rem;
	}

	.calculator-hero h1 {
		font-size: 2rem;
	}

	.calculator-hero-subtitle {
		font-size: 1rem;
	}

	.calc-feature {
		padding: 0.85rem 1.5rem;
		font-size: 0.9rem;
	}

	.calc-feature-icon {
		font-size: 1.35rem;
	}

	.calculator-wrapper {
		padding: 1.75rem 1.25rem;
	}

	.calculator-header h2 {
		font-size: 1.75rem;
	}

	.calculator-header p {
		font-size: 0.95rem;
	}

	.calc-tab {
		padding: 0.75rem 1.25rem;
		font-size: 0.95rem;
	}

	.calculator-body {
		gap: 1.15rem;
	}

	.calculator-input-group label {
		font-size: 0.9rem;
	}

	.calculator-input-group input {
		padding: 0.75rem 1rem;
		font-size: 0.95rem;
	}

	.input-hint {
		font-size: 0.75rem;
	}

	.calculator-results {
		padding: 1.25rem;
		gap: 1.15rem;
	}

	.result-item {
		padding: 1.15rem;
	}

	.result-value {
		font-size: 1.5rem;
	}

	.calculator-tip {
		padding: 1rem;
		font-size: 0.85rem;
		margin-top: 1.5rem;
	}

	/* Info */
	.calculator-info {
		padding: 3rem 0;
	}

	.calculator-info .container {
		padding: 0 1.5rem;
	}

	.calculator-info h2 {
		font-size: 2rem;
		margin-bottom: 2.5rem;
	}

	.info-card {
		padding: 1.75rem;
	}

	.info-card h3 {
		font-size: 1.25rem;
	}

	.info-card p {
		font-size: 0.9rem;
	}

	/* CTA */
	.calculator-cta {
		padding: 3rem 0;
	}

	.calculator-cta h2 {
		font-size: 2rem;
	}

	.calculator-cta p {
		font-size: 1.05rem;
		padding: 0 1rem;
	}

	.cta-btn-large {
		padding: 1rem 2.15rem;
		font-size: 1rem;
		gap: 0.65rem;
	}
}

@media (max-width: 375px) {
	.calculator-hero h1 {
		font-size: 1.75rem;
	}

	.calculator-header h2 {
		font-size: 1.5rem;
	}

	.calculator-info h2 {
		font-size: 1.75rem;
	}

	.calculator-cta h2 {
		font-size: 1.75rem;
	}
}

/* ==========================================
   CALCULATOR HELP FEATURE
   ========================================== */

/* Calculator Help Button */
.calculator-header {
	position: relative;
	text-align: center;
	margin-bottom: 2rem;
}

.calculator-help-btn {
	position: absolute;
	top: 0;
	right: 0;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: rgba(212, 175, 55, 0.15);
	border: 2px solid var(--gold);
	color: var(--gold);
	font-size: 1.5rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.calculator-help-btn:hover {
	background: rgba(212, 175, 55, 0.25);
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.help-icon {
	line-height: 1;
}

/* Calculator Help Modal */
.calculator-help-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	animation: fadeIn 0.3s ease;
}

.calculator-help-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.calculator-help-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(5px);
}

.calculator-help-content {
	position: relative;
	background: var(--bg-card);
	border: 2px solid var(--gold);
	border-radius: 24px;
	padding: 2.5rem 2rem;
	max-width: 700px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	z-index: 10;
	animation: slideUp 0.4s ease;
}

/* Custom scrollbar for help modal */
.calculator-help-content::-webkit-scrollbar {
	width: 10px;
}

.calculator-help-content::-webkit-scrollbar-track {
	background: var(--bg-secondary);
	border-radius: 10px;
}

.calculator-help-content::-webkit-scrollbar-thumb {
	background: var(--gold);
	border-radius: 10px;
	border: 2px solid var(--bg-card);
}

.calculator-help-content::-webkit-scrollbar-thumb:hover {
	background: var(--gold-light);
}

.calculator-help-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: 2px solid var(--border);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 1.8rem;
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.calculator-help-close:hover {
	border-color: var(--gold);
	color: var(--gold);
	transform: rotate(90deg);
}

.calculator-help-content h2 {
	font-family: var(--font-display);
	font-size: 2rem;
	color: var(--gold);
	margin-bottom: 0.75rem;
	padding-right: 2.5rem;
}

.help-intro {
	color: var(--text-secondary);
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.help-section {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.help-section:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.help-section h3 {
	font-family: var(--font-display);
	font-size: 1.4rem;
	color: var(--gold);
	margin-bottom: 1rem;
}

.help-item {
	margin-bottom: 1rem;
}

.help-item:last-child {
	margin-bottom: 0;
}

.help-item strong {
	display: block;
	color: var(--text-primary);
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
	font-weight: 700;
}

.help-item p {
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 0.9rem;
	margin: 0;
}

.help-note {
	color: var(--gold);
	font-weight: 600;
	margin-top: 0.25rem;
	font-size: 0.85rem;
}

.help-terms {
	background: rgba(212, 175, 55, 0.05);
	border-radius: 12px;
	padding: 1.5rem;
	border: 1px solid rgba(212, 175, 55, 0.2);
}

.help-example {
	background: linear-gradient(
		135deg,
		rgba(212, 175, 55, 0.1) 0%,
		rgba(212, 175, 55, 0.05) 100%
	);
	border: 2px solid var(--gold);
	border-radius: 16px;
	padding: 1.5rem;
	margin-top: 1.5rem;
}

.help-example h4 {
	color: var(--gold);
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
	font-family: var(--font-display);
}

.help-example p {
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}

.help-example ul {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0;
}

.help-example li {
	color: var(--text-secondary);
	line-height: 1.6;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	padding-left: 0;
}

.help-pro-tip {
	color: var(--gold);
	font-weight: 600;
	margin-top: 1rem;
	font-size: 0.95rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Mobile Responsive - Calculator Help */
@media (max-width: 768px) {
	.calculator-help-btn {
		width: 40px;
		height: 40px;
		font-size: 1.3rem;
	}

	.calculator-help-content {
		padding: 2rem 1.5rem;
		width: 95%;
	}

	.calculator-help-content h2 {
		font-size: 1.75rem;
		margin-bottom: 0.65rem;
	}

	.calculator-help-close {
		width: 36px;
		height: 36px;
		font-size: 1.6rem;
		top: 0.85rem;
		right: 0.85rem;
	}

	.help-intro {
		font-size: 0.95rem;
		margin-bottom: 1.5rem;
		padding-bottom: 1.25rem;
	}

	.help-section {
		margin-bottom: 1.75rem;
		padding-bottom: 1.25rem;
	}

	.help-section h3 {
		font-size: 1.3rem;
		margin-bottom: 0.85rem;
	}

	.help-item {
		margin-bottom: 0.85rem;
	}

	.help-item strong {
		font-size: 0.9rem;
	}

	.help-item p {
		font-size: 0.85rem;
	}

	.help-note {
		font-size: 0.8rem;
	}

	.help-terms {
		padding: 1.25rem;
	}

	.help-example {
		padding: 1.25rem;
		margin-top: 1.25rem;
	}

	.help-example h4 {
		font-size: 1.1rem;
		margin-bottom: 0.65rem;
	}

	.help-example p {
		font-size: 0.9rem;
	}

	.help-example li {
		font-size: 0.85rem;
	}

	.help-pro-tip {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.calculator-help-btn {
		width: 36px;
		height: 36px;
		font-size: 1.2rem;
	}

	.calculator-help-content {
		padding: 1.75rem 1.25rem;
		max-height: 90vh;
	}

	.calculator-help-content h2 {
		font-size: 1.5rem;
		padding-right: 2rem;
	}

	.calculator-help-close {
		width: 34px;
		height: 34px;
		font-size: 1.5rem;
	}

	.help-section h3 {
		font-size: 1.2rem;
	}

	.help-example h4 {
		font-size: 1rem;
	}

	.help-terms {
		padding: 1rem;
	}

	.help-example {
		padding: 1rem;
	}
}

@media (max-width: 375px) {
	.calculator-help-btn {
		width: 34px;
		height: 34px;
		font-size: 1.1rem;
	}

	.calculator-help-content h2 {
		font-size: 1.35rem;
	}

	.help-section h3 {
		font-size: 1.1rem;
	}
}
