:root {
    /* Background Colors */
    --color-bg-primary: #F5FAFF;
    --color-file-bg: #E8F4FF;
    --color-file-bg-hover: #D6EBFF;
    
    /* Primary Colors */
    --color-primary: #FF8D58;
    --color-primary-active: #FF7C00;
    --color-primary-tab: #ff7a18;
    --color-primary-hover: #ff5722;
    --color-primary-icon: #ff6b35;
    
    /* Text Colors */
    --color-text-primary: #000;
    --color-text-secondary: #333;
    --color-text-tertiary: #666;
    --color-text-muted: #AAA9A9;
    
    /* Border Colors */
    --color-border: #A2BCD7;
    
    /* Status Colors */
    --color-success: #15CD30;
    --color-error: #FF0000;
    
    /* White Colors */
    --color-white: #ffffff;
    --color-white-light: #fff5f0;
    --color-white-lighter: #fff0e8;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--color-bg-primary);
    min-height: 100vh;
    padding: 42px 0;
}

.container {
    max-width: 1512px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header with Logo */
.header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 193px;
    height: 30px;
    object-fit: contain;
}

/* Error Dialog Test Buttons */
.error-dialog-test-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.test-error-btn,
.test-support-error-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #FF8D58;
    border-radius: 8px;
    background: transparent;
    color: #FF8D58;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.test-error-btn:hover,
.test-support-error-btn:hover {
    background: #FF8D58;
    color: white;
}

.test-error-btn:active,
.test-support-error-btn:active {
    transform: translateY(1px);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    gap: 8px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-step.active .step-circle {
    border: 1px solid transparent!important;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary-active);
    display: none;
}

.progress-step.active .step-dot {
    display: block;
}

.step-circle-svg {
    width: 38px;
    height: 38px;
    display: block;
    position: relative;
    z-index: 0;
}

/* Ensure border is visible above the SVG */
.progress-step.active .step-circle {
    border: 1px solid transparent;
    box-sizing: border-box;
}

.step-label {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 17px;
    color: var(--color-border);
}

.progress-step.active .step-label {
    color: var(--color-primary-active);
}

.progress-step.completed .step-label {
    color: var(--color-primary-active);
}

.progress-step.completed .step-circle {
    border-color: var(--color-primary-active);
    background: var(--color-primary-active);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-step.completed {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.progress-step.completed:hover {
    opacity: 0.8;
}

.step-checkmark {
    width: 15px;
    height: 11px;
    display: block;
}

.progress-line {
    width: 100%;
    max-width: 411px;
    height: 1px;
    background: var(--color-border);
    margin: 0;
    align-self: flex-start;
    margin-top: calc((18px * 1.4) + 17px + 28px - 1px);
}

.progress-line.active {
    background: var(--color-primary-active);
}

/* Card Wrapper - contains step number and card for border connection */
.card-wrapper {
    max-width: 1186px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: visible;
    min-height: 0; /* Allow content to define height */
    border-radius: 16px;
}

.card-wrapper::before {
    content: '';
    position: absolute;
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: calc(100% + 43px);
    background-image: url('/svgs/notch3.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: auto;
    pointer-events: none;
    z-index: 0;
}

/* Step 2 uses simple border */
.card-wrapper.step-2 {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
}


/* Step Content Container */
.step-content {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1; /* Ensure content is above the SVG border */
}

/* Step Tab Label - positioned in the tab area */
.step-tab-label,
.step-tab {
    position: absolute;
    top: -35px; /* Positioned inside the notch */
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary-tab);
    font-size: 18px;
    font-weight: 600;
    z-index: 10;
    pointer-events: none; /* Don't interfere with interactions */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px; /* Match the notch height */
}

/* Main Card - positioned inside the SVG white area */
.card {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    padding: 45px 50px 62px 50px;
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
}

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

.card-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.card-subtitle {
    margin-top: 20px;
    font-size: 16px;
    color: var(--color-text-primary);
    font-weight: 400;
}

/* Upload Area */
.upload-area {
    border: 1px dashed var(--color-primary);
    border-radius: 16px;
    padding: 68px 20px 45px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 696px;
    width: 100%;
    margin: 40px auto 0 auto;
    box-sizing: border-box;
}

.upload-area:hover {
    background: var(--color-white-light);
    border-color: var(--color-primary-hover);
}

.upload-area.dragover {
    background: var(--color-white-lighter);
    border-color: var(--color-primary-hover);
}

.upload-icon {
    color: var(--color-primary-icon);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.choose-file-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    font-family: inherit;
    transition: color 0.2s ease;
}


.file-name {
    margin-top: 12px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Selected File Display */
.selected-file-container {
    max-width: 696px;
    width: 100%;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
}

.selected-file-label {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 14px;
}

.selected-file-item {
    background: var(--color-file-bg);
    border-radius: 16px;
    padding: 14.5px 12.5px 14.5px 20.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-file-info {
    flex: 1;
    text-align: left;
}

.selected-file-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.selected-file-size {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.selected-file-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.file-action-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    border-radius: 4px;
}


.action-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* File Constraints */
.file-constraints {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 696px;
    width: 100%;
    margin: 14px auto 0 auto;
}

.constraint-item {
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Upload Button */
.upload-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    max-width: 288px;
    margin: 40px auto 0 auto;
}


.upload-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.upload-btn.upload-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 1;
}

.upload-btn-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.upload-btn-loading-text {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Processing State */
.upload-processing {
    text-align: center;
    max-width: 696px;
    width: 100%;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.processing-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 32px;
}

.loading-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

.processing-message {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.processing-file-display {
    background: var(--color-file-bg);
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 250px;
    max-width: 696px;
    width: 100%;
    margin: 0 auto 40px auto;
}

.processing-file-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
}

.cancel-processing-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cancel-processing-btn:hover {
    background: var(--color-primary-active);
}

.cancel-processing-btn:active {
    transform: translateY(1px);
}

/* Extended Processing State */
.upload-processing-extended {
    text-align: center;
    max-width: 696px;
    width: 100%;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.processing-message-extended {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.5;
}

/* Success State */
.upload-success {
    text-align: center;
    max-width: 696px;
    width: 100%;
    margin: 0 auto;
}

.success-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.success-message {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.file-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: medium;
    color: var(--color-text-primary);
    margin-bottom: 14px;
    align-self: flex-start;
}

.uploaded-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.uploaded-file-item {
    background: var(--color-file-bg);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.uploaded-file-item:hover {
    background: var(--color-file-bg-hover);
}

.file-info {
    flex: 1;
    text-align: left;
}

.file-name-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.file-size-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-tertiary);
}

.file-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.file-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    border-radius: 4px;
}


.file-action-btn svg {
    display: block;
}

/* Next Step Button */
.next-step-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    max-width: 288px;
    margin: 0 auto;
    display: block;
}


.next-step-btn:active {
    transform: translateY(0);
}

/* Step 2 Styles */
.step2-section {
    max-width: 616px;
    width: 100%;
    margin: 0 auto;
}

.step2-section:last-of-type {
    margin-bottom: 0;
}

.step2-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin: 0;
}

.step2-section-title.secondary {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin: 0 0 35px 0;
}

.step2-section-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.5;
    text-align: center;
    margin: 0;
    padding: 20px 0 35px 0;
}

.sheet-selection-actions {
    width: 100%;
    margin: 0 0 12px 0;
    display: flex;
    justify-content: flex-start;
}

.sheet-mark-all-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.sheet-mark-all-btn:hover {
    text-decoration: underline;
}

.sheet-selection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sheet-item {
    width: 100%;
    border: 1px solid #A2BCD7;
    border-radius: 12px;
    padding: 10px 12px 11px 12px;
    background: var(--color-white);
}

.sheet-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.sheet-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox {
    width: 23px;
    height: 23px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.sheet-checkbox:checked + .custom-checkbox {
    background: var(--color-success);
    border-color: var(--color-success);
}

.sheet-checkbox:checked + .custom-checkbox svg {
    display: block;
}

.custom-checkbox svg {
    display: none;
    width: 14px;
    height: 10px;
}

.sheet-name-input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    font-family: inherit;
    background: transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.sheet-name-input:focus {
    outline: none;
    /* cursor: text; */
}

.sheet-name-input::placeholder {
    color: var(--color-text-muted);
}

.sheet-info-message {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.step2-divider {
    max-width: 616px;
    width: 100%;
    height: 1px;
    background: var(--color-text-primary);
    margin: 40px auto;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--color-white);
}

.radio-option:hover {
    border-color: var(--color-primary);
}

.radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    width: 23px;
    height: 23px;
    display: block;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Hide inner circle by default */
.custom-radio .radio-inner-circle {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show inner circle when radio is checked */
.radio-input:checked + .custom-radio .radio-inner-circle {
    opacity: 1;
}

/* Update border color when checked */
.radio-input:checked + .custom-radio rect[stroke] {
    stroke: var(--color-primary-active);
}

.radio-option:has(.radio-input:checked) {
    border-color: var(--color-primary-active);
}

.radio-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    flex: 1;
}

.step2-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 616px;
    width: 100%;
    margin: 0 auto;
}

.cancel-import-btn {
    background: var(--color-white);
    color: var(--color-text-primary);
    border: 1px solid var(--color-text-primary);
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    flex: 1;
    max-width: 100%;
}

.cancel-import-btn:hover {
    background: var(--color-bg-primary);
}

.cancel-import-btn:active {
    transform: translateY(1px);
}



.next-step-btn:hover {
    background: var(--color-primary-active);
}

.next-step-btn:active {
    transform: translateY(1px);
}

/* Step 2 Part 2 Styles - Trailer Type Selection */
.trailer-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-width: 288px;
    width: 100%;
    margin: 0 auto;
}

.trailer-chip {
    background: var(--color-white);
    border: 1.7px solid var(--color-border);
    border-radius: 200px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
    width: 100%;
}

.trailer-chip:hover {
    border-color: var(--color-primary);
}

.trailer-chip.selected {
    border-color: var(--color-primary-active);
    background-color: var(--color-primary-active);
    color:#fff;
}

.trailer-type-more-options {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.trailer-type-more-options.show {
    display: flex;
}

.more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px auto 0 auto;
    gap: 4px;
    color: var(--color-primary-active);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    width: fit-content;
}

.more-link:hover {
    color: var(--color-primary-hover);
}

.more-chevron {
    transition: transform 0.2s ease;
    width: 16px;
    height: 16px;
    transform: rotate(180deg); /* Default: pointing up (collapsed state) */
}

.more-link.expanded .more-chevron {
    transform: rotate(0deg); /* Expanded: pointing down */
}

.load-unload-question {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    text-align: center;
    max-width: 399px;
    width: 100%;
    margin: 0 auto 20px auto;
}

.duration-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 290px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--color-white);
}

.duration-input-wrapper:focus-within {
    border-color: var(--color-primary);
}

.duration-input {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    font-family: inherit;
    text-align: left;
    flex: 1;
    background: transparent;
}

.duration-input:focus {
    outline: none;
}

.duration-unit {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-border);
    margin-left: 8px;
}

/* Step 3: Mapping Page - uses simple border */
.card-wrapper.step-3 {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

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

.mapping-header .card-subtitle {
    margin-top: 12px;
    max-width: 562px;
    margin: 0 auto;
    width: 100%;
}

.column-mapping-form {
    max-width: 776px;
    width: 100%;
    margin: 0 auto 30px auto;
}

.column-mapping-header {
    display: grid;
    grid-template-columns: 33.33% 66.66%;
    gap: 24px;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 30px;
}

.column-mapping-col {
    width: 33.33%;
    white-space: nowrap;
}

.matched-column-col {
    width: 66.66%;
}


.column-mapping-divider {
    height: 1px;
    background: var(--color-text-primary);
     max-width: 776px;
    margin: 35px auto 21px auto;
    width: 100%;
}

.mapping-row {
    display: flex;
    flex-wrap: wrap;
    gap: 19px;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    padding: 17px 26px 18px 22px;
    border-radius: 16px;
}

.mapping-label {
    width: 33.33%;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
}

.mapping-label-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-text-muted);
}

.mapping-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 38px;
    flex: 1;
}

.mapping-controls-row {
    display: flex;
    align-items: center;
    gap: 38px;
}

select.mapping-select-multiple {
    width: 301px;
    min-height: 120px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    font-family: inherit;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    flex-shrink: 0;
}

select.mapping-select-multiple:focus {
    outline: none;
    border-color: var(--color-primary);
}

select.mapping-select-multiple.is-enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.mapping-multi-select-wrap {
    width: 301px;
    flex-shrink: 0;
}

.mapping-multi-select {
    width: 301px;
    min-height: 120px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px;
    flex-shrink: 0;
}

.mapping-multi-select-list {
    max-height: 140px;
    overflow-y: auto;
}

.mapping-multi-option {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.mapping-multi-option:hover {
    background: var(--color-file-bg);
}

.mapping-multi-option-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mapping-multi-option-checkbox svg {
    display: none;
    width: 14px;
    height: 10px;
}

.mapping-multi-option.is-selected .mapping-multi-option-checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.mapping-multi-option.is-selected .mapping-multi-option-checkbox svg {
    display: block;
}

.mapping-multi-option-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-primary);
}

/* Custom Select / Dropdown */
.custom-select {
    position: relative;
    width: 301px;
    flex-shrink: 0;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 13px 16px 12px 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.custom-select-trigger:hover {
    border-color: var(--color-primary);
}

.custom-select.has-error .custom-select-trigger {
    border: 1px solid var(--color-error);
    color: var(--color-error);
}


.custom-select-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    font-family: inherit;
    outline: none;
    cursor: pointer;
    pointer-events: none;
}

.custom-select-input:focus {
    cursor: text;
}

.custom-select-input::placeholder {
    color: var(--color-text-muted);
}

.custom-select-value-error {
    color: #E53935;
}

.custom-select-chevron {
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s ease;
    width: 12px;
    height: 7px;
}

.custom-select.is-open .custom-select-chevron {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.custom-select.is-open .custom-select-dropdown {
    display: block;
}

.custom-select-dropdown-search {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    border-radius: 8px 8px 0 0;
}

.custom-select-dropdown-search-input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-primary);
    font-family: inherit;
    background: var(--color-white);
    outline: none;
}

.custom-select-dropdown-search-input:focus {
    border-color: var(--color-primary);
}

.custom-select-dropdown-search-input::placeholder {
    color: var(--color-text-muted);
}

.custom-select-option {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.custom-select-option:hover {
    background: var(--color-file-bg);
}

.custom-select-option.is-selected {
    color: var(--color-primary);
}

.custom-select-option:first-child {
    border-radius: 8px 8px 0 0;
}

.custom-select-option:last-child {
    border-radius: 0 0 8px 8px;
}

.mapping-field-tip {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-error);
}

.custom-select.has-error .mapping-field-tip {
    display: block;
}

.custom-select.has-sample-tip .mapping-field-tip {
    display: block;
    color: var(--color-text-muted);
}

.mapping-multi-select-wrap.has-error .mapping-multi-select {
    border-color: var(--color-error);
}

.mapping-multi-select-wrap.has-error .mapping-field-tip {
    display: block;
}

.mapping-multi-select-wrap.has-sample-tip .mapping-field-tip {
    display: block;
    color: var(--color-text-muted);
}

/* Prefill checkbox - reuses custom-checkbox, label in orange/gold */
.prefill-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    user-select: none;
    pointer-events: auto;
}

.prefill-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    z-index: 20;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
}

.prefill-checkbox-label .custom-checkbox {
    width: 23px;
    height: 23px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.prefill-checkbox:checked + .custom-checkbox {
    background: var(--color-success);
    border-color: var(--color-success);
}

.prefill-checkbox:checked + .custom-checkbox svg {
    display: block;
}

.prefill-checkbox-label .custom-checkbox svg {
    display: none;
    width: 14px;
    height: 10px;
}

.prefill-label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-tab);
}

.prefill-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.prefill-input::placeholder {
    color: #A2BCD7;
    font-size: 14px;
}

.prefill-input:focus {
    border-color: var(--color-primary-active);
}

.mapping-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 616px;
    width: 100%;
    margin: 0 auto;
}

.generate-tender-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    flex: 1;
    max-width: 100%;
}

.generate-tender-btn:hover {
    background: var(--color-primary-active);
}

.generate-tender-btn:active {
    transform: translateY(1px);
}

/* Mapping Success State */
.mapping-success {
    text-align: center;
    max-width: 696px;
    width: 100%;
    margin: 0 auto;
}

.mapping-success-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 17px;
    width: 67px;
    height: 67px;
    background-color: #15CD301A;
    border: 1px solid rgba(21, 205, 48, 0.2);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.mapping-success-icon {
    width: 45px;
    height: 45px;
    display: block;
}

.mapping-success-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.mapping-success-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    max-width: 486px;
    margin-left: auto;
    margin-right: auto;
}

.file-download-box {
    background: var(--color-file-bg);
    border-radius: 16px;
    padding: 14.5px 20.5px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto 31px auto;
    max-width: 696px;
    width: 100%;
}

.file-download-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.excel-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.file-download-info {
    flex: 1;
    text-align: left;
}

.file-download-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.file-download-size {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.mapping-success-download-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 696px;
    width: 100%;
    margin: 0 auto 31px auto;
}

.mapping-success-download-list .file-download-box {
    margin-bottom: 0;
}

.mapping-success-download-list .download-file-btn {
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
}

.mapping-success-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 288px;
    width: 100%;
    margin: 0 auto;
}

.download-file-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-file-btn:hover {
    background: var(--color-primary-active);
}

.download-file-btn:active {
    transform: translateY(1px);
}

.download-file-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.back-to-start-btn {
    background: var(--color-white);
    color: var(--color-text-primary);
    border: 1px solid var(--color-text-primary);
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.back-to-start-btn:hover {
    background: var(--color-bg-primary);
}

.back-to-start-btn:active {
    transform: translateY(1px);
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 24px;
    }

    /* Header */
    .header {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .error-dialog-test-buttons {
        margin-top: 0;
        flex-wrap: wrap;
    }

    .test-error-btn,
    .test-support-error-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .card {
        padding: 60px 40px 50px 40px;
    }

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

    .card-subtitle {
        font-size: 15px;
    }
  
    .upload-area {
        padding: 50px 20px 35px 20px;
        margin-top: 30px;
    }

    .step-tab-label {
        font-size: 16px;
        top: 12px;
    }

    .progress-indicator {
        gap: 6px;
        margin-bottom: 30px;
    }

    .progress-line {
        max-width: 280px;
    }

    .step2-section-title {
        font-size: 28px;
    }

    .step2-section-title.secondary {
        font-size: 22px;
    }

    .column-mapping-header {
        grid-template-columns: 30% 70%;
        gap: 20px;
    }

    .mapping-label {
        width: 30%;
        font-size: 15px;
    }

    .mapping-controls {
        gap: 24px;
    }

    .custom-select {
        width: 280px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (< 768px)
   ============================================ */
@media (max-width: 768px) {
    /* General Layout */
    body {
        padding: 20px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .header {
        margin-bottom: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .logo {
        width: 100%;
    }

    .logo-image {
        width: 150px;
        height: auto;
    }

    /* Error Dialog Test Buttons */
    .error-dialog-test-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: 0;
    }

    .test-error-btn,
    .test-support-error-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Progress Indicator */
    .progress-indicator {
        gap: 4px;
        margin-bottom: 64px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .progress-step {
        gap: 6px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
    }

    .step-circle-svg {
        width: 30px;
        height: 30px;
    }

    .step-checkmark {
        width: 12px;
        height: 9px;
    }

    .step-label {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .progress-line {
        width: 30px;
        max-width: 30px;
        margin-top: calc((14px * 1.4) + 12px + 20px - 1px);
    }

    /* Card Wrapper */
    .card-wrapper {
        margin: 0 auto;
        margin-top: 0; /* Reset any top margin */
    }

    .card-wrapper::before {
        top: -43px; /* Reduced notch height on mobile, moved up a bit */
        /* height: calc(100% + 43px); */
        height: 44px;
    }

    .step-tab-label {
        font-size: 14px;
        top: -31px; /* Adjusted for mobile notch, moved up a bit */
        height: 35px; /* Match reduced notch height */
    }

    /* Card */
    .card {
        padding: 50px 16px 40px 16px;
    }

    .card-header {
        margin-bottom: 0;
    }

    .card-title {
        font-size: 22px;
        margin-bottom: 10px;
        line-height: 1.3;
        font-weight: 500;
    }

    .card-subtitle {
        font-size: 14px;
        margin-top: 12px;
        line-height: 1.5;
    }

    /* Upload Area */
    .upload-area {
        padding: 40px 16px 30px 16px;
        margin: 24px auto 0 auto;
        border-radius: 12px;
    }

    .upload-icon svg {
        width: 20px;
        height: 26px;
    }

    .choose-file-btn {
        font-size: 13px;
        padding: 6px;
    }

    .file-name {
        font-size: 13px;
        margin-top: 10px;
    }

    /* Selected File Container */
    .selected-file-container {
        margin: 24px auto 0 auto;
    }

    .selected-file-label {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .selected-file-item {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .selected-file-name {
        font-size: 14px;
    }

    .selected-file-size {
        font-size: 13px;
    }

    .action-icon {
        width: 20px;
        height: 20px;
    }

    /* File Constraints */
    .file-constraints {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 12px;
        margin: 12px auto 0 auto;
    }

    /* Buttons */
    .upload-btn,
    .next-step-btn {
        max-width: 100%;
        width: 100%;
        padding: 16px 24px;
        font-size: 14px;
        margin: 24px auto 0 auto;
    }

    /* Processing State */
    .upload-processing,
    .upload-processing-extended {
        margin: 24px auto 0 auto;
    }

    .processing-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .loading-icon-container {
        margin-bottom: 20px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .processing-message,
    .processing-message-extended {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .processing-file-display {
        padding: 12px 16px;
        margin: 0 auto 24px auto;
    }

    .processing-file-name {
        font-size: 14px;
    }

    .cancel-processing-btn {
        padding: 16px 24px;
        font-size: 14px;
    }

    /* Success State */
    .upload-success {
        margin: 24px auto 0 auto;
    }

    .success-icon-container {
        margin-bottom: 16px;
    }

    .success-icon-container svg {
        width: 38px;
        height: 38px;
    }

    .success-message {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .file-count {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .uploaded-files {
        gap: 10px;
        margin-bottom: 24px;
    }

    .uploaded-file-item {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .file-name-text {
        font-size: 14px;
    }

    .file-size-text {
        font-size: 13px;
    }

    /* Step 2 Styles */
    .step2-section {
        margin: 0 auto;
    }

    .step2-section-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .step2-section-title.secondary {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .step2-section-description {
        font-size: 14px;
        padding: 16px 0 24px 0;
        line-height: 1.5;
    }

    .sheet-selection-list {
        gap: 10px;
        margin-bottom: 12px;
    }

    .sheet-item {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .sheet-checkbox-label {
        gap: 10px;
    }

    .custom-checkbox {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .custom-checkbox svg {
        width: 12px;
        height: 8px;
    }

    .sheet-name-input {
        font-size: 14px;
    }

    .sheet-info-message {
        font-size: 13px;
    }

    .step2-divider {
        margin: 30px auto;
    }

    .radio-options {
        gap: 10px;
    }

    .radio-option {
        padding: 14px;
        border-radius: 8px;
        gap: 10px;
    }

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

    .radio-text {
        font-size: 14px;
    }

    .step2-actions {
        flex-direction: column;
        gap: 12px;
        margin: 0 auto;
    }

    .cancel-import-btn,
    .next-step-btn {
        max-width: 100%;
        width: 100%;
        padding: 16px 24px;
        font-size: 14px;
    }

    /* Step 2 Part 2 - Trailer Type */
    .trailer-type-options {
        max-width: 100%;
        gap: 10px;
        margin-bottom: 12px;
    }

    .trailer-chip {
        padding: 10px 14px;
        font-size: 14px;
        border-width: 1.5px;
    }

    .load-unload-question {
        font-size: 20px;
        margin-bottom: 16px;
        max-width: 100%;
        line-height: 1.3;
    }

    .duration-input-wrapper {
        max-width: 100%;
        padding: 10px 14px;
        margin-bottom: 30px;
    }

    .duration-input {
        font-size: 14px;
    }

    .duration-unit {
        font-size: 14px;
    }

    .more-link {
        margin: 20px auto 0 auto;
        gap: 4px;
    }

    .more-link-text {
        font-size: 13px;
    }

    .more-chevron {
        width: 14px;
        height: 14px;
    }

    /* Step 3: Mapping */
    .mapping-header {
        margin-bottom: 0;
    }

    .mapping-header .card-title {
        font-size: 22px;
    }

    .mapping-header .card-subtitle {
        font-size: 14px;
        margin: 10px auto;
    }

    .column-mapping-divider {
        display: none !important; /* Hide divider on mobile */
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
    }

    .column-mapping-form {
        margin: 0 auto 24px auto;
    }

    .column-mapping-header {
        display: none; /* Hide header on mobile, labels are in rows */
    }

    .mapping-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 14px 16px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .mapping-label {
        width: 100%;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .mapping-label-tip {
        font-size: 11px;
    }

    .mapping-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .mapping-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .mapping-multi-select {
        width: 100%;
        min-width: 0;
    }

    .mapping-multi-select-wrap {
        width: 100%;
        min-width: 0;
    }

    .mapping-field-tip {
        font-size: 11px;
    }

    .custom-select {
        width: 100%;
        min-width: 0;
    }

    .custom-select-trigger {
        padding: 12px 14px 11px 16px;
        font-size: 14px;
    }

    .custom-select-dropdown {
        max-height: 200px;
    }

    .custom-select-dropdown-search-input {
        height: 34px;
        font-size: 13px;
    }

    .custom-select-option {
        padding: 10px 14px;
        font-size: 14px;
    }

    .prefill-checkbox-label {
        gap: 8px;
    }

    .prefill-label-text {
        font-size: 12px;
    }

    .prefill-input {
        width: 100%;
        height: 48px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .mapping-actions {
        flex-direction: column;
        gap: 12px;
        margin: 0 auto;
    }

    .generate-tender-btn,
    .cancel-import-btn {
        max-width: 100%;
        width: 100%;
        padding: 16px 24px;
        font-size: 14px;
    }

    /* Mapping Success */
    .mapping-success {
        margin: 0 auto;
    }

    .mapping-success-icon-container {
        display: flex;
        width: 67px;
        height: 67px;
        margin-bottom: 14px;
        background: #15CD301A;
    }

    .mapping-success-icon {
        width: 38px;
        height: 38px;
    }

    .mapping-success-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .mapping-success-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .file-download-box {
        padding: 11.5px 12px;
        margin: 0 auto 24px auto;
        gap: 12px;
    }

    .excel-icon {
        width: 35px;
        height: 35px;
    }

    .file-download-name {
        font-size: 14px;
    }

    .file-download-size {
        font-size: 13px;
    }

    .mapping-success-actions {
        max-width: 100%;
        gap: 12px;
    }

    .download-file-btn,
    .back-to-start-btn {
        padding: 16px 24px;
        font-size: 14px;
    }

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

/* Error Modal Styles */
.error-modal-overlay {
    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: 1000;
}

.error-modal-overlay.show {
    display: flex !important;
}

.error-modal-overlay.hidden {
    display: none !important;
}

.error-modal-container {
    position: relative;
    width: 100%;
    max-width: 530px;
    padding: 0 20px;
}

.error-modal {
    position: relative;
    background: linear-gradient(180deg, #FFE3E3 0%, #FFFFFF 100%);
    border-radius: 16px;
    padding: 30px 47px 53px 46px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

/* Gradient Border Effect */
.error-modal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(180deg, #FF6B35 0%, #FF8D58 100%);
    border-radius: 16px;
    z-index: -1;
}

/* Close Button */
.error-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-family: inherit;
    padding: 0;
}

.error-close-btn svg {
    width: 10px;
    height: 10px;
    display: block;
}

.error-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.error-close-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

/* Error Icon */
.error-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.error-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

/* Error Message */
.error-message {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Start Again Button */
.start-again-btn {
    background: linear-gradient(180deg, #FF8D58 0%, #FF7C00 100%);
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    max-width: 288px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-again-btn:hover {
    background: linear-gradient(180deg, #FF7C00 0%, #FF6B35 100%);
}

.start-again-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 125, 0, 0.3);
}

/* Responsive Design for Error Modal - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .error-modal-container {
        padding: 0 24px;
    }

    .error-modal {
        padding: 35px 40px 45px 40px;
    }
}

/* Responsive Design for Error Modal - Mobile */
@media (max-width: 768px) {
    .error-modal-container {
        padding: 0 16px;
    }

    .error-modal {
        padding: 32px 20px 28px 20px;
        border-radius: 12px;
    }

    .error-modal::before {
        border-radius: 12px;
    }

    .error-close-btn {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
    }

    .error-close-btn svg {
        width: 9px;
        height: 9px;
    }

    .error-icon-container {
        margin-bottom: 24px;
    }

    .error-icon {
        width: 56px;
        height: 56px;
    }

    .error-message {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .start-again-btn {
        padding: 16px 24px;
        font-size: 14px;
        max-width: 100%;
    }
}

/* Support Error Modal Styles */
.support-error-modal {
    padding: 30px 47px 53px 46px;
}

.error-title {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin: 0 0 28px 0;
}

.error-description {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.error-contact-info {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0 0 30px 0;
}

.error-email-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.error-email-link:hover {
    color: var(--color-primary-active);
    text-decoration: underline;
}

.error-email-input-wrapper {
    max-width: 400px;
    width: 100%;
    margin: 0 auto 20px auto;
}

.error-email-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.error-email-input::placeholder {
    color: #A2BCD7;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.error-email-input:focus {
    border-color: var(--color-primary-active);
}

.error-email-input.has-error {
    border-color: #D92D20;
}

.support-request-feedback {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.support-request-feedback.hidden {
    display: none;
}

.support-request-feedback.error {
    color: #D92D20;
}

.support-request-feedback.success {
    color: #0F8A5F;
}

.send-support-btn {
    background: #FF8D58;
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 19px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.send-support-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}




.send-icon {
    width: 16px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

/* Responsive Design for Support Error Modal - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .support-error-modal {
        padding: 35px 40px 45px 40px;
    }
}

/* Responsive Design for Support Error Modal - Mobile */
@media (max-width: 768px) {
    .support-error-modal {
        padding: 32px 20px 28px 20px;
        border-radius: 12px;
    }

    .error-close-btn {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
    }

    .error-icon-container {
        margin-bottom: 24px;
    }

    .error-icon {
        width: 56px;
        height: 56px;
    }

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

    .error-description {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .error-contact-info {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .error-email-link {
        word-break: break-word;
    }

    .error-email-input-wrapper {
        max-width: 100%;
        margin-bottom: 16px;
    }

    .error-email-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .error-email-input::placeholder {
        font-size: 13px;
    }

    .send-support-btn {
        padding: 16px 24px;
        font-size: 13px;
        gap: 8px;
    }

    .send-icon {
        width: 14px;
        height: 12px;
    }
}
