/* ===========================================
   VENDOR PROFILE WIZARD STYLES
   Mobile-optimized responsive design
   =========================================== */

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

body {
    font-family: 'davis-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 3vh 3vw;
}

/* Background image - right side only in landscape */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: url('https://images.squarespace-cdn.com/content/v1/5ec55d5d28a93e0e18d2eeb4/1758568188414-ETHZE4FCV33WMFHJOJXW/unsplash-image-DNl3481Nyoc.jpg') no-repeat right center;
    background-size: cover;
    z-index: -1;
}

@media (orientation: portrait), (max-width: 768px) {
    .mobile-buttons {
        display: flex;
    }
    
    /* Add extra bottom padding to prevent content overlap */
    .main-content {
        padding-bottom: 140px !important; /* Increased from 120px */
    }
    
    /* Ensure dropdowns appear above mobile buttons */
    .dropdown-options {
        z-index: 2100 !important;
    }
    
    .custom-dropdown {
        z-index: 2100;
    }
    
    /* Ensure modals appear above everything */
    .contact-modal {
        z-index: 2200 !important;
    }

    .crop-modal {
        z-index: 2200 !important;
    }

    /* Add extra space for upload containers */
    .image-upload-container {
        margin-bottom: 100px;
    }
    
    .catalogue-upload-container {
        margin-bottom: 100px;
    }
}

/* ===========================================
   DESKTOP LAYOUT
   =========================================== */

.wizard-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 6vh);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.66);
    border-radius: 20px;
    border: 3px solid #000000;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 23vw;
    height: 100%;
    background: #e6e6e6;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.logo-section {
    margin-bottom: 2vw;
    width: 100%;
    min-height: 10vw;
    display: flex;
    align-items: flex-start;
}

.logo-and-title {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
    height: 5vw;
    margin-bottom: 2vw;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5vw;
}

.csc-logo {
    width: auto;
    height: 7vw;
    max-width: 12vw;
    object-fit: contain;
    flex-shrink: 0;
}

.organization-logo-container {
    display: flex;
    justify-content: flex-start;
    min-height: 5vw;
}

.organization-logo {
    max-width: 5vw;
    max-height: 5vw;
    width: auto;
    height: auto;
    object-fit: contain;
}


.organization-logo {
    max-width: 5vw;
    max-height: 5vw;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 1;
}

.address-block {
    line-height: 1.4;
}

.address-line-1 {
    margin-bottom: 4px;
}

.address-line-2 {
    margin-bottom: 0;
}

/* ===========================================
   STEP NAVIGATION
   =========================================== */

.step-navigation {
    flex: 1;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 2vw;
    padding: 0.8vw 0;
}

.step-number {
    width: 2vw;
    height: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2vw;
    flex-shrink: 0;
}

.step-number svg {
    width: 1.4vw;
    height: 1.4vw;
}

.step-title {
    font-weight: 500;
    font-size: 1.2vw;
    color: #333333;
    line-height: 1.2;
}

/* Active step styling */
.step-item.active .step-number svg {
    fill: #ba003b !important;
}

.step-item.active .step-title {
    color: #ba003b;
    font-weight: 700;
}

.step-item.completed .step-number {
    background: #28a745;
    border-radius: 50%;
    width: 2vw;
    height: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item.completed .step-number svg {
    display: none;
}

.step-item.completed .step-number::after {
    content: '✓';
    color: #ffffff;
    font-size: 1vw;
    font-weight: 700;
}

.step-item.completed .step-title {
    color: #666666;
    text-decoration: line-through;
    font-weight: 400;
}

/* ===========================================
   MAIN CONTENT AREA
   =========================================== */

.main-content {
    flex: 1;
    padding: 0px 60px 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-height: 400px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Welcome Screen */
.welcome-section {
    width: 45%;
    max-width: none;
    margin-top: 140px;
}

.welcome-title {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 3.0vw;
    color: #000000;
    margin-bottom: 30px;
    line-height: 1.1;
}

.welcome-text {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.0vw;
    color: #808080;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ===========================================
   STEP HEADERS
   =========================================== */

.step-header {
    margin-bottom: 40px;
    margin-top: 60px;
}

.step-title-main {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 3.0vw;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.1;
}

.step-subtitle {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.0vw;
    color: #808080;
    line-height: 1.4;
    margin: 0;
    max-width: 30vw;
}

/* ===========================================
   FORM FIELDS & EDITING SYSTEM
   =========================================== */

.form-container {
    max-width: 44vw;
    width: 100%;
}

.form-field {
    margin-bottom: 1.5vw;
    position: relative;
    width: 100%;
}

/* Company Name - Large Bold Display */
.form-field:first-child .field-display {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 1.8vw;
    color: #000000;
    line-height: 1.2;
    display: inline-block;
}

.form-field:first-child .edit-btn {
    display: inline-flex;
    margin-left: 0.8vw;
    vertical-align: middle;
}

/* Website - Smaller, lighter */
.form-field:nth-child(2) .field-display {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.0vw;
    color: #666666;
    line-height: 1.2;
    display: inline-block;
}

.form-field:nth-child(2) .edit-btn {
    display: inline-flex;
    margin-left: 0.8vw;
    vertical-align: middle;
}

/* Description - Paragraph text with inline edit button */
.form-field[data-field="description"] .field-display {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.0vw;
    color: #666666;
    line-height: 1.5;
    display: block;
    margin-bottom: 0.5vw;
    width: 38vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-field[data-field="description"] .edit-btn {
    display: flex;
    position: absolute;
    top: 50%; 
    left: 38.8vw;
    transform: translateY(-50%);
}

.edit-btn {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 0.2vw;
    align-items: center;
    justify-content: center;
    border-radius: 0.2vw;
    transition: all 0.2s ease;
    width: 1.2vw;
    height: 1.2vw;
}

.edit-btn svg {
    width: 1vw;
    height: 1vw;
}

.edit-btn:hover {
    color: #666666;
}

.field-display.placeholder {
    color: #999999;
    font-style: italic;
}

/* ===========================================
   FIELD OVERLAY SYSTEM
   =========================================== */

.field-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.field-overlay.active {
    pointer-events: all;
}

.field-border {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    pointer-events: none;
    position: relative;
}

.field-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #ba003b;
    border-radius: 8px;
    clip-path: inset(0 100% 0 0);
    animation: drawBorderSweep 0.3s ease-out forwards;
}

@keyframes drawBorderSweep {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

.field-label {
    position: absolute;
    font-family: 'davis-sans', sans-serif;
    font-weight: 600;
    font-size: 0.9vw;
    color: #ba003b;
    background: #ffffff;
    padding: 0 0.4vw;
    white-space: nowrap;
}

.field-input-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 38vw;
    max-width: 38vw;
}

.field-input, .field-select, .field-textarea {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'davis-sans', sans-serif;
    color: #000000;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    resize: none;
}

/* WYSIWYG Input Styling - Step 1 */
.field-input.company-name {
    font-weight: 700;
    font-size: 1.8vw;
    line-height: 1.2;
}

.field-input.website {
    font-weight: 400;
    font-size: 1.0vw;
    line-height: 1.2;
}

.field-textarea.description {
    font-weight: 400;
    font-size: 1.0vw;
    line-height: 1.5;
    min-height: 6vw;
}

/* WYSIWYG Input Styling - Step 2 */
.field-input.headline {
    font-weight: 700;
    font-size: 1.8vw;
    line-height: 1.2;
    color: #000000;
}

.field-input.deal {
    font-weight: 700;
    font-size: 1.8vw;
    line-height: 1.2;
    color: #000000;
}

.field-textarea.highlight-description {
    font-weight: 400;
    font-size: 1.0vw;
    line-height: 1.5;
    color: #666666;
    min-height: 6vw;
}

/* ===========================================
   CUSTOM DROPDOWN
   =========================================== */

.custom-dropdown {
    position: relative;
    width: 38vw;
    margin-left: -18px;
}

.dropdown-display {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #cccccc;
    border-radius: 8px;
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.2vw;
    line-height: 1.2;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

.dropdown-display:hover {
    border-color: #ba003b;
}

.dropdown-display.open {
    border-color: #ba003b;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-display.placeholder {
    color: #999999;
    font-style: italic;
}

.dropdown-arrow {
    width: 16px;
    height: 12px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.dropdown-display.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #ba003b;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 8px 16px;
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.2vw;
    line-height: 1.2;
    color: #ba003b;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #e3f2fd;
}

.dropdown-option.selected {
    background-color: #e3f2fd;
}

/* Character Counter */
.character-counter {
    position: absolute;
    font-family: 'davis-sans', sans-serif;
    font-size: 0.7vw;
    color: #ba003b;
    font-weight: 400;
    background: #ffffff;
    padding: 0.2vw 0.4vw;
    border-radius: 0.2vw;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 1;
}

.character-counter.warning {
    font-weight: 700;
    color: #ba003b;
}

/* ===========================================
   STEP 2 FIELD STYLING
   =========================================== */

.step2-field {
    margin-bottom: 2.5vw;
}

/* Headline - Large Bold (like company name) */
.step2-field[data-field="highlightHeadline"] .field-display {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 1.8vw;
    color: #000000;
    line-height: 1.2;
    display: inline-block;
}

.step2-field[data-field="highlightHeadline"] .edit-btn {
    display: inline-flex;
    margin-left: 0.8vw;
    vertical-align: middle;
}

/* Description - Paragraph style with 22vw width */
.step2-field[data-field="highlightDescription"] .field-display {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.0vw;
    color: #666666;
    line-height: 1.5;
    display: block;
    margin-bottom: 0.5vw;
    width: 22vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.step2-field[data-field="highlightDescription"] .edit-btn {
    display: flex;
    position: absolute;
    top: 50%; 
    left: 22.8vw;
    transform: translateY(-50%);
}

/* Deal - Large Bold (like headline) */
.step2-field[data-field="highlightDeal"] .field-display {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 1.8vw;
    color: #000000;
    line-height: 1.2;
    display: inline-block;
}

.step2-field[data-field="highlightDeal"] .edit-btn {
    display: inline-flex;
    margin-left: 0.8vw;
    vertical-align: middle;
}

.step2-field .field-display.placeholder {
    color: #999999;
    font-style: italic;
}

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

.get-started-btn, .next-btn {
    background: #ba003b;
    color: #ffffff;
    border: none;
    width: max(12.5vw);
    min-width: 160px;
    height: auto;
    padding: max(1vw, 12px) max(1.5vw, 16px);
    border-radius: max(0.5vw, 6px);
    font-size: max(1.0vw, 14px);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: max(0.5vw, 6px);
    position: absolute;
    right: max(5vw, 50px);
    bottom: max(3.5vw, 35px);
    z-index: 5;
    box-shadow: 6px 0 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.get-started-btn:hover, .next-btn:hover {
    background: #9a0030;
}

.previous-btn {
    background: #ffffff;
    color: #666666;
    border: 2px solid #cccccc;
    width: max(12.5vw);
    min-width: 160px;
    height: auto;
    padding: max(1vw, 12px) max(1.5vw, 16px);
    border-radius: max(0.5vw, 6px);
    font-size: max(1.0vw, 14px);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: max(0.5vw, 6px);
    position: absolute;
    left: 5%;
    bottom: max(3.5vw, 35px);
    z-index: 5;
    transition: all 0.2s ease;
}

.previous-btn:hover {
    background: #f8f8f8;
    border-color: #999999;
    color: #333333;
}

@media (orientation: portrait), (max-width: 768px) {
    .main-content {
        padding-bottom: 100px !important;
    }
    
    .get-started-btn, .next-btn, .previous-btn {
        position: fixed !important;
        bottom: 20px !important;  /* Same height for all */
        font-size: 18px !important;
        padding: 16px 24px !important;
        border-radius: 12px !important;
        z-index: 10 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    .get-started-btn {
        left: 20px !important;
        width: calc(100% - 40px) !important;
        background: #ba003b !important;
        color: #ffffff !important;
    }
    
    .previous-btn {
        left: 20px !important;
        width: 35% !important;
        background: #f8f9fa !important;
        color: #666666 !important;
        border: 2px solid #dee2e6 !important;
    }
    
    .next-btn {
     right: 20px !important;
     width: 60% !important;
     background: #ba003b !important;
     color: #ffffff !important;
     border: none !important;
    }
}
/* ===========================================
   LOADING & STATE MANAGEMENT
   =========================================== */

.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.loading-title {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #000000;
    margin-bottom: 20px;
}

.wizard-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    width: 100%;
    height: 100%;
}

.wizard-content.loaded {
    opacity: 1;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
    display: none;
    font-size: 16px;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 20px;
    display: none;
}

.success h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Mobile Progress Bar */
.mobile-progress {
    display: none;
    height: 6px;
    background: #e6e6e6;
    position: relative;
    margin-bottom: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.mobile-progress-fill {
    height: 100%;
    background: #ba003b;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* ===========================================
   VALIDATION & ERROR STYLES
   =========================================== */

.field-border.error-state::before {
    border-color: #dc3545 !important;
}

.dropdown-display.error-state {
    border-color: #dc3545 !important;
}

@keyframes errorPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.error-message {
    position: absolute;
    bottom: -25px;
    left: 0;
    font-family: 'davis-sans', sans-serif;
    font-size: 0.8vw;
    color: #dc3545;
    font-weight: 500;
    background: #ffffff;
    padding: 0.2vw 0.5vw;
    border-radius: 0.2vw;
    border: 1px solid #dc3545;
    white-space: nowrap;
    z-index: 15;
    display: none;
}

/* ===========================================
   ADDRESS FORM STYLING
   =========================================== */

.address-form-container {
    position: absolute;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 11;
    pointer-events: all;
}

.address-field-row {
    margin-bottom: 12px;
}

.address-field-label {
    display: block;
    font-family: 'davis-sans', sans-serif;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.address-field-input,
.address-field-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'davis-sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.address-field-input:focus,
.address-field-select:focus {
    outline: none;
    border-color: #ba003b;
    box-shadow: 0 0 0 3px rgba(186, 0, 59, 0.1);
}

/* Address location row styling */
.address-location-row {
    display: flex;
    gap: 12px;
}

.address-city-container {
    flex: 2;
    min-width: 120px;
}

.address-province-container {
    flex: 2;
    min-width: 180px; /* Ensure "Newfoundland and Labrador" fits */
}

.address-postal-container {
    flex: 1;
    min-width: 80px; /* Just enough for 7 characters */
    max-width: 100px;
}

.address-button-row {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.address-save-btn,
.address-cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'davis-sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.address-save-btn {
    background-color: #ba003b;
    color: white;
}

.address-save-btn:hover {
    background-color: #9e0032;
}

.address-cancel-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.address-cancel-btn:hover {
    background-color: #e9e9e9;
}

/* Address block display styling */
.address-block {
    font-family: 'davis-sans', sans-serif;
    font-size: 1.0vw;
    color: #333;
    line-height: 1.4;
}

.address-line-1,
.address-line-2 {
    margin-bottom: 0.2vw;
}

.address-line-2 {
    color: #666;
}

/* Address field edit button positioning */
.form-field[data-field="address"] {
    display: flex;
    align-items: flex-start;
    gap: 0.8vw;
}

.form-field[data-field="address"] .edit-btn {
    display: inline-flex;
    margin-top: 0.2vw;
    flex-shrink: 0;
}

/* ===========================================
   STEP 2: CONFERENCE HIGHLIGHT
   =========================================== */

.highlight-container {
    display: flex;
    gap: 40px;
    max-width: none;
    width: 100%;
}

.image-section {
    width: 280px;
    flex-shrink: 0;
}

.image-upload-container {
    position: relative;
    width: 100%;
    height: 500px;
    border: 2px dashed #cccccc;
    border-radius: 12px;
    background: #cccccc; /* Changed from #f8f8f8 */
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-upload-container:hover {
    border-color: #ba003b;
    background: #f0f8ff;
}

.image-upload-container.dragover {
    border-color: #ba003b;
    background: #e3f2fd;
    transform: scale(1.02);
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.image-placeholder svg {
    width: 120px;
    height: 90px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.image-placeholder-text {
    font-family: 'davis-sans', sans-serif;
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.image-placeholder-hint {
    font-family: 'davis-sans', sans-serif;
    font-size: 12px;
    color: #999999;
}

.uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'davis-sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.image-upload-container:hover .image-overlay {
    display: flex;
}

.content-section-right {
    flex: 1;
    min-width: 0;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    display: none;
}

.upload-progress-fill {
    height: 100%;
    background: #ba003b;
    width: 0%;
    transition: width 0.3s ease;
}

/* ===========================================
   CROP MODAL
   =========================================== */

.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.crop-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.crop-header {
    margin-bottom: 20px;
    text-align: center;
}

.crop-title {
    font-family: 'davis-sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.crop-subtitle {
    font-family: 'davis-sans', sans-serif;
    font-size: 14px;
    color: #666666;
}

.crop-image-container {
    width: 500px;
    height: 400px;
    margin-bottom: 20px;
}

.crop-image {
    max-width: 100%;
    max-height: 100%;
}

.crop-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.crop-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'davis-sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crop-btn.primary {
    background: #ba003b;
    color: white;
    border: none;
}

.crop-btn.primary:hover {
    background: #9a0030;
}

.crop-btn.secondary {
    background: white;
    color: #666666;
    border: 2px solid #cccccc;
}

.crop-btn.secondary:hover {
    border-color: #999999;
    color: #333333;
}

.image-error-message {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    display: none;
}

.hidden-file-input {
    display: none;
}

/* ===========================================
   STEP 3: CONFERENCE TEAM
   =========================================== */

.team-container {
    max-width: 44vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.team-list-wrapper {
    position: relative;
    height: 35vh;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.attending-header {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 0.8vw;
    color: #666666;
    font-style: italic;
    padding: 0.8vw 1vw 0.4vw 0.7vw;
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.team-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.4vw 1vw 1vw 1vw;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2vw;
    padding: 0.8vw 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background-color: #f8f8f8;
}

.contact-item-clickable {
    position: absolute;
    top: 0;
    left: 0;
    right: 3vw;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
}

.contact-checkbox {
    width: 6vw;
    height: 1.5vw;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0.1vw;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.checkbox-circle {
    width: 1.2vw;
    height: 1.2vw;
    border: 2px solid #cccccc;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-circle.checked {
    background: #28a745;
    border-color: #28a745;
}

.checkbox-circle.checked::after {
    content: '✓';
    color: #ffffff;
    font-size: 0.8vw;
    font-weight: 700;
}

.contact-info {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-rows: auto auto;
    column-gap: 1.5vw;
    row-gap: 0.2vw;
}

.contact-name {
    font-family: 'davis-sans', sans-serif;
    font-weight: 600;
    font-size: 1.1vw;
    color: #000000;
    line-height: 1.2;
    grid-column: 1;
    grid-row: 1;
}

.contact-title {
    font-family: 'davis-sans', sans-serif;
    font-weight: 500;
    font-size: 0.9vw;
    color: #666666;
    font-style: italic;
    line-height: 1.2;
    grid-column: 2;
    grid-row: 1;
}

.contact-email {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 0.8vw;
    color: #888888;
    line-height: 1.2;
    grid-column: 1;
    grid-row: 2;
}

.contact-phone {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 0.8vw;
    color: #888888;
    line-height: 1.2;
    grid-column: 2;
    grid-row: 2;
}

.contact-edit {
    width: 1.2vw;
    height: 1.2vw;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-left: 0.8vw;
    align-self: center;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.contact-edit:hover {
    color: #666666;
}

.contact-edit svg {
    width: 1vw;
    height: 1vw;
}

.custom-scrollbar {
    position: absolute;
    right: 6px;
    top: 1vw;
    bottom: 1vw;
    width: 8px;
    display: block;
}

.scrollbar-track {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
}

.scrollbar-thumb {
    width: 100%;
    background: #cccccc;
    border-radius: 4px;
    position: absolute;
    top: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.scrollbar-thumb:hover {
    background: #999999;
}

/* Contact Headers */
.contact-headers {
    display: flex;
    align-items: center;
    gap: 1.2vw;
    padding: 0.5vw 0;
    margin-bottom: 0.5vw;
    font-family: 'davis-sans', sans-serif;
    font-size: 0.9vw;
    font-weight: 600;
    color: #666;
}

.header-primary {
    width: 1.5vw;
    flex-shrink: 0;
    text-align: center;
}

.header-spacer {
    flex: 1;
    min-width: 0;
}

.header-attending {
    width: 6vw;
    flex-shrink: 0;
    text-align: center;
}

.header-edit {
    width: 3vw;
    flex-shrink: 0;
}

/* Primary Contact Selector */
.primary-contact-selector {
    width: 1.5vw;
    height: 1.5vw;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1vw;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.primary-contact-selector:hover {
    background-color: #f0f0f0;
}

.primary-crown {
    font-size: 1.2vw;
    line-height: 1;
}

.primary-placeholder {
    width: 1.2vw;
    height: 1.2vw;
    border: 2px solid #cccccc;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
}

.primary-contact-selector:hover .primary-placeholder {
    border-color: #ba003b;
}

/* Dietary Restrictions */
.contact-dietary {
    font-family: 'davis-sans', sans-serif;
    font-size: 0.8vw;
    color: #999;
    font-style: italic;
    margin-top: 0.2vw;
}

.team-list-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 20px;
    height: 3vw;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 70%, #ffffff 100%);
    pointer-events: none;
    z-index: 2;
}

.team-list-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 20px;
    height: 1px;
    background: #cccccc;
    pointer-events: none;
    z-index: 3;
}

.add-contact-section {
    border: 2px dashed #cccccc;
    border-radius: 8px;
    padding: 1vw;
    background: #f8f8f8;
    transition: all 0.2s ease;
    cursor: pointer;
}

.add-contact-section:hover {
    border-color: #ba003b;
    background: #f0f8ff;
}

.add-contact-item {
    display: flex;
    align-items: center;
    gap: 1.2vw;
}

.add-contact-item .contact-name {
    font-weight: 600;
    color: #ba003b;
}

.add-contact-item .contact-details {
    color: #666666;
    font-size: 0.9vw;
}

/* ===========================================
   STEP 4: PRIMARY CONTACT
   =========================================== */

.primary-contact-container {
    max-width: 44vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

.primary-contact-instruction {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.0vw;
    color: #666666;
    font-style: italic;
    margin-bottom: 0.5vw;
}

.primary-contact-list-wrapper {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    max-height: 60vh;
}

.primary-contact-list {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1vw;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.primary-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2vw;
    padding: 1vw 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.primary-contact-item:last-child {
    border-bottom: none;
}

.primary-contact-item:hover {
    background-color: #f8f8f8;
}

.primary-contact-item.selected {
    background-color: #e3f2fd;
}

.primary-contact-radio {
    width: 1.5vw;
    height: 1.5vw;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0.1vw;
}

.radio-circle {
    width: 1.2vw;
    height: 1.2vw;
    border: 2px solid #cccccc;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.radio-circle.selected {
    background: #28a745;
    border-color: #28a745;
}

.radio-circle.selected::after {
    content: '✓';
    color: #ffffff;
    font-size: 0.8vw;
    font-weight: 700;
    position: absolute;
}

.primary-contact-info {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-rows: auto auto;
    column-gap: 1.5vw;
    row-gap: 0.2vw;
}

.primary-contact-name {
    font-family: 'davis-sans', sans-serif;
    font-weight: 600;
    font-size: 1.1vw;
    color: #000000;
    line-height: 1.2;
    grid-column: 1;
    grid-row: 1;
}

.primary-contact-title {
    font-family: 'davis-sans', sans-serif;
    font-weight: 500;
    font-size: 0.9vw;
    color: #666666;
    font-style: italic;
    line-height: 1.2;
    grid-column: 2;
    grid-row: 1;
}

.primary-contact-email {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 0.8vw;
    color: #888888;
    line-height: 1.2;
    grid-column: 1;
    grid-row: 2;
}

.primary-contact-phone {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 0.8vw;
    color: #888888;
    line-height: 1.2;
    grid-column: 2;
    grid-row: 2;
}

/* ===========================================
   CONTACT MODAL
   =========================================== */

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2300;
}

.contact-modal.active {
    display: flex;
}

.modal-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2vw;
    max-width: 28vw;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    margin-bottom: 1.5vw;
}

.modal-title {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 1.5vw;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2vw;
}

.modal-field {
    position: relative;
}

.modal-field-border {
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
}

.modal-field-border.focused::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #ba003b;
    border-radius: 8px;
    clip-path: inset(0 100% 0 0);
    animation: drawBorderSweep 0.3s ease-out forwards;
}

.modal-field-border.unfocused {
    border: 2px solid #cccccc;
}

.modal-field-label {
    position: absolute;
    top: -9px;
    left: 12px;
    font-family: 'davis-sans', sans-serif;
    font-weight: 600;
    font-size: 0.9vw;
    background: #ffffff;
    padding: 0 0.4vw;
    white-space: nowrap;
    z-index: 1;
}

.modal-field-label.focused {
    color: #ba003b;
}

.modal-field-label.unfocused {
    color: #666666;
}

.modal-field-input {
    width: 100%;
    padding: 0.8vw 1vw;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1vw;
    color: #000000;
    line-height: 1.2;
}

.modal-field-input::placeholder {
    color: #999999;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5vw;
}

.modal-actions-right {
    display: flex;
    gap: 0.8vw;
}

.modal-btn {
    padding: 0.8vw 1.5vw;
    border-radius: 6px;
    font-family: 'davis-sans', sans-serif;
    font-size: 0.9vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn.primary {
    background: #ba003b;
    color: #ffffff;
}

.modal-btn.primary:hover {
    background: #9a0030;
}

.modal-btn.secondary {
    background: #ffffff;
    color: #666666;
    border: 2px solid #cccccc;
}

.modal-btn.secondary:hover {
    border-color: #999999;
    color: #333333;
}

.modal-btn.delete {
    background: #ffffff;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.modal-btn.delete:hover {
    background: #dc3545;
    color: #ffffff;
}

.modal-open .add-contact-section {
    display: none;
}

.modal-open .team-container {
    filter: blur(2px);
    pointer-events: none;
}

/* ===========================================
   SYNC PROGRESS ANIMATIONS
   =========================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================================
   INVOICE PREVIEW
   =========================================== */

.invoice-preview {
    font-family: 'davis-sans', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5vw;
    background: #ffffff;
    margin-top: 1vw;
    margin-left: -18px;
    max-height: 18vw;
    width: 38vw;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.invoice-preview:hover {
    border-color: #ba003b;
    box-shadow: 0 4px 12px rgba(186, 0, 59, 0.1);
}

.invoice-preview::before {
    content: "PREVIEW ONLY";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 4vw;
    font-weight: bold;
    color: rgba(220, 53, 69, 0.08);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.invoice-preview .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(186, 0, 59, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2vw;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    border-radius: 8px;
}

.invoice-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5vw 0;
    border-bottom: 1px solid #f0f0f0;
}

.invoice-line-item:last-of-type {
    border-bottom: none;
}

.item-description {
    font-size: 1vw;
    color: #333;
    flex: 1;
}

.item-amount {
    font-size: 1vw;
    color: #333;
    font-weight: 600;
    text-align: right;
    min-width: 6vw;
}

.invoice-line-subitem {
    font-size: 0.9vw;
    color: #666;
    font-style: italic;
    margin-left: 1vw;
    margin-bottom: 0.5vw;
}

.invoice-subtotal {
    margin-top: 1vw;
    padding: 0.5vw 0;
    text-align: right;
    font-size: 1vw;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

.invoice-tax {
    padding: 0.3vw 0;
    text-align: right;
    font-size: 1vw;
    color: #333;
}

.invoice-total {
    margin-top: 0.5vw;
    padding-top: 1vw;
    border-top: 2px solid #ba003b;
    text-align: right;
    font-size: 1.2vw;
    color: #ba003b;
}

.preview-placeholder {
    font-size: 1vw;
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2vw 0;
}

/* ===========================================
   INVOICE MODAL
   =========================================== */

.invoice-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

.invoice-modal.active {
    display: flex;
}

.invoice-modal-container {
    background: white;
    width: 90vw;
    max-width: 800px;
    max-height: 90vh;
    height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.invoice-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.invoice-document {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 2rem;
    background: white;
    font-family: 'davis-sans', sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.invoice-left {
    display: flex;
    gap: 1rem;
}

.invoice-preview .csc-logo,
.invoice-document .csc-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.csc-info div {
    line-height: 1.3;
    font-size: 11px;
    color: #333;
}

.invoice-right {
    text-align: right;
    position: relative;
}

.invoice-right h1 {
    font-size: 36px;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: normal;
}

.preview-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 120px;
    font-weight: bold;
    color: rgba(220, 53, 69, 0.08);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.invoice-details div {
    margin-bottom: 4px;
    font-size: 11px;
    color: #333;
}

.invoice-addresses {
    display: flex;
    margin-bottom: 1rem;
}

.bill-to h3 {
    font-size: 13px;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #333;
}

.bill-to div {
    font-size: 11px;
    line-height: 1.3;
    color: #333;
}

.amount-due {
    font-size: 18px;
    color: #ba003b;
    margin: 1rem 0;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.invoice-table th {
    background: #f8f9fa;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.invoice-table td {
    padding: 8px 12px;
    font-size: 11px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.desc-col { width: 50%; }
.qty-col { width: 15%; text-align: center; }
.price-col { width: 20%; text-align: right; }
.amount-col { width: 15%; text-align: right; }

.invoice-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 1rem 0 2rem 0;
    width: 300px;
    margin-left: auto;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 4px 0;
    font-size: 12px;
}

.total-row {
    border-top: 1px solid #333;
    margin-top: 8px;
    padding-top: 8px;
}

.amount-due-row {
    background: #f8f9fa;
    padding: 8px 12px;
    margin-top: 4px;
    border: 1px solid #ddd;
}

.invoice-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 10px;
    color: #666;
}

.invoice-modal-actions {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.invoice-btn {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-family: 'davis-sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.invoice-btn.primary {
    background: #ba003b;
    color: white;
}

.invoice-btn.primary:hover {
    background: #9a0030;
}

.invoice-btn.secondary {
    background: white;
    color: #666;
    border: 2px solid #ccc;
}

.invoice-btn.secondary:hover {
    border-color: #ba003b;
    color: #ba003b;
}

/* ===========================================
   STEP 5: PRODUCT CATALOGUE
   =========================================== */

.catalogue-container {
    max-width: 44vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

.catalogue-instruction {
    font-family: 'davis-sans', sans-serif;
    font-weight: 400;
    font-size: 1.0vw;
    color: #666666;
    font-style: italic;
    margin-bottom: 0.5vw;
}

.catalogue-upload-container {
    position: relative;
    width: 100%;
    height: 40vh;
    border: #cccccc;
    border-radius: 12px;
    background: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalogue-upload-container:hover {
    border-color: #ba003b;
    background: #e3f2fd;
}

.catalogue-upload-container.dragover {
    border-color: #ba003b;
    background: #e3f2fd;
    transform: scale(1.02);
}

.catalogue-upload-container.uploaded {
    border: 2px solid #28a745;
    background: #f8fff9;
}

.catalogue-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.pdf-icon {
    width: 120px;
    height: 140px;
    margin-bottom: 16px;
    opacity: 0.6;
    fill: #e8e8e8;
}

.catalogue-upload-container:hover .pdf-icon {
    fill: #ba003b;
    opacity: 0.8;
}

.catalogue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 113, 188, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'davis-sans', sans-serif;
    font-size: 1.2vw;
    font-weight: 600;
    cursor: pointer;
}

.catalogue-upload-container:hover .catalogue-overlay {
    display: flex;
}

.catalogue-upload-container.uploaded:hover .catalogue-overlay {
    display: flex;
}

.catalogue-upload-container.uploaded .catalogue-overlay {
    background: rgba(40, 167, 69, 0.9);
}

.catalogue-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    color: #28a745;
}

.success-icon {
    font-size: 4vw;
    font-weight: 700;
    margin-bottom: 1vw;
    color: #28a745;
}

.success-text {
    font-family: 'davis-sans', sans-serif;
    font-size: 1.2vw;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.5vw;
}

.success-filename {
    font-family: 'davis-sans', sans-serif;
    font-size: 0.9vw;
    font-weight: 400;
    color: #666666;
    word-break: break-all;
    max-width: 80%;
}

.catalogue-error-message {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9vw;
    text-align: center;
    display: none;
    font-family: 'davis-sans', sans-serif;
}

/* ===========================================
   UPLOAD ANIMATION
   =========================================== */

.uploading-state {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.uploading-state.active {
    display: flex;
}

.uploading-title {
    font-family: 'davis-sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #000000;
}

.dots {
    display: inline-block;
}

.dot {
    display: inline-block;
    animation: bounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 60%, 100% { 
        transform: translateY(0); 
    }
    30% { 
        transform: translateY(-15px); 
    }
}

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

@media (orientation: portrait), (max-width: 768px) {
    body {
        padding: 0;
        font-size: 16px;
    }
    
    body::before {
        display: none;
    }
    
    .wizard-container {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        min-height: 100vh;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border: none;
        flex-direction: column;
        box-shadow: none;
        background: #ffffff;
        display: flex;
    }

    .wizard-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
        box-shadow: none;
        border-bottom: 2px solid #e6e6e6;
        flex-shrink: 0;
        height: auto;
        order: 1;
        background: #f8f9fa;
    }

    .main-content {
        padding: 24px 20px 120px 20px;
        flex: 1;
        order: 2;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 120px);
    }

    .logo-and-title {
        height: auto;
        margin-bottom: 12px;
        gap: 12px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .organization-logo {
        max-width: 35px;
        max-height: 35px;
        width: auto;
        height: auto;
    }

    .logo-text {
        height: auto;
    }

    .conference-title {
        font-size: 18px;
        margin-bottom: 4px;
        font-weight: 600;
    }


    .step-navigation {
        display: none;
    }

    .mobile-progress {
        display: block;
        margin: 0 -20px 24px -20px;
    }

    /* Welcome Section Mobile */
    .welcome-section {
        width: 100%;
        max-width: none;
        margin-top: 0;
    }

    .welcome-title {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .welcome-text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Step Headers Mobile */
    .step-header {
        margin-bottom: 24px;
        margin-top: 0;
    }

    .step-title-main {
        font-size: 28px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .step-subtitle {
        font-size: 16px;
        line-height: 1.4;
    }

    /* Form Fields Mobile */
    .form-field {
        margin-bottom: 24px;
    }

    .form-field:first-child .field-display {
        font-size: 22px;
        line-height: 1.3;
    }

    .form-field:nth-child(2) .field-display {
        font-size: 16px;
        line-height: 1.4;
    }

    .form-field[data-field="description"] .field-display {
        font-size: 16px;
        line-height: 1.5;
        width: 100%;
        margin-bottom: 8px;
    }

    .form-field[data-field="description"] .edit-btn {
        position: static;
        transform: none;
        margin-top: 8px;
        align-self: flex-start;
    }

    .form-field[data-field="address"] {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-field[data-field="address"] .edit-btn {
        margin-top: 8px;
        margin-left: 0;
    }

    .edit-btn {
        width: 32px;
        height: 32px;
        padding: 8px;
        margin-left: 12px;
    }

    .edit-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Custom Dropdown Mobile */
    .custom-dropdown {
        width: 100%;
        margin-left: 0;
    }

    .dropdown-display {
        padding: 16px 48px 16px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .dropdown-arrow {
        width: 20px;
        height: 16px;
    }

    .dropdown-option {
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Field Overlay Mobile */
    .field-input-container {
        width: 100%;
        max-width: 100%;
    }

    .field-label {
        font-size: 14px;
        padding: 0 8px;
    }

    .field-input.company-name {
        font-size: 22px;
        line-height: 1.3;
    }

    .field-input.website {
        font-size: 16px;
        line-height: 1.4;
    }

    .field-textarea.description {
        font-size: 16px;
        line-height: 1.5;
        min-height: 120px;
    }

    .character-counter {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* Step 2 Mobile */
    .highlight-container {
        flex-direction: column;
        gap: 24px;
    }

    .image-section {
        width: 100%;
        order: 2;
    }

    .image-upload-container {
        height: 240px;
        margin-bottom: 80px;
    }

    .content-section-right {
        order: 1;
    }

    .step2-field {
        margin-bottom: 24px;
    }

    .step2-field[data-field="highlightHeadline"] .field-display {
        font-size: 22px;
        line-height: 1.3;
    }

    .step2-field[data-field="highlightDescription"] .field-display {
        font-size: 16px;
        line-height: 1.5;
        width: 100%;
        margin-bottom: 8px;
    }

    .step2-field[data-field="highlightDescription"] .edit-btn {
        position: static;
        transform: none;
        margin-top: 8px;
        left: auto;
    }

    .step2-field[data-field="highlightDeal"] .field-display {
        font-size: 22px;
        line-height: 1.3;
    }

    .field-input.headline {
        font-size: 22px;
        line-height: 1.3;
    }

    .field-input.deal {
        font-size: 22px;
        line-height: 1.3;
    }

    .field-textarea.highlight-description {
        font-size: 16px;
        line-height: 1.5;
        min-height: 120px;
    }

    /* Image Upload Mobile */
    .image-placeholder svg {
        width: 80px;
        height: 60px;
        margin-bottom: 12px;
    }

    .image-placeholder-text {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .image-placeholder-hint {
        font-size: 14px;
    }

    /* Step 3: Conference Team Mobile */
    .team-container {
        max-width: 100%;
        gap: 20px;
    }

    .team-list-wrapper {
        height: 50vh;
    }

    .attending-header {
        font-size: 14px;
        padding: 12px 16px 8px 12px;
    }

    .team-list {
        padding: 8px 16px 16px 16px;
    }

    .contact-item {
        gap: 16px;
        padding: 12px 0;
    }

    .contact-checkbox {
        width: 24px;
        height: 24px;
        margin-top: 2px;
    }

    .checkbox-circle {
        width: 20px;
        height: 20px;
    }

    .checkbox-circle.checked::after {
        font-size: 12px;
    }

    .contact-info {
        gap: 12px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .contact-name {
        font-size: 16px;
        font-weight: 600;
        grid-column: 1;
        grid-row: 1;
    }

    .contact-title {
        font-size: 14px;
        grid-column: 1;
        grid-row: 2;
    }

    .contact-email {
        font-size: 14px;
        grid-column: 1;
        grid-row: 3;
    }

    .contact-phone {
        font-size: 14px;
        grid-column: 1;
        grid-row: 4;
    }

    .contact-edit {
        width: 32px;
        height: 32px;
        margin-left: 12px;
    }

    .contact-edit svg {
        width: 16px;
    }

    /* Contact Headers Mobile */
    .contact-headers {
        font-size: 14px;
        gap: 12px;
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .header-primary {
        width: 24px;
    }

    .header-attending {
        width: 100px;
    }

    .header-edit {
        width: 44px;
    }

    /* Primary Contact Selector Mobile */
    .primary-contact-selector {
        width: 24px;
        height: 24px;
    }

    .primary-crown {
        font-size: 16px;
    }

    .primary-placeholder {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }

    /* Dietary Restrictions Mobile */
    .contact-dietary {
        font-size: 12px;
        grid-column: 1;
        grid-row: 5;
        margin-top: 4px;
        height: 16px;
    }

    .add-contact-section {
        padding: 16px;
    }

    .add-contact-item {
        gap: 16px;
    }

    .add-contact-item .contact-details {
        font-size: 14px;
    }

    /* Step 4: Primary Contact Mobile */
    .primary-contact-container {
        max-width: 100%;
        gap: 20px;
    }

    .primary-contact-instruction {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .primary-contact-list-wrapper {
        max-height: 60vh;
    }

    .primary-contact-list {
        padding: 16px;
        max-height: 60vh;
    }

    .primary-contact-item {
        gap: 16px;
        padding: 12px 0;
    }

    .primary-contact-radio {
        width: 24px;
        height: 24px;
        margin-top: 2px;
    }

    .radio-circle {
        width: 20px;
        height: 20px;
    }

    .radio-circle.selected::after {
        font-size: 12px;
    }

    .primary-contact-info {
        gap: 12px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .primary-contact-name {
        font-size: 16px;
        grid-column: 1;
        grid-row: 1;
    }

    .primary-contact-title {
        font-size: 14px;
        grid-column: 1;
        grid-row: 2;
    }

    .primary-contact-email {
        font-size: 14px;
        grid-column: 1;
        grid-row: 3;
    }

    .primary-contact-phone {
        font-size: 14px;
        grid-column: 1;
        grid-row: 4;
    }

    /* Step 5: Catalogue Mobile */
    .catalogue-container {
        max-width: 100%;
        gap: 20px;
    }

    .catalogue-instruction {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .catalogue-upload-container {
        height: 50vh;
        min-height: 300px;
       margin-bottom: 80px;
    }

    .pdf-icon {
        width: 80px;
        height: 100px;
        margin-bottom: 12px;
    }

    .catalogue-overlay {
        font-size: 18px;
    }

    .success-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .success-text {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .success-filename {
        font-size: 14px;
    }

    .catalogue-error-message {
        font-size: 14px;
        padding: 12px 16px;
        bottom: -50px;
    }

    /* Contact Modal Mobile */
    .modal-container {
        max-width: 90vw;
        padding: 24px;
        margin: 20px;
        max-height: 80vh;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .modal-form {
        gap: 20px;
    }

    .modal-field-label {
        font-size: 14px;
        padding: 0 8px;
    }

    .modal-field-input {
        padding: 12px 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .modal-actions {
        gap: 12px;
        margin-top: 24px;
        flex-direction: column-reverse;
    }

    .modal-btn {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        min-height: 48px;
    }

    /* Crop Modal Mobile */
    .crop-container {
        max-width: 95vw;
        max-height: 95vh;
        padding: 20px;
    }

    .crop-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .crop-subtitle {
        font-size: 14px;
    }

    .crop-image-container {
        width: 100%;
        height: 300px;
        margin-bottom: 16px;
    }

    .crop-actions {
        gap: 12px;
        flex-direction: column-reverse;
    }

    .crop-btn {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }

    /* Address Form Mobile */
    .address-form-container {
        padding: 20px;
        border-radius: 12px;
        min-width: 280px;
        max-width: 90vw;
    }

    .address-field-label {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .address-field-input,
    .address-field-select {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
    }

    .address-button-row {
        margin-top: 20px;
        flex-direction: column-reverse;
        gap: 12px;
    }

    .address-save-btn,
    .address-cancel-btn {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        min-height: 48px;
        border-radius: 8px;
    }

    .address-block {
        font-size: 16px;
        line-height: 1.5;
    }

    .address-line-1,
    .address-line-2 {
        margin-bottom: 4px;
    }

    /* Error Messages Mobile */
    .error-message {
        font-size: 14px;
        bottom: -30px;
        padding: 8px 12px;
    }

    @keyframes errorPulse {
        0% { 
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
        }
        50% { 
            transform: scale(1.05);
            box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
        }
        100% { 
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
        }
    }

    /* Upload States Mobile */
    .uploading-title {
        font-size: 28px;
        text-align: center;
        padding: 0 20px;
    }

    .loading-title {
        font-size: 32px;
        text-align: center;
        padding: 0 20px;
    }

    /* Image Error Mobile */
    .image-error-message {
        bottom: -40px;
        font-size: 14px;
        padding: 12px 16px;
        margin: 0 10px;
        border-radius: 8px;
    }

    /* Success/Error Content Mobile */
    .success, .error {
        margin: 20px;
        padding: 24px;
        border-radius: 12px;
    }

    .success h3 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .success p {
        font-size: 16px;
        line-height: 1.5;
    }

    .error {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Larger Mobile/Small Tablet Adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .welcome-title {
        font-size: 36px;
    }

    .step-title-main {
        font-size: 32px;
    }

    .form-field:first-child .field-display,
    .step2-field[data-field="highlightHeadline"] .field-display,
    .step2-field[data-field="highlightDeal"] .field-display {
        font-size: 24px;
    }

    .field-input.company-name,
    .field-input.headline,
    .field-input.deal {
        font-size: 24px;
    }

    .image-upload-container {
        height: 280px;
    }

    .catalogue-upload-container {
        height: 60vh;
        min-height: 350px;
    }
}
/* Large Mobile Adjustments */
@media (max-width: 768px) {
    /* Create a container for side-by-side buttons */
    .main-content {
        padding-bottom: 100px !important;
    }
    
    /* Position buttons side by side */
    .previous-btn, .next-btn {
        position: fixed !important;
        bottom: 20px !important;
        height: 50px !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        z-index: 1000 !important;
    }
    
    /* Previous button - 40% width, left side */
    .previous-btn {
        left: 20px !important;
        width: calc(40% - 30px) !important; /* 40% minus gap */
        background: #f8f9fa !important;
        color: #666666 !important;
        border: 2px solid #dee2e6 !important;
    }
    
    /* Next button - 60% width, right side */
    .next-btn, .get-started-btn {
        right: 20px !important;
        width: calc(60% - 30px) !important; /* 60% minus gap */
        background: #ba003b !important;
        color: #ffffff !important;
        border: none !important;
    }
    
    /* When get-started is showing, make it full width */
    .get-started-btn {
        width: calc(100% - 40px) !important;
        left: 20px !important;
    }
}
/* Small Mobile Adjustments */
@media (max-width: 400px) {
    .main-content {
        padding: 20px 16px 100px 16px;
    }

    .sidebar {
        padding: 16px;
    }

    .mobile-progress {
        margin: 0 -16px 20px -16px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .step-title-main {
        font-size: 24px;
    }

    .form-field:first-child .field-display,
    .step2-field[data-field="highlightHeadline"] .field-display,
    .step2-field[data-field="highlightDeal"] .field-display {
        font-size: 20px;
    }

    .field-input.company-name,
    .field-input.headline,
    .field-input.deal {
        font-size: 20px;
    }

    .get-started-btn, .next-btn, .previous-btn {
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
    }

    .previous-btn {
        bottom: 76px;
    }
}
.welcome-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.welcome-video-section {
    flex: 1;
    max-width: 500px;
}

.video-container {
    position: relative;
    top: 2vh;
    width: 28vh;
    height: 60vh;
    border-radius: 12px;
    overflow: hidden !important;
    left: 5vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 60vh !important;
    border: none;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 30vh;
    height: 60vh;
    object-fit: cover;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
    
    .welcome-section {
        width: 100%;
    }
    
   .video-container {
        height: 40vh; /* Shorter on mobile so it fits better */
    }
}

/* Payment form styling */
.payment-input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: max(1.0vw, 14px);
    font-family: 'davis-sans', sans-serif;
    background: #ffffff;
    font-weight: 400;
}

.payment-info-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #856404;
    font-size: max(0.8vw, 12px);
    font-family: 'davis-sans', sans-serif;
}

.payment-summary-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #0066cc;
}

.payment-summary-title {
    margin: 0 0 12px 0;
    color: #0066cc;
    font-size: max(1.0vw, 14px);
    font-family: 'davis-sans', sans-serif;
    font-weight: 500;
}

.payment-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: max(0.9vw, 14px);
    font-family: 'davis-sans', sans-serif;
}

.payment-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: max(1.0vw, 16px);
    color: #0066cc;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
    font-family: 'davis-sans', sans-serif;
}

.payment-security-box {
    margin-top: 15px;
    padding: 12px;
    background: #e8f5e8;
    border-radius: 6px;
    border: 1px solid #4caf50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-security-icon {
    color: #4caf50;
    font-size: 16px;
}

.payment-security-text {
    color: #2e7d32;
    font-size: max(0.8vw, 12px);
    font-family: 'davis-sans', sans-serif;
}
