/* Calculator Pages Specific Styling */

/* Header and Title Styling - Matching Homepage Exactly */
.calculator-page .app-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    margin-bottom: 1.5rem;
}

/* Remove subtitle and make header more sleek */
.app-subtitle, .subtitle {
    display: none;
}

/* Make the Radionox title exactly match homepage */
.calculator-page .logo .app-title {
    font-size: calc(var(--font-xl) * 2);
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Updated card header styling with orange accent */
.calculator-page .card-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #3a3a3a;
}

.calculator-page .card-header h3,
.calculator-page .card-header h3 i {
    color: #c98442; /* Orange accent color */
}

.calculator-page .card-header .header-note {
    color: #b0b0b0;
}

/* Override Fleischner blue colors with orange */
.calculator-page.fleischner-theme .card-header {
    background-color: #2d2d2d; /* Dark gray background instead of blue */
}

.calculator-page.fleischner-theme .card-header h3,
.calculator-page.fleischner-theme .card-header h3 i {
    color: #c98442; /* Orange accent replacing blue */
}

.calculator-page.fleischner-theme .button-primary {
    background-color: #c98442; /* Orange accent replacing blue */
}

.calculator-page.fleischner-theme .button-primary:hover {
    background-color: #b67539; /* Darker orange on hover */
}

/* Ensure all calculator pages (except Fleischner) use standardized green buttons */
.calculator-page:not(.fleischner-theme) .button-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.calculator-page:not(.fleischner-theme) .button-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* Input field contrast improvements */
.calculator-page select,
.calculator-page input[type="text"],
.calculator-page input[type="number"],
.calculator-page textarea {
    background-color: #252525;
    border: 1px solid #444;
    color: #f0f0f0;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.calculator-page select:hover,
.calculator-page input[type="text"]:hover,
.calculator-page input[type="number"]:hover,
.calculator-page textarea:hover {
    border-color: #555;
    background-color: #2a2a2a;
}

.calculator-page select:focus,
.calculator-page input[type="text"]:focus,
.calculator-page input[type="number"]:focus,
.calculator-page textarea:focus {
    border-color: #c98442;
    box-shadow: 0 0 0 2px rgba(201, 132, 66, 0.2);
    outline: none;
    background-color: #2a2a2a;
}

/* Styled select dropdowns */
.calculator-page .select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.calculator-page .select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
}

.calculator-page .select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
}

/* Form help text */
.calculator-page .form-help {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* Improved checkbox styling */
.calculator-page .checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.calculator-page .checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #252525;
    accent-color: #c98442;
}

/* Form sections and groups */
.calculator-page .form-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1.5rem;
}

.calculator-page .form-section:last-child {
    border-bottom: none;
}

.calculator-page .form-section h4 {
    margin-bottom: 1rem;
    color: #d0d0d0; /* Light grey matching other labels */
    font-size: 1.1rem;
}

/* Button styling with orange accent */
.calculator-page .button-primary {
    background-color: #c98442;
    color: #ffffff;
}

.calculator-page .button-primary:hover {
    background-color: #b67539;
}

/* Results section styling */
.calculator-page #lungRadsScoreBadge {
    background-color: #c98442 !important; /* Orange accent color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calculator-page .logo .app-title {
        font-size: calc(var(--font-xl) * 1.5);
    }
}