/**
 * Probate Calculator Styles
 * Matches Figma mockup design
 *
 * @package Probate_Calculator
 * @version 1.0.0
 */

/* ==========================================================================
   Calculator Container
   ========================================================================== */

.probate-calculator {
	max-width: 920px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 30px;
	box-sizing: border-box;
}

.probate-calculator *,
.probate-calculator *::before,
.probate-calculator *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.probate-calculator .calculator-title {
	margin: 0;
}

.probate-calculator .section-heading {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.4;
	color: #1b1b1b;
	margin: 0;
}

.probate-calculator .field-label {
	font-family: var(--global-body-font-family);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: #202d43;
}

.probate-calculator .field-value {
	font-family: var(--global-heading-font-family);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.4;
	color: #202d43;
	display: flex;
	align-items: center;
	gap: 4px;
}

.probate-calculator .info-text {
	font-family: var(--global-body-font-family);
	font-weight: 400;
	font-style: italic;
	font-size: 14px;
	line-height: 1.5;
	color: #404040;
	margin: 0;
}

/* ==========================================================================
   Input Section
   ========================================================================== */

.probate-calculator .input-section {
	display: flex;
	gap: 30px;
	align-items: flex-end;
}

.probate-calculator .input-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 445px;
	flex-shrink: 0;
}

.probate-calculator .input-wrapper {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 16px 28px 16px 20px;
	border: 1px solid rgba(0, 0, 0, 0.4);
	border-radius: 100px;
	background: #fff;
	background-color: #fff;
	width: 100%;
	box-sizing: border-box;
	box-shadow: none;
}

.probate-calculator .input-wrapper:focus-within {
	border: 1px solid rgba(0, 0, 0, 0.6);
	outline: none;
	box-shadow: none;
}

.probate-calculator .input-wrapper .currency-symbol {
	font-family: var(--global-body-font-family);
	font-size: 16px;
	color: #404040;
	flex-shrink: 0;
}

.probate-calculator .input-wrapper input,
.probate-calculator .input-wrapper input.calculator-input,
.probate-calculator .input-wrapper input[type="text"] {
	font-family: var(--global-body-font-family);
	font-size: 16px;
	line-height: 1.5;
	color: #202d43;
	border: none;
	border-radius: 0;
	outline: none;
	background: transparent;
	background-color: transparent;
	width: 100%;
	height: auto;
	min-height: auto;
	padding: 0;
	margin: 0;
	box-shadow: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.probate-calculator .input-wrapper input:focus,
.probate-calculator .input-wrapper input.calculator-input:focus,
.probate-calculator .input-wrapper input[type="text"]:focus {
	border: none;
	outline: none;
	box-shadow: none;
	background: transparent;
}

.probate-calculator .input-wrapper input::placeholder {
	color: rgba(0, 0, 0, 0.4);
	opacity: 1;
}

.probate-calculator .info-group {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	flex: 1;
	min-width: 0;
}

.probate-calculator .info-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 3px;
}

.probate-calculator .info-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* ==========================================================================
   Result Cards
   ========================================================================== */

.probate-calculator .result-card {
	background-color: #f6f6f6;
	border-radius: 16px;
	padding: 24px 24px 30px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Remove bottom padding when content is collapsed */
.probate-calculator .result-card.is-collapsed {
	padding-bottom: 24px;
	gap: 0;
}

.probate-calculator .card-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Make clickable header for dropdown */
.probate-calculator .card-header.clickable {
	cursor: pointer;
	user-select: none;
}

.probate-calculator .card-header.clickable:hover {
	opacity: 0.8;
}

.probate-calculator .toggle-icon {
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.probate-calculator .toggle-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.probate-calculator .toggle-icon.collapsed {
	transform: rotate(180deg);
}

/* ==========================================================================
   Results Grid
   ========================================================================== */

.probate-calculator .results-grid {
	display: flex;
	gap: 20px;
	width: 100%;
}

.probate-calculator .result-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.probate-calculator .result-label-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.probate-calculator .result-divider {
	height: 1px;
	background-color: #d9d9d9;
	width: 100%;
}

/* ==========================================================================
   Breakdown Section
   ========================================================================== */

.probate-calculator .breakdown-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Tier rows - two columns per tier */
.probate-calculator .tier-row {
	display: flex;
	gap: 20px;
	width: 100%;
}

.probate-calculator .tier-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ==========================================================================
   Collapsible Section
   ========================================================================== */

.probate-calculator .collapsible-content {
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	max-height: 1000px;
	opacity: 1;
}

.probate-calculator .collapsible-content.collapsed {
	max-height: 0;
	opacity: 0;
}

/* ==========================================================================
   Low Value Message
   ========================================================================== */

.probate-calculator .low-value-message {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 20px;
	background-color: #FFF8E7;
	border: 1px solid #B8860B;
	border-radius: 12px;
}

.probate-calculator .message-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.probate-calculator .message-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.probate-calculator .message-text {
	font-family: var(--global-body-font-family);
	font-size: 15px;
	line-height: 1.5;
	color: #5C4A00;
	margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
	.probate-calculator .calculator-title {
		font-size: 24px;
	}

	.probate-calculator .input-section {
		flex-direction: column;
		gap: 20px;
	}

	.probate-calculator .input-group {
		width: 100%;
	}

	.probate-calculator .results-grid,
	.probate-calculator .tier-row {
		flex-direction: column;
		gap: 24px;
	}

	.probate-calculator .result-item,
	.probate-calculator .tier-item {
		width: 100%;
	}

	.probate-calculator .field-value {
		font-size: 20px;
	}

	.probate-calculator .section-heading {
		font-size: 20px;
	}

	.probate-calculator .low-value-message {
		padding: 14px 16px;
	}

	.probate-calculator .message-text {
		font-size: 14px;
	}
}
