/* ================================================
   TRAVELDRD CHECKOUT SYSTEM CSS (STAFF PORTAL)
   Professional Staff Interface with Inspection Focus
   ================================================ */

:root {
    /* Staff Portal Colors (Different from Guest Check-In) */
    --staff-blue: #1E3A8A;        /* Dark blue for staff */
    --warning-amber: #F59E0B;      /* Amber for warnings */
    --alert-red: #DC2626;          /* Red for major issues */
    --success-green: #10B981;      /* Green for good condition */
    --primary-navy: #0A2540;       /* TravelDRD navy */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --sand: #F5EFE7;
    --charcoal: #333333;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #666666;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
}

/* ==========================================
   CHECKOUT HERO SECTION (STAFF VERSION)
   ========================================== */

.checkout-hero {
    background: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(10, 37, 64, 0.85) 100%),
        url('../images/checkin-hero-bg.jpg') center center/cover no-repeat;
    padding: 5rem 0 3rem;
    color: var(--white);
    text-align: center;
    position: relative;
}

.checkout-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.checkout-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.checkout-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* ==========================================
   PROGRESS BAR (STAFF VERSION)
   ========================================== */

.progress-container {
    margin-top: 3rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: var(--staff-blue);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 25%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--staff-blue);
    border-color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.progress-step.completed .step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
}

.step-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
}

/* ==========================================
   FORM SECTION (STAFF VERSION)
   ========================================== */

.checkout-form-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.checkout-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.step-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--staff-blue);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--staff-blue);
    margin-bottom: 0.75rem;
}

.step-title i {
    color: var(--warning-amber);
    margin-right: 0.75rem;
}

.step-description {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* ==========================================
   FORM GRID & INPUTS
   ========================================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.required {
    color: var(--alert-red);
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    padding: 0.875rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--staff-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

input.error,
select.error,
textarea.error {
    border-color: var(--alert-red);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   INVENTORY SECTION (STAFF VERSION)
   ========================================== */

.inventory-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--sand);
    border-radius: 10px;
    border-left: 4px solid var(--staff-blue);
}

.inventory-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--staff-blue);
    margin-bottom: 1.5rem;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-label {
    font-weight: 500;
    color: var(--charcoal);
    font-size: 0.9375rem;
}

.condition-select {
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 0.9375rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.condition-select:focus {
    outline: none;
    border-color: var(--staff-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.condition-select option[value="excellent"] {
    color: var(--success-green);
    font-weight: 600;
}

.condition-select option[value="good"] {
    color: #059669;
}

.condition-select option[value="fair"] {
    color: var(--warning-amber);
}

.condition-select option[value="damaged"] {
    color: var(--alert-red);
    font-weight: 600;
}

.condition-select option[value="missing"] {
    color: #7C2D12;
    font-weight: 700;
}

/* ==========================================
   DAMAGE CHECKLIST (STAFF VERSION)
   ========================================== */

.damage-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.damage-category {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    border: 2px solid var(--medium-gray);
}

.damage-category h3 {
    font-family: var(--font-accent);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--staff-blue);
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-group label:hover {
    background: rgba(30, 58, 138, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--warning-amber);
}

.checkbox-group input[type="checkbox"]:checked + label {
    background: rgba(245, 158, 11, 0.1);
    font-weight: 600;
}

/* ==========================================
   RADIO GROUPS
   ========================================== */

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--staff-blue);
}

/* ==========================================
   STAR RATING (CLEANLINESS)
   ========================================== */

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2.5rem;
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--warning-amber);
    transform: scale(1.1);
}

.star-rating input[type="radio"]:checked ~ label {
    color: var(--warning-amber);
}

/* ==========================================
   PHOTO PREVIEW
   ========================================== */

.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--medium-gray);
}

/* ==========================================
   FORM ACTIONS (BUTTONS)
   ========================================== */

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--staff-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--charcoal);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    color: var(--white);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
    font-size: 1.125rem;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

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

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--warning-amber);
}

/* ==========================================
   RESPONSIVE (MOBILE/TABLET)
   ========================================== */

@media (max-width: 768px) {
    .checkout-hero {
        padding: 4rem 0 3rem;
    }

    .checkout-title {
        font-size: 2rem;
    }

    .checkout-subtitle {
        font-size: 1rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .checkout-form {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .damage-checklist {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .photo-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .star-rating label {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .checkout-logo {
        max-width: 120px;
    }

    .checkout-title {
        font-size: 1.75rem;
    }

    .checkout-subtitle {
        font-size: 0.9375rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .step-label {
        font-size: 0.8125rem;
    }
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}
