
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 5px;
}

header p {
    color: #718096;
    font-size: 1rem;
}


main {
    padding: 30px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}


.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 30px 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

.step.active::after,
.step.completed::after {
    background: #48bb78;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #718096;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: #48bb78;
    color: white;
}

.step-text {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.step.active .step-text,
.step.completed .step-text {
    color: #2d3748;
}


.form-container {
    padding: 30px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}


.time-slots {
    margin-bottom: 20px;
}

.time-slots > label {
    display: block;
    margin-bottom: 10px;
    color: #4a5568;
    font-weight: 500;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-slot:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.time-slot.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-slot.unavailable {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}


.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.doctor-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.doctor-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doctor-card.selected {
    border-color: #48bb78;
    background: #f0fff4;
}

.doctor-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #48bb78;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.doctor-card h3 {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.doctor-card p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.doctor-card .specialty {
    display: inline-block;
    background: #edf2f7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4a5568;
}


.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next,
.btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-prev {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-prev:hover {
    background: #cbd5e0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


.confirmation-details {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.confirmation-details h3 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #718096;
    font-weight: 500;
}

.detail-value {
    color: #2d3748;
    font-weight: 600;
}


.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #48bb78;
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h2 {
    color: #2d3748;
    margin-bottom: 15px;
}

.success-message p {
    color: #718096;
    margin-bottom: 25px;
}

.booking-reference {
    background: #edf2f7;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #4a5568;
}

.booking-reference span {
    font-weight: bold;
    color: #667eea;
}


footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .progress-steps {
        padding: 20px 10px;
    }

    .step-text {
        display: none;
    }

    .step::after {
        top: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
    }

    .form-container {
        padding: 20px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn-next {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
}