/* ============================================
   ASFAAR TRAVELS - BOOKING FORM STYLES
   Clean, Professional Design - White Background
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ============================================
   MAIN WRAPPER & CONTAINER
   ============================================ */

.afsar-booking-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.afsar-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
}

.afsar-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.afsar-progress-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.afsar-progress-step.active span {
    background: #3055FF;
    color: white;
    border-color: #3055FF;
    transform: scale(1.1);
}

.afsar-progress-step.completed span {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.afsar-progress-step.completed::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* ============================================
   STEP STYLING
   ============================================ */

.afsar-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.afsar-step.active {
    display: block;
}

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

.afsar-step-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #3055FF;
    padding-bottom: 10px;
}

/* ============================================
   PACKAGE SELECTION
   ============================================ */

.afsar-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.afsar-package-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.afsar-package-card:hover {
    border-color: #3055FF;
    box-shadow: 0 4px 15px rgba(48, 85, 255, 0.15);
    transform: translateY(-5px);
}

.afsar-package-card.selected {
    border-color: #3055FF;
    background: #f0f4ff;
}

.afsar-package-category {
    display: inline-block;
    background: #3055FF;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.afsar-package-card h3 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.afsar-package-price {
    font-size: 28px;
    color: #3055FF;
    font-weight: bold;
    margin: 15px 0;
}

.afsar-package-card p {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.afsar-btn-select-package {
    background: #3055FF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.afsar-btn-select-package:hover {
    background: #1a35d6;
    transform: scale(1.05);
}

/* ============================================
   TRAVELERS COUNTER
   ============================================ */

.afsar-travelers-section {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.afsar-traveler-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.afsar-traveler-counter:hover {
    border-color: #3055FF;
    box-shadow: 0 2px 8px rgba(48, 85, 255, 0.1);
}

.afsar-traveler-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.afsar-traveler-icon {
    font-size: 32px;
}

.afsar-traveler-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.afsar-traveler-desc {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.afsar-discount-badge {
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

.afsar-counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.afsar-counter-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.afsar-counter-btn:hover {
    background: #3055FF;
    color: white;
    border-color: #3055FF;
}

.afsar-counter-controls input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 5px;
    font-weight: 600;
    background: #f9f9f9;
}

/* ============================================
   FORM FIELDS
   ============================================ */

.afsar-field {
    margin-bottom: 20px;
}

.afsar-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.afsar-field input,
.afsar-field select,
.afsar-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.afsar-field input:focus,
.afsar-field select:focus,
.afsar-field textarea:focus {
    outline: none;
    border-color: #3055FF;
    box-shadow: 0 0 0 3px rgba(48, 85, 255, 0.1);
}

.afsar-field input:invalid,
.afsar-field select:invalid {
    border-color: #dc3545;
}

.afsar-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* ============================================
   HOTELS & TRANSPORT SECTIONS
   ============================================ */

.afsar-hotels-section,
.afsar-transport-section {
    margin: 30px 0;
}

.afsar-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #3055FF;
    padding-bottom: 10px;
}

.afsar-city-group {
    margin-bottom: 20px;
}

.afsar-city-label {
    font-size: 14px;
    font-weight: 600;
    color: #3055FF;
    margin-bottom: 10px;
    display: block;
}

.afsar-hotels-grid,
.afsar-transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.afsar-hotel-card,
.afsar-transport-card {
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.afsar-hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3055FF, #5577FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.afsar-hotel-card:hover::before,
.afsar-transport-card:hover::before {
    transform: scaleX(1);
}

.afsar-hotel-card:hover,
.afsar-transport-card:hover {
    border-color: #3055FF;
    box-shadow: 0 8px 24px rgba(48, 85, 255, 0.2);
    transform: translateY(-8px);
}

.afsar-hotel-card.selected,
.afsar-transport-card.selected {
    border-color: #3055FF;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(48, 85, 255, 0.25);
}

.afsar-hotel-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    background: #3055FF;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.afsar-hotel-card h4,
.afsar-transport-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    margin-top: 0;
}

.afsar-hotel-rating,
.afsar-transport-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.5;
}

.afsar-hotel-price,
.afsar-transport-price {
    font-size: 18px;
    color: #3055FF;
    font-weight: bold;
    margin-bottom: 0;
    margin-top: auto;
}

/* ============================================
   VISA CALCULATOR
   ============================================ */

.afsar-visa-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border: 2px solid #e0e0e0;
}

.afsar-visa-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.afsar-visa-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.afsar-visa-option input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.afsar-visa-breakdown {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.afsar-visa-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.afsar-visa-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #3055FF;
    font-size: 15px;
    padding-top: 10px;
}

/* ============================================
   TRAVELER FORMS
   ============================================ */

.afsar-traveler-forms-container {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.afsar-traveler-form-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.afsar-traveler-form-card:hover {
    border-color: #3055FF;
    box-shadow: 0 4px 12px rgba(48, 85, 255, 0.1);
}

.afsar-traveler-form-card.invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.afsar-traveler-form-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #3055FF;
    padding-bottom: 10px;
}

.afsar-traveler-form-card .afsar-field {
    margin-bottom: 15px;
}

.afsar-traveler-form-card .afsar-field label {
    font-size: 13px;
}

.afsar-traveler-form-card .afsar-field input {
    padding: 10px;
    font-size: 13px;
}

/* ============================================
   FLIGHT DETAILS
   ============================================ */

.afsar-flight-details-section {
    margin: 30px 0;
}

.afsar-flight-forms {
    display: grid;
    gap: 20px;
}

.afsar-flight-form-group {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.afsar-flight-form-group h4 {
    color: #333;
    font-size: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3055FF;
    padding-bottom: 8px;
}

/* ============================================
   SUMMARY
   ============================================ */

.afsar-summary-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin: 30px 0;
}

.afsar-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.afsar-summary-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 16px;
    color: #3055FF;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #e0e0e0;
}

/* ============================================
   BUTTONS
   ============================================ */

.afsar-step-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 40px 0 0 0;
}

.afsar-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.afsar-btn-primary {
    background: #3055FF;
    color: white;
}

.afsar-btn-primary:hover:not(:disabled) {
    background: #1a35d6;
    transform: translateY(-2px);
}

.afsar-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.afsar-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.afsar-btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.afsar-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.afsar-btn-complete {
    background: #28a745;
    color: white;
    width: 100%;
}

.afsar-btn-complete:hover {
    background: #218838;
}

/* ============================================
   FINAL COMPLETION SCREEN
   ============================================ */

.afsar-completion-box {
    text-align: center;
    padding: 40px;
    background: #f0f4ff;
    border-radius: 8px;
    border: 2px solid #3055FF;
    margin: 30px 0;
}

.afsar-completion-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.afsar-completion-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.afsar-completion-message {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.afsar-reference-number {
    background: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    color: #3055FF;
    border: 2px dashed #3055FF;
    margin: 20px 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .afsar-booking-wrapper {
        margin: 20px;
        padding: 20px;
    }

    .afsar-progress {
        flex-wrap: wrap;
        gap: 15px;
    }

    .afsar-progress-step {
        flex: 0 0 calc(50% - 8px);
        font-size: 11px;
    }

    .afsar-progress-step span {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        margin: 0 auto 6px;
    }

    .afsar-packages-grid {
        grid-template-columns: 1fr;
    }

    .afsar-step-title {
        font-size: 22px;
    }

    .afsar-hotels-grid,
    .afsar-transport-grid {
        grid-template-columns: 1fr;
    }

    .afsar-step-nav {
        flex-direction: column;
    }

    .afsar-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .afsar-booking-wrapper {
        margin: 10px;
        padding: 15px;
    }

    .afsar-step-title {
        font-size: 18px;
    }

    .afsar-progress-step {
        flex: 0 0 calc(25% - 8px);
    }

    .afsar-progress-step span {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 12px;
    }

    .afsar-traveler-counter {
        flex-direction: column;
        text-align: center;
    }
}
