﻿
/* Custom CSS for Professional Courier Booking */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}



select.form-control {
    white-space: normal !important;
    height: auto !important;
    line-height: 1.5em !important;
    padding-right: 30px !important; /* space for dropdown arrow */
}

    select.form-control option {
        white-space: normal !important;
    }

/* Optional: for smaller screens */
@media (max-width: 768px) {
    select.form-control {
        font-size: 14px;
    }
}

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

    .booking-header h1 {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .booking-header p {
        margin: 10px 0 0;
        font-size: 1.1rem;
        opacity: 0.9;
    }

/* Step Progress Indicator */
.step-progress {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-indicator {
    display: flex;
    align-items: center;
    position: relative;
}

    .step-indicator:not(:last-child)::after {
        content: '';
        width: 80px;
        height: 2px;
        background: #dee2e6;
        margin: 0 10px;
    }

    .step-indicator.completed::after {
        background: #28a745;
    }

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-indicator.active .step-circle {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed .step-circle {
    background: #28a745;
    color: white;
}

.step-label {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    color: #6c757d;
}

.step-indicator.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* Form Styling */
.booking-form {
    padding: 40px;
}

.form-step {
    display: none;
}

    .form-step.active {
        display: block;
        animation: fadeInUp 0.5s ease;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

    .step-title::after {
        content: '';
        width: 60px;
        height: 3px;
        background: #667eea;
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #667eea;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

    .section-title i {
        margin-right: 10px;
        color: #667eea;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-weight: 500;
        color: #495057;
        margin-bottom: 8px;
        display: block;
    }

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

.input-group {
    position: relative;
}

    .input-group .form-control {
        padding-right: 50px;
    }

.input-group-append {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.btn {
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

.btn-secondary {
    background: #6c757d;
    border: none;
}

.btn-success {
    background: #28a745;
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

    .btn-outline-primary:hover {
        background: #667eea;
        border-color: #667eea;
        color: white;
    }

/* Checkbox Styling */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

    .custom-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        accent-color: #667eea;
    }

/* Rate Calculation Box */
.rate-calculation {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
}

    .rate-calculation h4 {
        margin-bottom: 20px;
        font-weight: 600;
    }

.rate-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

    .rate-row.total {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        padding-top: 15px;
        margin-top: 15px;
        font-weight: 700;
        font-size: 1.3rem;
    }

/* Summary Section */
.summary-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #28a745;
}

.summary-section {
    margin-bottom: 25px;
}

    .summary-section h5 {
        color: #495057;
        font-weight: 600;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

        .summary-section h5 i {
            margin-right: 10px;
            color: #28a745;
        }

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

    .summary-row strong {
        color: #495057;
    }

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

/* OTP Section */
.otp-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.otp-verified {
    background: #d1edff;
    border-color: #74b9ff;
    color: #0984e3;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        margin: 0 10px;
        border-radius: 10px;
    }

    .booking-header {
        padding: 20px;
    }

        .booking-header h1 {
            font-size: 2rem;
        }

    .booking-form {
        padding: 20px;
    }

    .step-indicators {
        flex-wrap: wrap;
    }

    .step-indicator:not(:last-child)::after {
        width: 40px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}
