/* Emergency Contact Form Specific Styles */

/* Remove bottom margin from step description */
#step-description {
    margin-bottom: 0;
}

/* Form section headings */
.form-section-heading {
    margin-bottom: 20px;
    color: #333;
}

/* Form disclaimer text */
.form-disclaimer {
    margin-top: 20px;
    text-align: center;
}

/* Note: Validation error styles are now in forms.css for global use */

/* Style disabled options to match placeholder text color */
select option[disabled] {
    color: #777 !important;
}

/* Style the select when no option is selected to match placeholder color */
select:invalid,
select option[value='']:checked {
    color: #777;
}

/* Ensure selected options are always black */
select:valid {
    color: #000;
}

/* Ensure all regular options are black */
select option:not([disabled]) {
    color: #000 !important;
}

/* Additional styling for select elements with empty value selected */
select option[value=''] {
    color: #777 !important;
}

/* Style for select elements when placeholder is selected */
select.placeholder-selected {
    color: #777;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.form-buttons .btn {
    min-height: 48px;
}

/* Single button styling - centered for step 1 */
.form-buttons button[type='submit']:only-child {
    flex: none;
    width: auto;
    min-width: 275px;
    margin: 0 auto; /* Center the button */
}

/* Address line styling */
.address-line-1 {
    margin-bottom: 15px;
}

.address-line-2 {
    margin-bottom: 15px;
}

/* Two column layout for city/state (50/50 split) */
.address-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.address-row .form-group {
    flex: 1; /* Equal width for all fields in the row */
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-container {
        margin: 10px;
        padding: 20px;
    }

    .address-row {
        flex-direction: column;
        gap: 10px;
    }

    .address-row .form-group {
        flex: 1;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
    }
}

/* PDF Extraction Job Running Section */
.job-running-section {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-running-content {
    max-width: 500px;
    margin: 0 auto;
}

.job-running-content h3 {
    color: var(--primary-color, #007bff);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.job-running-content p {
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 1rem;
}

.job-running-content p.secondary-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Spinner for loading state */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Screen sizes smaller than 480px - adjust header elements */
@media (max-width: 480px) {
    .nav-links:last-child {
        font-size: 0.75rem;
    }

    .schedule-call-button {
        padding: 0.4rem 0.8rem !important;
        margin-left: 0 !important;
    }
}

/* Screen sizes 376px and smaller - adjust header to prevent button cutoff at 375px */
@media (max-width: 376px) {
    header .container {
        padding: 0.5rem !important;
    }

    header nav {
        gap: 0.25rem !important;
    }

    .nav-links img.logo {
        max-height: 28px !important;
        width: auto;
    }

    .nav-links:last-child {
        flex-direction: column !important;
        align-items: flex-end !important;
        font-size: 0.7rem !important;
        white-space: nowrap;
        gap: 0.2rem !important;
    }

    .schedule-call-button {
        padding: 0.35rem 0.6rem !important;
        gap: 0.15rem !important;
        margin-left: 0 !important;
        font-size: 0.75rem !important;
        border-width: 1.5px !important;
    }

    .call-text {
        display: inline !important;
    }

    .call-icon {
        font-size: 1.1rem !important;
    }
}
