/* Park View Dental Booking Widget Styles */

#parkview-booking-widget {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

#parkview-booking-widget h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    text-align: center;
}

#parkview-booking-widget h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.booking-step {
    margin-bottom: 20px;
}

.booking-step label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

#patient-title {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.booking-step select,
.booking-step input[type="text"],
.booking-step input[type="email"],
.booking-step input[type="tel"],
.booking-step input[type="date"],
.booking-step textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.booking-step textarea {
    min-height: 80px;
    resize: vertical;
}

.booking-step button {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.booking-step button:hover {
    background: #1e3d6f;
}

#time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    background: #fff;
    border: 2px solid #2c5aa0;
    color: #2c5aa0;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #2c5aa0;
    color: white;
}

.time-slot.selected {
    background: #2c5aa0;
    color: white;
}

#booking-loading {
    text-align: center;
    padding: 20px;
    color: #2c5aa0;
    font-weight: bold;
}

#booking-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

#booking-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#booking-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 480px) {
    #time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #parkview-booking-widget {
        padding: 15px;
    }
}

/* ── Step 0: Returning patient buttons ─────────────────────────── */
.pvd-returning-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.pvd-returning-btn {
    padding: 14px 20px;
    border: 2px solid #2c5aa0;
    border-radius: 6px;
    background: #fff;
    color: #2c5aa0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.pvd-returning-btn:hover,
.pvd-returning-btn.pvd-selected {
    background: #2c5aa0;
    color: #fff;
}

/* ── Flatpickr input styling ────────────────────────────────────── */
#booking-date {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
}

/* ── Emergency notice ───────────────────────────────────────────── */
#emergency-notice {
    margin-top: 14px;
    padding: 16px 18px;
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}
#emergency-notice p {
    margin: 0 0 10px;
}
#emergency-notice p:last-of-type {
    margin-bottom: 12px;
}
.pvd-whatsapp-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #25D366;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.pvd-whatsapp-btn:hover {
    background: #1da851;
    color: #fff !important;
    text-decoration: none;
}

/* ── Record found message ───────────────────────────────────────── */
#pvd-record-found {
    margin: 12px 0;
    padding: 12px 16px;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    font-weight: 600;
    color: #166534;
    font-size: 15px;
}

#find-patient-record {
    margin-top: 12px;
    padding: 12px 24px;
    background: #2c5aa0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#find-patient-record:hover {
    background: #1e3f73;
}

/* ── Labelled field wrapper ─────────────────────────────────────── */
.pvd-field {
    margin-bottom: 16px;
}
.pvd-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.pvd-req {
    color: #c00;
}
.pvd-field input,
.pvd-field select,
.pvd-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}
.pvd-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.pvd-field textarea {
    min-height: 80px;
    resize: vertical;
}
.pvd-field input:focus,
.pvd-field select:focus,
.pvd-field textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44,90,160,0.15);
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #parkview-booking-widget {
        padding: 12px;
    }
    .pvd-field input,
    .pvd-field select,
    .pvd-field textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
    }
    .time-slot {
        width: calc(50% - 6px);
    }
    .pvd-returning-btn {
        font-size: 14px;
        padding: 12px 14px;
    }
    #confirm-booking,
    #find-patient-record {
        width: 100%;
        padding: 14px;
    }
}
