@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.13/flatpickr.min.css');
@import url('variables.css');
@import url('header.css');

/* 
 * Appointment Page Styles
 * Uses blue sticky navigation throughout and appointment-specific hero section
 * Imports styles.css for footer and other shared components
 */

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styles are now imported from header.css */






.appointment-hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.appointment-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(26, 54, 93, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(74, 144, 164, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.appointment-hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.appointment-info {
    flex: 1;
    padding-right: 20px;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.appointment-info-container h2 {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #1a365d;
    margin-bottom: 30px;
    line-height: 1.2;
}

.appointment-info-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.appointment-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.8), rgba(237, 242, 247, 0.6));
    border-radius: 12px;
    border-left: 4px solid #4a90a4;
    border: 1px solid rgba(226, 232, 240, 0.4);
    transition: all 0.3s ease;
}

.appointment-info-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.15);
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.9), rgba(237, 242, 247, 0.8));
    border-color: #2d5a87;
}

.appointment-info-item i {
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.appointment-info-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}

.appointment-info-item p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.4;
}

.appointment-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1.2;
    animation: fadeInRight 0.6s ease-out 0.3s both;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.appointment-container {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.06),
        0 0 0 1px rgba(226, 232, 240, 0.6);
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.3);
    position: relative;
}

.appointment-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a365d;
    position: relative;
    z-index: 1;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.form-row .form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cad1da;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #4a90a4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.08);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    min-width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    transform: none;
    accent-color: #4a90a4;
}

.checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #4a5568;
    margin-bottom: 0;
    font-weight: 400;
}

.appointment-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.25);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.appointment-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.3);
    background: linear-gradient(135deg, #2d5a87, #1a365d);
}

.appointment-button:active {
    transform: translateY(0);
}

.appointment-button i {
    font-size: 1.1rem;
}

a.terms-link,
a.privacy-link {
    color: #4a90a4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

a.terms-link::after,
a.privacy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a90a4;
    transition: width 0.3s ease;
}

a.terms-link:hover::after,
a.privacy-link:hover::after {
    width: 100%;
}

a.terms-link:hover,
a.privacy-link:hover {
    color: #2d5a87;
}


.scroll-animate {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.scroll-animate.from-right {
    transform: translateX(50px);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate.delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.3s;
}

/* Flatpickr custom styling */
.flatpickr-calendar {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 1px solid #d5d9e0 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Inter', sans-serif !important;
}

.flatpickr-calendar.open {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.flatpickr-month {
    background: linear-gradient(135deg, #4a90a4, #2d5a87) !important;
    color: white !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 12px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    background: transparent !important;
    color: white !important;
    font-weight: 600 !important;
}

.flatpickr-weekday {
    background: #f8fafc !important;
    color: #4a5568 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 8px !important;
}

.flatpickr-day {
    border-radius: 8px !important;
    margin: 2px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.flatpickr-day:hover {
    background: rgba(74, 144, 164, 0.1) !important;
    border-color: #4a90a4 !important;
    transform: scale(1.05) !important;
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, #4a90a4, #2d5a87) !important;
    border-color: #2d5a87 !important;
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.3) !important;
}

.flatpickr-day.today {
    border-color: #4a90a4 !important;
    color: #4a90a4 !important;
    font-weight: 600 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: white !important;
    border-radius: 50% !important;
    padding: 8px !important;
    transition: all 0.2s ease !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

/* Fix month dropdown visibility */
.flatpickr-monthDropdown-months {
    background: white !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.flatpickr-monthDropdown-months option {
    background: white !important;
    color: #2d3748 !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
}

.flatpickr-monthDropdown-months option:hover {
    background: rgba(74, 144, 164, 0.1) !important;
    color: #2d5a87 !important;
}

.flatpickr-monthDropdown-months option:selected {
    background: linear-gradient(135deg, #4a90a4, #2d5a87) !important;
    color: white !important;
}

/* Also fix year input when focused */
.flatpickr-current-month input.cur-year:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 4px !important;
}

/* Fix month/year positioning in Flatpickr */
.flatpickr-current-month {
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    padding: 10px 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.flatpickr-current-month span.cur-month {
    margin-left: 0 !important;
    order: 1 !important;
}

.flatpickr-current-month .numInputWrapper {
    order: 2 !important;
    width: 60px !important;
}

.flatpickr-current-month input.cur-year {
    width: 100% !important;
    text-align: center !important;
    padding: 2px 4px !important;
}

/* Ensure proper month container height */
.flatpickr-months {
    height: auto !important;
    min-height: 50px !important;
}

.flatpickr-months .flatpickr-month {
    height: auto !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix navigation arrows positioning */
.flatpickr-prev-month,
.flatpickr-next-month {
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 34px !important;
    width: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-prev-month {
    left: 8px !important;
}

.flatpickr-next-month {
    right: 8px !important;
}

/* Prevent mobile keyboard but keep clickable */
#appointmentDate {
    caret-color: transparent !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

#appointmentDate:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}



/* Keep Flatpickr functional */
.flatpickr-wrapper {
    cursor: pointer !important;
}

.flatpickr-input {
    cursor: pointer !important;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path fill="%234a90a4" d="M6 9L2 5h8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 50px;
    position: relative;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #4a90a4;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.1);
}

#appointmentTime option {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    background: #ffffff;
    border: none;
    min-height: 45px;
    line-height: 1.4;
}

#appointmentTime option:hover {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.1), rgba(45, 90, 135, 0.05));
    color: #2d5a87;
}

#appointmentTime option:checked,
#appointmentTime option:focus {
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    color: white;
}

#appointmentTime option[value=""] {
    color: #a0aec0;
    font-style: italic;
}

/* ← Custom checkbox styles */
.cbx {
 position: relative;
 top: 1px;
 width: 27px;
 height: 27px;
 border: 1px solid #a1a9b7;
 border-radius: 3px;
 transition: background 0.1s ease;
 cursor: pointer;
 display: block;
 background: #ffffff;  /* ← Changed to match your theme */
}
.cbx:after {
 content: '';
 position: absolute;
 top: 2px;
 left: 8px;
 width: 7px;
 height: 14px;
 opacity: 0;
 transform: rotate(45deg) scale(0);
 border-right: 2px solid #fff;
 border-bottom: 2px solid #fff;
 transition: all 0.3s ease;
 transition-delay: 0.15s;
}
#terms:checked ~ .cbx {
 border-color: transparent;
 background: #2d5a87;  /* ← Changed to match your theme */
 animation: jelly 0.6s ease;
}
#terms:checked ~ .cbx:after {  /* ← Changed from #cbx to #terms */
 opacity: 1;
 transform: rotate(45deg) scale(1);
}
.cntr {
 position: relative;
 flex-shrink: 0;  /* ← Added to prevent shrinking */
}
@keyframes jelly {
 from {
  transform: scale(1, 1);
 }
 30% {
  transform: scale(1.25, 0.75);
 }
 40% {
  transform: scale(0.75, 1.25);
 }
 50% {
  transform: scale(1.15, 0.85);
 }
 65% {
  transform: scale(0.95, 1.05);
 }
 75% {
  transform: scale(1.05, 0.95);
 }
 to {
  transform: scale(1, 1);
 }
}
.hidden-xs-up {
 display: none!important;
}

/* Calendar and Time Picker Styles - Add this to your appointment.css */
.calendar-time-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.calendar-section, .time-slots-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.calendar-section h3, .time-slots-section h3 {
    margin-bottom: 15px;
    color: #1a365d;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.month-nav {
    background: none;
    border: none;
    color: #4a90a4;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-nav:hover {
    background: rgba(74, 144, 164, 0.1);
    transform: scale(1.1);
}

.current-month {
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.calendar-day-header {
    text-align: center;
    padding: 8px 4px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.8rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    min-height: 32px;
}

.calendar-day:hover {
    background: rgba(74, 144, 164, 0.1);
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #a0aec0;
    cursor: not-allowed;
}

.calendar-day.past {
    color: #a0aec0;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.3);
}

.calendar-day.has-appointments::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #e53e3e;
    border-radius: 50%;
}

.calendar-day.selected.has-appointments::after {
    background: #fed7d7;
}

.selected-date {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ← Updated time slots container with max height and scroll */
.time-slots-container {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 15px;
}

.time-slots-container::-webkit-scrollbar {
    width: 6px;
}

.time-slots-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.time-slots-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.time-slots-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ← Optimized grid layout for better space usage */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.time-slot {
    padding: 10px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    background: white;
    font-size: 0.85rem;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.time-slot:hover {
    border-color: #4a90a4;
    background: rgba(74, 144, 164, 0.05);
    transform: translateY(-1px);
}

.time-slot.selected {
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    border-color: #2d5a87;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.3);
}

.time-slot.booked {
    background: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.booked:hover {
    transform: none;
    background: #fed7d7;
    border-color: #fc8181;
}

.time-slot small {
    font-size: 0.7rem;
    margin-top: 2px;
    font-weight: 400;
}

/* ← Add a scrollable legend */
.time-slots-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
}

.legend-color.available {
    background: white;
}

.legend-color.booked {
    background: #fed7d7;
    border-color: #fc8181;
}

.legend-color.selected {
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    border-color: #2d5a87;
}

.no-slots-message {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 40px 15px;
    background: #f7fafc;
    border-radius: 6px;
    border: 2px dashed #cbd5e0;
}

.no-slots-message i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #a0aec0;
    display: block;
}

.no-slots-message p {
    margin: 0;
    font-size: 0.9rem;
}


/* Custom Modal/Popup Styles - Add to appointment.css */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(26, 54, 93, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 164, 0.2);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    color: #4a90a4;
    font-size: 1.1rem;
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-text {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.modal-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid #4a90a4;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-detail-row:last-child {
    margin-bottom: 0;
}

.modal-detail-label {
    font-weight: 600;
    color: #1a365d;
}

.modal-detail-value {
    color: #4a5568;
    text-align: right;
}

.modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8fafc;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.modal-btn-secondary {
    background: white;
    color: #4a5568;
    border: 1.5px solid #e2e8f0;
}

.modal-btn-secondary:hover {
    background: #f7fafc;
    border-color: #4a90a4;
    color: #2d5a87;
    transform: translateY(-1px);
}

.modal-btn-primary {
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    color: white;
    border: 1.5px solid transparent;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #2d5a87, #1a365d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

.modal-btn-danger {
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    color: white;
    border: 1.5px solid transparent;
}

.modal-btn-danger:hover {
    background: linear-gradient(135deg, #2d5a87, #1a365d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

.modal-btn-success {
    background: linear-gradient(135deg, #4a90a4, #2d5a87);
    color: white;
    border: 1.5px solid transparent;
}

.modal-btn-success:hover {
    background: linear-gradient(135deg, #2d5a87, #1a365d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

/* Loading state for buttons */
.modal-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.modal-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Input Validation Styles */
.form-group {
    position: relative;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.has-success input,
.form-group.has-success textarea {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

input.error,
textarea.error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

input.success,
textarea.success {
    border-color: #16a34a !important;
    background-color: #f0fdf4;
}

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    display: none;
}

.field-error::before {
    content: "⚠️ ";
    margin-right: 0.25rem;
}

/* Validation icons removed - no visual feedback */
.form-group.has-success::after {
    display: none;
}

.form-group.has-error::after {
    display: none;
}

/* Animation for validation states */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-success input,
.form-group.has-success textarea {
    transition: all 0.3s ease;
}

.field-error {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for validation */
.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-group.has-success input:focus,
.form-group.has-success textarea:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}


/* Adjust positioning for different input types */
.form-group input[type="text"]:focus + .form-group::after,
.form-group input[type="email"]:focus + .form-group::after,
.form-group input[type="tel"]:focus + .form-group::after,
.form-group textarea:focus + .form-group::after {
    opacity: 0.8;
}

/* Better positioning for textarea */
.form-group textarea + .form-group::after {
    top: 1.5rem;
    transform: none;
}

/* Ensure icons don't interfere with input padding */
.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-error input,
.form-group.has-error textarea {
    padding-right: 2.5rem;
}

/* Error/Warning/Success Modal Variants - Clean white backgrounds */
.modal.error .modal-header {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.modal.error .modal-title i {
    color: #1a365d;
}

.modal.warning .modal-header {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.modal.warning .modal-title i {
    color: #2d5a87;
}

.modal.success .modal-header {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.modal.success .modal-title i {
    color: #4a90a4;
}

.modal.info .modal-header {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.modal.info .modal-title i {
    color: #4a90a4;
}

.modal.confirm .modal-header {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.modal.confirm .modal-title i {
    color: #1a365d;
}



.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    display: flex; /* ← Added */
    justify-content: space-between; /* ← Added */
    align-items: flex-start; /* ← Added */
}

.modal-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 12px;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(74, 144, 164, 0.1);
    color: #4a90a4;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Loading Modal Styles */
.loading svg polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading svg polyline#back {
  fill: none;
  stroke: #1a365d;
}

.loading svg polyline#front {
  fill: none;
  stroke: #1a365d; /* ← Solid blue */
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: dash_682 1.4s linear infinite;
}

@keyframes dash_682 {
  72.5% {
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
  }
}



/* Override nav-header styles to be blue instead of transparent */
.nav-header-blue {
    background: #1a365d !important;
    color: #f7fafc !important;
    border-bottom: 1px solid rgba(247, 250, 252, 0.1) !important;
}

.nav-header-blue.scrolled {
    background: #1a365d !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(247, 250, 252, 0.2) !important;
}

.nav-header-blue .nav-brand-link h1 {
    color: #f7fafc !important;
}

.nav-header-blue .nav-header-links ul li a {
    color: #f7fafc !important;
}

.nav-header-blue .nav-header-links ul li a:hover {
    color: #f7fafc !important;

}

.nav-header-blue .nav-header-auth .appointment-primary {
    background: linear-gradient(135deg, #4a90a4, #2d5a87) !important;
}

.nav-header-blue .nav-header-auth .user-toggle {
    color: #f7fafc !important;
    border-color: rgba(247, 250, 252, 0.3) !important;
}

.nav-header-blue .nav-header-auth .user-toggle:hover {
    background-color: rgba(247, 250, 252, 0.1) !important;
}

.nav-header-blue .nav-burger span {
    background-color: #f7fafc !important;
}



