/* Custom Form Styles for Contact & Booking Pages */

/* Section Titles */
.section-title {
    color: #0066cc; /* Brand Blue */
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

/* Form Elements Styling */
.appoinment-area-main form input,
.appoinment-area-main form select,
.appoinment-area-main form textarea {
    width: 100%;
    margin-bottom: 20px;
    height: 55px; /* Standardized height */
    border-radius: 8px; /* Slightly modernized radius */
    border: 1px solid #e2e2e2;
    color: #1F1F25; /* Dark Text for readability */
    font-size: 15px;
    padding: 0 20px;
    background-color: #ffffff; /* White background */
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    box-sizing: border-box !important;
    line-height: normal;
    display: block !important;
}

/* Force width specifically for selects if the grouped rule fails specificity */
.appoinment-area-main form select {
    width: 100% !important;
    max-width: 100% !important;
}

/* Placeholder Styling */
.appoinment-area-main form input::placeholder,
.appoinment-area-main form textarea::placeholder {
    color: #666666; /* Visible Gray Placeholder */
    opacity: 1;
    font-weight: 400;
}

/* Focus States */
.appoinment-area-main form input:focus,
.appoinment-area-main form select:focus,
.appoinment-area-main form textarea:focus {
    outline: none;
    border-color: #0066cc; /* Brand color on focus */
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Select Specifics */
.appoinment-area-main form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231F1F25' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); /* Dark Arrow */
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

/* Placeholder Styling - STRICT REVERSE LOGIC */
/* Default state (Empty/Placeholder) is GRAY */
.appoinment-area-main form select {
    color: #666666 !important; /* Force Gray by default */
}

/* Active state (Has Value) is DARK */
/* We use a class added by JS to override the default */
.appoinment-area-main form select.has-value {
    color: #1F1F25 !important;
}

/* Options always need to be readable when dropdown is open */
.appoinment-area-main form select option {
    color: #1F1F25;
}
/* But the placeholder option itself stays gray */
.appoinment-area-main form select option[value=""] {
    color: #666666;
}

/* Fix for select options text color on white background (when dropdown opens) */
.appoinment-area-main form select option {
    background-color: #fff;
    color: #333;
    padding: 10px;
}

/* Textarea Specifics */
.appoinment-area-main form textarea {
    min-height: 150px;
    resize: vertical;
    padding: 20px;
    height: auto;
    line-height: 1.5;
}

/* Hospital Select Animation */
.appoinment-area-main form #hospitalSelect {
    transition: all 0.3s ease;
    display: none; /* Controlled by JS */
    width: 100%; /* Ensure width */
}

/* Styles for hospital cards (kept from contact-us.php) */
.hospital-card {
    cursor: pointer;
    transition: all 0.3s ease;
}
.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.hospital-card.active {
    border: 2px solid #0066cc;
    border-radius: 8px;
}
.hospital-clickable {
    cursor: pointer;
}
.gogle-map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
#formAlert {
    display: none;
    margin-bottom: 20px;
}

/* Date/Time Inputs Specifics (for Booking) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    /* Removed invert filter to keep default dark icon on white bg */
}
