/* ===================================
   GLOBAL STYLES & RESET
   =================================== */
* {
    margin: 0px;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #77a172d5 0%, #c8d4ca 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2d3748;
}

/* ===================================
   PAGE WRAPPER
   =================================== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================================
   MAIN CONTAINER
   =================================== */
.container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   PROGRESS BAR
   =================================== */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #6aa35f 0%, #4a8f44 100%);
    padding: 30px 50px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.step-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
    max-width: 120px;
}

.step.active .step-icon {
    background: #ffffff;
    color: #6aa35f;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.step.active .step-text {
    color: #ffffff;
    font-weight: 600;
}

.step.completed .step-icon {
    background: #ffffff;
    color: #6aa35f;
    border-color: #ffffff;
}

.step.completed .step-text {
    color: #ffffff;
}

.step-line {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    top: -20px;
}

.step-line.completed {
    background: #ffffff;
}

/* ===================================
   CONTENT AREA
   =================================== */
.content-area {
    padding: 50px;
}

/* ===================================
   SEARCH BAR
   =================================== */
.search-container {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #6aa35f;
    box-shadow: 0 0 0 4px rgba(106, 163, 95, 0.1);
}

/* ===================================
   SELECTED INFO
   =================================== */
.selected-info-group {
    display: flex;
    gap: 20px;
    /* margin-bottom: 30px; */
    flex-wrap: wrap;
}

.selected-info {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    padding: 15px 25px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #6aa35f;
    margin-bottom: 20px;
}

.info-label {
    font-weight: 600;
    color: #6aa35f;
    font-size: 0.9rem;
}

.info-value {
    color: #2d3748;
    font-weight: 500;
}

/* ===================================
   SERVICES GRID
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.service-card input[type="radio"] {
    display: none;
}

.card-content {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #6aa35f;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.service-card input[type="radio"]:checked + .card-content {
    border-color: #6aa35f;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(106, 163, 95, 0.2);
    transform: translateY(-2px);
}

.service-card input[type="radio"]:checked + .card-content .radio-custom {
    border-color: #6aa35f;
    background: #ffffff;
}

.service-card input[type="radio"]:checked + .card-content .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.service-card:hover .card-content {
    border-color: #6aa35f;
    box-shadow: 0 4px 12px rgba(106, 163, 95, 0.15);
    transform: translateY(-2px);
}

.service-name,
.disease-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    flex: 1;
}

.service-desc,
.disease-desc {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 5px;
}

/* ===================================
   DISEASES GRID
   =================================== */
.diseases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.disease-card {
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.disease-card input[type="radio"] {
    display: none;
}

.disease-card input[type="radio"]:checked + .card-content {
    border-color: #6aa35f;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(106, 163, 95, 0.2);
    transform: translateY(-2px);
}

.disease-card input[type="radio"]:checked + .card-content .radio-custom {
    border-color: #6aa35f;
    background: #ffffff;
}

.disease-card input[type="radio"]:checked + .card-content .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.disease-card:hover .card-content {
    border-color: #6aa35f;
    box-shadow: 0 4px 12px rgba(106, 163, 95, 0.15);
    transform: translateY(-2px);
}

/* ===================================
   DATE & TIME SECTION
   =================================== */
.datetime-section {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 1rem;
}

.date-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    background: #ffffff;
}

.date-input:focus {
    border-color: #6aa35f;
    box-shadow: 0 0 0 4px rgba(106, 163, 95, 0.1);
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
}

.time-section {
    margin-top: 30px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.time-slot-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.time-slot-btn:hover:not(.disabled) {
    border-color: #6aa35f;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 163, 95, 0.15);
}

.time-slot-btn.selected {
    background: linear-gradient(135deg, #6aa35f 0%, #4a8f44 100%);
    color: #ffffff;
    border-color: #6aa35f;
    box-shadow: 0 4px 12px rgba(106, 163, 95, 0.3);
}

.time-slot-btn.disabled {
    background: #f7fafc;
    color: #cbd5e0;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.no-slots {
    padding: 20px;
    text-align: center;
    color: #718096;
    background: #f7fafc;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* ===================================
   LOADING SPINNER
   =================================== */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #6aa35f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #718096;
    font-size: 0.95rem;
}

/* ===================================
   APPOINTMENT SUMMARY
   =================================== */
.appointment-summary {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
    border-left: 5px solid #6aa35f;
}

.summary-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

/* ===================================
   DETAILS FORM
   =================================== */
.details-form {
    max-width: 100%;
}

.form-section-title {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    background: #ffffff;
}

.form-control:focus {
    border-color: #6aa35f;
    box-shadow: 0 0 0 4px rgba(106, 163, 95, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

/* ===================================
   FORM ACTIONS (Buttons)
   =================================== */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    background: #f7fafc;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.btn-back:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(-3px);
}

.btn-next {
    background: linear-gradient(135deg, #6aa35f 0%, #4a8f44 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(106, 163, 95, 0.3);
}

.btn-next:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(106, 163, 95, 0.4);
    transform: translateY(-2px);
}

.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .services-grid,
    .diseases-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .progress-bar {
        padding: 20px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .step {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }

    .step-line {
        display: none;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-text {
        font-size: 0.75rem;
        max-width: 100px;
    }

    .content-area {
        padding: 25px;
    }

    .services-grid,
    .diseases-grid {
        grid-template-columns: 1fr;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .step {
        flex: 1 1 100%;
    }

    .content-area {
        padding: 20px;
    }

    .appointment-summary {
        padding: 20px;
    }

    .summary-title,
    .form-section-title {
        font-size: 1.1rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    body {
        background: white;
    }

    .btn,
    .search-container {
        display: none;
    }

    .container {
        box-shadow: none;
    }
}