/* ================================================
   TRAVELDRD CHECK-IN SYSTEM CSS
   Beach/Vacation Theme with Professional UI
   ================================================ */

:root {
    /* Match TravelDRD.com colors */
    --primary-navy: #0A2540;
    --accent-turquoise: #4A9B9C;
    --accent-coral: #FF6B6B;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --sand: #F5EFE7;
    --sage: #E8F0E8;
    --cream: #FFF9F0;
    --charcoal: #333333;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #666666;
    
    /* Typography - Match main site */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
}

/* ==========================================
   CHECK-IN HERO SECTION
   ========================================== */

.checkin-hero {
    background: 
        linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(74, 155, 156, 0.75) 100%),
        url('../images/checkin-hero-bg.jpg') center center/cover no-repeat;
    padding: 6rem 0 4rem;
    color: var(--white);
    text-align: center;
    position: relative;
}

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

.checkin-logo {
    max-width: 150px;
    margin-bottom: 2rem;
}

.checkin-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.checkin-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 3rem;
}

/* Progress Indicator */
.progress-container {
    margin-top: 3rem;
}

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

.progress-fill {
    height: 100%;
    background: var(--accent-coral);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 25%;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

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

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--accent-coral);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================
   FORM SECTION
   ========================================== */

.checkin-form-section {
    padding: 4rem 0;
    background: var(--off-white);
    min-height: 60vh;
}

.checkin-form {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Form Steps */
.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(--light-gray);
}

.step-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.step-title i {
    color: var(--accent-turquoise);
    margin-right: 0.5rem;
}

.step-description {
    font-size: 1.125rem;
    color: var(--charcoal);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.form-group label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.required {
    color: var(--accent-coral);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-turquoise);
    box-shadow: 0 0 0 3px rgba(74, 155, 156, 0.1);
}

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

/* ==========================================
   INVENTORY SECTION
   ========================================== */

.inventory-sections {
    margin-bottom: 3rem;
}

.inventory-category {
    background: var(--off-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    color: var(--accent-turquoise);
    font-size: 1.5rem;
}

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

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

.inventory-item label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.inventory-item .qty {
    color: var(--charcoal); /* Changed from medium-gray to charcoal (black) for legibility */
    font-weight: 500; /* Slightly bolder for better readability */
    font-size: 0.875rem;
}

.inventory-item select {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inventory-item select:focus {
    outline: none;
    border-color: var(--accent-turquoise);
    box-shadow: 0 0 0 3px rgba(74, 155, 156, 0.1);
}

.inventory-item select[value="damaged"] {
    border-color: var(--accent-coral);
}

.inventory-item select[value="missing"] {
    border-color: var(--accent-coral);
}

/* Photo Upload */
.photo-upload-section {
    background: var(--off-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.photo-upload-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.photo-upload-section p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.photo-upload-section input[type="file"] {
    padding: 1rem;
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-section input[type="file"]:hover {
    border-color: var(--accent-turquoise);
    background: rgba(74, 155, 156, 0.05);
}

.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(--light-gray);
}

/* ==========================================
   LEGAL DOCUMENTS
   ========================================== */

.legal-document {
    background: var(--off-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-title i {
    color: var(--accent-coral);
}

.legal-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.legal-content h4 {
    font-weight: 700;
    color: var(--primary-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p {
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.legal-content ul li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.legal-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-turquoise);
    font-weight: 700;
}

.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.legal-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 2px;
    cursor: pointer;
}

.legal-checkbox label {
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.6;
    cursor: pointer;
}

/* ==========================================
   SIGNATURE SECTION
   ========================================== */

.signature-section {
    margin-bottom: 2rem;
}

.signature-pad-container {
    margin: 2rem 0;
}

.signature-instructions {
    color: var(--medium-gray);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.signature-pad {
    width: 100%;
    max-width: 100%;
    height: 200px;
    border: 3px solid var(--light-gray);
    border-radius: 8px;
    cursor: crosshair;
    background: var(--white);
    transition: all 0.3s ease;
    display: block;
    touch-action: none; /* Prevent touch scrolling */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard */
    box-sizing: border-box;
    /* Force canvas to be block-level and sized */
    min-height: 200px;
}

.signature-pad:hover {
    border-color: var(--accent-turquoise);
}

.signature-pad-container {
    margin-top: 1.5rem;
}

.signature-pad-container label {
    display: block;
    margin-bottom: 0.5rem;
}

.signature-instructions {
    color: var(--medium-gray);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.signature-actions {
    margin-top: 1rem;
}

.signature-timestamp {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.signature-timestamp p {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.signature-timestamp strong {
    color: var(--primary-navy);
}

.esign-disclosure {
    background: var(--cream);
    border-left: 4px solid var(--accent-coral);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.esign-disclosure h4 {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.esign-disclosure h4 i {
    color: var(--accent-coral);
}

.esign-disclosure ul {
    list-style: none;
    padding-left: 0;
}

.esign-disclosure ul li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.esign-disclosure ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-coral);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ==========================================
   BUTTONS & ACTIONS
   ========================================== */

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

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--accent-turquoise);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 155, 156, 0.3);
}

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

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

.btn-success {
    background: var(--accent-turquoise);
    color: var(--white);
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
}

.btn-success:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 155, 156, 0.3);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

.btn-next {
    margin-left: auto;
}

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

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

    .progress-steps {
        gap: 0.5rem;
    }

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

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

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

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

    .inventory-grid {
        grid-template-columns: 1fr;
    }
    
    /* MOBILE FIX: Ensure quantity numbers are black and readable */
    .inventory-item .qty {
        color: #000000 !important; /* Force black on mobile */
        font-weight: 600 !important; /* Bolder for mobile readability */
        font-size: 0.9375rem !important; /* Slightly larger on mobile */
    }

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

    .btn-next {
        margin-left: 0;
    }

    .legal-content {
        max-height: 300px;
    }

    .signature-pad {
        height: 150px;
    }
}

/* ==========================================
   PAYMENT OPTIONS (STEP 5)
   ========================================== */

.payment-options {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-option {
    background: white;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--accent-turquoise);
    box-shadow: 0 4px 12px rgba(74, 155, 156, 0.15);
    transform: translateY(-2px);
}

.payment-header {
    background: linear-gradient(135deg, #F5F5F5 0%, #E8F0E8 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.payment-icon {
    font-size: 1.75rem;
    color: var(--accent-turquoise);
}

.payment-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-navy);
    flex: 1;
}

.payment-badge {
    background: var(--accent-turquoise);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.payment-body {
    padding: 1.5rem;
}

.payment-body p {
    margin: 0 0 1rem;
    color: var(--dark-gray);
}

.payment-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    border: 2px dashed var(--accent-turquoise);
}

.payment-button {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--primary-navy);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.payment-button:hover {
    background: var(--accent-turquoise);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 155, 156, 0.3);
}

.payment-button i {
    margin-right: 0.5rem;
}

.paypal-button {
    background: #0070BA;
}

.paypal-button:hover {
    background: #005A94;
}

.zelle-button {
    background: #6D1ED4;
}

.zelle-button:hover {
    background: #5A18B0;
}

.venmo-button {
    background: #008CFF;
}

.venmo-button:hover {
    background: #0070CC;
}

.venmo-button-alt {
    background: var(--dark-gray);
}

.venmo-button-alt:hover {
    background: var(--charcoal);
}

/* Stripe button container */
stripe-buy-button {
    display: block;
    margin: 0 auto;
}

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

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

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

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

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

/* ==========================================
   STEP 2: HIDE DROPDOWNS, SHOW AS CHECKLIST
   ========================================== */

/* Hide ALL dropdown selects in Step 2 */
#step2 select {
    display: none !important;
}

/* Hide required asterisks in Step 2 */
#step2 .required {
    display: none !important;
}

/* Style inventory items as checklist cards */
#step2 .inventory-item {
    padding: 1rem !important;
    background: white !important;
    border-radius: 8px !important;
    border-left: 4px solid #4A9B9C !important;
    margin-bottom: 0.75rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

#step2 .inventory-item:hover {
    transform: translateX(3px) !important;
    box-shadow: 0 4px 8px rgba(74, 155, 156, 0.15) !important;
}

/* Add green checkmark before each item */
#step2 .inventory-item label {
    display: flex !important;
    align-items: center !important;
    cursor: default !important;
    margin: 0 !important;
    font-weight: 500 !important;
    color: #333333 !important;
    font-size: 0.9375rem !important;
}

#step2 .inventory-item label::before {
    content: "✓" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    margin-right: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    flex-shrink: 0 !important;
}

/* Style quantity badges */
#step2 .qty {
    font-weight: 600 !important;
    color: #4A9B9C !important;
    font-size: 0.875rem !important;
}



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

.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-col i {
    color: var(--accent-turquoise);
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9375rem;
}
