/**
 * Stylesheet definitions for the Eye Hospital Booking System.
 * Styled in premium White and Medical Blue clinic color palettes.
 *
 * @package WordPress
 * @subpackage Visen_Custom
 */

/* Custom Variables Mapped to Visen Brand Parameters */
:root {
    --hospital-blue: #00ADEE;
    --hospital-navy: #15224D;
    --hospital-light-blue: #E1F5FE;
    --hospital-border: rgba(0, 173, 238, 0.15);
    --hospital-shadow: 0 12px 30px -5px rgba(21, 34, 77, 0.08);
    --hospital-shadow-glass: 0 8px 32px 0 rgba(21, 34, 77, 0.06);
}

/* ==========================================================================
   1. EMBEDDED SHORTCODE CARD STYLING
   ========================================================================== */
.booking-shortcode-wrap {
    width: 100%;
    max-width: 820px;
    margin: 40px auto;
    padding: 10px;
}

.booking-shortcode-card {
    background-color: var(--color-white, #ffffff);
    border-radius: 24px;
    border: 1px solid var(--hospital-border);
    box-shadow: var(--hospital-shadow);
    padding: 50px 45px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal, all 0.7s cubic-bezier(0.16, 1, 0.3, 1));
}

.booking-shortcode-card:hover {
    box-shadow: 0 30px 60px -15px rgba(21, 34, 77, 0.15);
    border-color: var(--hospital-blue);
}

.booking-shortcode-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-shortcode-header h3 {
    font-size: 32px;
    color: var(--hospital-navy);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
}

.booking-shortcode-header p {
    font-size: 15px;
    color: var(--color-text, #596579);
}

/* ==========================================================================
   2. GLASSMORPHIC MODAL OVERLAYS & CONTAINER
   ========================================================================== */
.hospital-booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 34, 77, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hospital-booking-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.hospital-booking-modal-container {
    background-color: var(--color-white, #ffffff);
    border-radius: 24px;
    box-shadow: var(--hospital-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 94%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 45px;
    position: relative;
    transform: scale(0.92);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hospital-booking-modal-overlay.open .hospital-booking-modal-container {
    transform: scale(1);
}

.hospital-booking-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 26px;
    color: var(--hospital-navy);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.hospital-booking-modal-close:hover {
    color: var(--hospital-blue);
    transform: rotate(90deg);
}

.hospital-booking-modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.hospital-booking-modal-header h3 {
    font-size: 28px;
    color: var(--hospital-navy);
    font-weight: 800;
    margin-bottom: 6px;
}

.hospital-booking-modal-header p {
    font-size: 14.5px;
    color: var(--color-text, #596579);
}

/* ==========================================================================
   3. PREMIUM MEDICAL FORM CONTROL FIELDS
   ========================================================================== */
.visen-hospital-booking-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.visen-hospital-booking-form label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hospital-navy);
    margin-bottom: 3px;
}

/* Rounded Inputs focus shadows */
.visen-hospital-booking-form .form-input {
    width: 100%;
    background-color: var(--color-bg-light, #F7F9FC);
    border: 1px solid rgba(21, 34, 77, 0.08);
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 14.5px;
    color: var(--hospital-navy);
    transition: all 0.3s ease;
}

.visen-hospital-booking-form .form-input:focus {
    border-color: var(--hospital-blue);
    background-color: var(--color-white, #ffffff);
    box-shadow: 0 0 0 4px rgba(0, 173, 238, 0.16);
}

.visen-hospital-booking-form select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315224D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 45px;
}

.visen-hospital-booking-form textarea.form-input {
    resize: none;
    line-height: 1.6;
}

/* ==========================================================================
   4. FILE UPLOAD INTERFACE (DRAG/DROP DESIGN)
   ========================================================================== */
.custom-file-upload-wrap {
    position: relative;
    width: 100%;
    height: 50px;
}

.form-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-dummy-container {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-light, #F7F9FC);
    border: 1px dashed rgba(21, 34, 77, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 12px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-file-input:hover ~ .file-dummy-container {
    border-color: var(--hospital-blue);
    background-color: rgba(0, 173, 238, 0.03);
}

.file-dummy-icon {
    font-size: 18px;
    color: var(--hospital-blue);
}

.file-dummy-label {
    font-size: 13.5px;
    color: var(--color-text, #596579);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   5. BUTTON EFFECTS & ANIMATIONS
   ========================================================================== */
.visen-hospital-booking-form .form-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 15px;
    border-radius: 12px;
    margin-top: 10px;
}

/* Pulse animation for shortcode trigger button */
.eye-btn-pulse {
    animation: eyePulseBtn 2s infinite;
}

@keyframes eyePulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 173, 238, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 173, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 173, 238, 0);
    }
}

/* ==========================================================================
   6. RESPONSIVENESS AND SPACING
   ========================================================================== */
@media (max-width: 767px) {
    .booking-shortcode-card,
    .hospital-booking-modal-container {
        padding: 30px 20px;
    }
    
    .booking-shortcode-header h3,
    .hospital-booking-modal-header h3 {
        font-size: 22px;
    }
    
    .visen-hospital-booking-form {
        gap: 16px;
    }
}
