
:root {
    --primary-gradient: linear-gradient(135deg, #1aa3e0 0%, #0d47a1 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.hero-section {
    background: var(--primary-gradient);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.booking-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    padding: 2rem;
}

.form-section {
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.section-title- {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-title- i {
    margin-right: 0.75rem;
    color: #1aa3e0;
    font-size: 1.5rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: 3.5rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #1aa3e0;
    box-shadow: 0 0 0 0.2rem rgba(26, 163, 224, 0.15);
    background: #ffffff;
}

.form-floating > label {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not([value=""]) ~ label {
    color: #1aa3e0;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-gradient:active {
    transform: translateY(0);
}

.hospital-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hospital-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hospital-card:hover {
    border-color: #1aa3e0;
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.hospital-card:hover::before {
    transform: scaleX(1);
}

.hospital-card.selected {
    border-color: #1aa3e0;
    background: linear-gradient(135deg, rgba(26, 163, 224, 0.05) 0%, rgba(13, 71, 161, 0.05) 100%);
}

.hospital-card.selected::before {
    transform: scaleX(1);
}

.hospital-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.hospital-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.hospital-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.service-card:hover {
    border-color: #1aa3e0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.service-card.selected {
    border-color: #1aa3e0;
    background: linear-gradient(135deg, rgba(26, 163, 224, 0.05) 0%, rgba(13, 71, 161, 0.05) 100%);
}


.service-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.service-description {
    color: #64748b;
    font-size: 0.85rem;
}

.time-slot {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #1aa3e0;
    transform: translateY(-2px);
}

.time-slot.selected {
    border-color: #1aa3e0;
    background: var(--primary-gradient);
    color: white;
}

.time-slot.disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: var(--primary-gradient);
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--primary-gradient);
    color: white;
}

.step.completed .step-circle {
    background: #10b981;
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.step.active .step-label {
    color: #1aa3e0;
    font-weight: 600;
}

.confirmation-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid #e2e8f0;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-label {
    color: #64748b;
    font-weight: 500;
}

.confirmation-value {
    color: #2d3748;
    font-weight: 600;
}

.floating-action {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 2rem;
}

.error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .booking-container {
        margin: 1rem;
        border-radius: var(--border-radius);
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        margin-bottom: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

 .animate-fade-in {
     animation: fadeIn 0.6s ease-out;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Filter Buttons */
 .filter-buttons {
     display: flex;
     gap: 1rem;
     flex-wrap: wrap;
     justify-content: center;
 }

 .btn-filter {
     background: white;
     border: 2px solid #e2e8f0;
     color: #64748b;
     font-weight: 500;
     padding: 0.75rem 1.5rem;
     border-radius: 12px;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
 }

 .btn-filter:hover {
     border-color: #1aa3e0;
     color: #1aa3e0;
     transform: translateY(-2px);
 }

 .btn-filter.active {
     background: var(--primary-gradient);
     border-color: #1aa3e0;
     color: white;
 }

 .filter-icon {
     width: 20px;
     height: 20px;
     object-fit: contain;
 }

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    border-color: #1aa3e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 163, 224, 0.2);
}

.service-card.selected {
    border-color: #1aa3e0;
    background: linear-gradient(135deg, rgba(26, 163, 224, 0.05) 0%, rgba(13, 71, 161, 0.05) 100%);
    box-shadow: 0 6px 20px rgba(26, 163, 224, 0.15);
}

.service-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.service-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


.service-name {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.service-description {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    text-align: center;
    flex-grow: 1;
}

.service-info {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    margin-top: auto;
}

.service-duration {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-duration i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

.service-price {
    color: #1aa3e0;
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
    display: block;
}

.service-deposit {
    color: #059669;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
}

 /* Service Images Carousel */
 #serviceCarousel {
     height: 400px;
     background: #f8fafc;
 }

 #serviceCarousel .carousel-inner {
     height: 100%;
 }

 #serviceCarousel .carousel-item {
     height: 100%;
 }

 #serviceCarousel .carousel-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .service-image-placeholder {
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     color: #64748b;
     font-size: 3rem;
 }

 #serviceCarousel .carousel-control-prev,
 #serviceCarousel .carousel-control-next {
     width: 50px;
     background: rgba(0, 0, 0, 0.3);
     border-radius: 50%;
     height: 50px;
     top: 50%;
     transform: translateY(-50%);
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 #serviceCarousel:hover .carousel-control-prev,
 #serviceCarousel:hover .carousel-control-next {
     opacity: 1;
 }

 #serviceCarousel .carousel-control-prev {
     left: 20px;
 }

 #serviceCarousel .carousel-control-next {
     right: 20px;
 }

 #serviceCarousel .carousel-indicators {
     margin-bottom: 15px;
 }

 #serviceCarousel .carousel-indicators button {
     width: 10px;
     height: 10px;
     border-radius: 50%;
     background-color: rgba(255, 255, 255, 0.5);
     border: 2px solid white;
 }

 #serviceCarousel .carousel-indicators button.active {
     background-color: white;
 }

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.status-done {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Summary Card */
.summary-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: #2d3748;
    font-weight: 600;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.payment-method {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-method:hover {
    border-color: #1aa3e0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.payment-method.selected {
    border-color: #1aa3e0;
    background: linear-gradient(135deg, rgba(26, 163, 224, 0.05) 0%, rgba(13, 71, 161, 0.05) 100%);
}

.payment-icon {
    font-size: 2rem;
    color: #1aa3e0;
    margin-bottom: 0.5rem;
}

.payment-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.payment-description {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
}

/* Appointment Card */
.appointment-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid #e2e8f0;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.appointment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    text-align: center;
}

.detail-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.detail-value {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1rem;
}

 @media (max-width: 768px) {
     .filter-buttons {
         flex-direction: column;
         align-items: center;
     }
     
     .btn-filter {
         width: 100%;
         max-width: 300px;
         justify-content: center;
     }
 }