/* ============================================
   FuturProof Labs — Client Intake Portal
   Ultra-modern, minimal, dark theme
   ============================================ */

/* Thank You Page */
.thank-you-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 40px 24px;
    background: var(--color-bg);
}

.thank-you-page .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.thank-you-page .success-icon svg {
    color: #000;
}

.thank-you-page h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.thank-you-page p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}

.thank-you-page .ref-id {
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* Drive Instructions */
.drive-instructions {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0;
}

.drive-instructions h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drive-instructions ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drive-instructions li {
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.drive-instructions li:last-child {
    border-bottom: none;
}

.drive-instructions strong {
    color: #C9A227;
    font-weight: 500;
}

/* Field Note */
.field-note {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(201, 162, 39, 0.05);
    border-left: 2px solid #C9A227;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.field-note strong {
    color: #C9A227;
}

/* PDF Render Styles - ensure visibility for html2pdf */
.pdf-render,
.pdf-render * {
    color: #000000 !important;
    background-color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

#pdf-content {
    font-family: 'Inter', Arial, sans-serif !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

:root {
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-surface-elevated: #1a1a1a;
    --color-border: #262626;
    --color-border-subtle: #1f1f1f;
    --color-text: #ffffff;
    --color-text-secondary: #a1a1a1;
    --color-text-muted: #666666;
    --color-accent: #ffffff;
    --color-accent-dim: rgba(255, 255, 255, 0.1);
    --color-success: #d0ad6a;
    --color-error: #ef4444;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* App Container */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Title Section */
.hero-title {
    text-align: center;
    padding: 0 24px 40px;
    width: 100%;
    max-width: 720px;
}

.hero-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #C9A227;
    margin-bottom: 12px;
}

.hero-heading {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-heading .gold {
    color: #C9A227;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Password Gate Section */
.gate-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 40px 24px;
}

.gate-content {
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.gate-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #C9A227;
}

.gate-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #C9A227;
    margin-bottom: 12px;
}

.gate-heading {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.gate-heading .gold {
    color: #C9A227;
}

.gate-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 40px;
}

.gate-form {
    margin-bottom: 32px;
}

.gate-input-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.gate-input-wrapper {
    display: flex;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}

.gate-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: var(--transition-base);
}

.gate-input:focus {
    outline: none;
    border-color: #C9A227;
    background: rgba(255, 255, 255, 0.08);
}

.gate-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.gate-error {
    margin-top: 16px;
    font-size: 14px;
    color: #ff6b6b;
    min-height: 20px;
}

.gate-error.schedule {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.gate-error.schedule a {
    color: #C9A227;
    text-decoration: none;
    font-weight: 500;
}

.gate-error.schedule a:hover {
    text-decoration: underline;
}

.gate-footer {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.gate-footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.gate-link {
    color: #C9A227;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
}

.gate-link:hover {
    text-decoration: underline;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo svg {
    display: block;
}

.save-indicator,
.save-indicator-floating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(-4px);
    transition: var(--transition-base);
}

.save-indicator-floating {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
}

.save-indicator.visible,
.save-indicator-floating.visible {
    opacity: 1;
    transform: translateY(0);
}

.save-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--color-bg);
    padding: 0 24px 16px;
}

.progress-bar {
    max-width: 800px;
    margin: 0 auto;
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-text);
    width: 0%;
    transition: width var(--transition-slow);
}

.progress-steps {
    display: none;
}

/* Main Content */
.main {
    flex: 1;
    padding: 80px 24px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    max-width: 720px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .form-container {
        padding: 32px 24px;
        border-radius: var(--radius-md);
        margin: 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 24px 20px;
    }
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn var(--transition-slow);
}

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

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

/* Section Header */
.section-header {
    margin-bottom: 48px;
}

.section-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.section-header h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 500px;
}

/* Welcome Section */
.welcome-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.welcome-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-base);
}

.welcome-card:hover {
    border-color: var(--color-border);
    background: var(--color-surface-elevated);
}

.welcome-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-dim);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    color: var(--color-text);
}

.welcome-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-text);
}

.field-hint {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    margin-top: -4px;
}

/* Inputs */
.input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    outline: none;
}

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

.input:hover {
    border-color: #333;
}

.input:focus {
    border-color: var(--color-text);
    background: var(--color-surface-elevated);
}

textarea.input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

/* Form Row (multi-column) */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row.thirds {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Repeater Groups */
.repeater-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repeater-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.repeater-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.repeater-item .input {
    flex: 1;
}

/* Product & Scent Cards */
.product-card,
.scent-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.product-card-header,
.scent-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.product-card-header h3,
.scent-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-grid .form-group {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}

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

.btn-primary {
    background: #ffffff;
    color: var(--color-bg);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(255, 255, 255, 0.15);
    transition: all 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #f0f0f0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35), 0 3px 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btn-primary:disabled {
    background: #3a3a3a;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-surface);
    border-color: #333;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--color-text);
    background: var(--color-surface);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.file-upload:hover {
    border-color: #444;
    background: var(--color-surface);
}

.file-upload.dragover {
    border-color: var(--color-text);
    background: var(--color-surface-elevated);
}

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

.file-upload-content {
    pointer-events: none;
}

.file-upload-content svg {
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.file-upload-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.file-upload-content .link {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.file-list {
    margin-top: 16px;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 13px;
}

.file-item svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.file-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item button {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
}

.file-item button:hover {
    color: var(--color-error);
}

/* Tag Input */
.tag-input-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transition: var(--transition-fast);
}

.tag-input-container:focus-within {
    border-color: var(--color-text);
    background: var(--color-surface-elevated);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--color-accent-dim);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.tag button {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.tag button:hover {
    color: var(--color-text);
}

.tag-input {
    flex: 1;
    min-width: 150px;
    background: transparent;
    border: none;
    padding: 6px 0;
}

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

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 3px solid #555;
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--transition-fast);
    position: relative;
    margin-top: 0;
    background: var(--color-surface);
}

.checkbox-label:hover .checkbox-custom {
    border-color: #888;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 10px;
    height: 20px;
    border: solid var(--color-bg);
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

/* Confirmation checkbox instruction */
.confirm-instruction {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    padding-left: 4px;
}

/* Completion Summary */
.completion-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

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

.summary-item-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.summary-item-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.summary-item-status.complete {
    color: var(--color-success);
}

.summary-item-status.incomplete {
    color: var(--color-text-muted);
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 32px 0;
}

/* Navigation Footer */
.nav-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border-subtle);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.nav-footer .btn {
    padding: 18px 32px;
    font-size: 16px;
}

.nav-progress {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
    z-index: 200;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.toast-content svg {
    color: var(--color-success);
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 36px;
    }

    .welcome-card {
        padding: 20px;
    }

    .form-row,
    .form-row.thirds {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h1 {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .main {
        padding: 70px 12px 100px;
    }

    .nav-footer {
        padding: 12px 16px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-group label {
        font-size: 15px;
    }

    .field-hint {
        font-size: 13px;
    }

    .input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .file-upload {
        padding: 30px 20px;
    }

    .repeater-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .repeater-number {
        width: auto;
        justify-content: flex-start;
        padding: 0 4px;
    }

    .completion-summary {
        padding: 16px;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 0;
    }
}

@media (max-width: 480px) {
    .logo svg {
        width: 90px;
        height: auto;
    }

    .main {
        padding: 60px 0 100px;
    }

    .section-header h1 {
        font-size: 24px;
    }

    .section-description {
        font-size: 14px;
    }

    .product-card,
    .scent-card {
        padding: 18px;
        border-radius: var(--radius-md);
    }

    .product-card-header,
    .scent-card-header {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .product-card-header h3,
    .scent-card-header h3 {
        font-size: 15px;
    }

    .welcome-card h3 {
        font-size: 13px;
    }

    .welcome-card p {
        font-size: 12px;
    }

    .nav-progress {
        font-size: 12px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .tag {
        padding: 5px 8px;
        font-size: 12px;
    }

    .submit-section {
        padding: 24px 0;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.saving .save-dot {
    animation: pulse 1s ease-in-out infinite;
    background: var(--color-text-muted);
}

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

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

/* Submit Loader Overlay */
#submit-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#submit-loader.visible {
    display: flex;
    opacity: 1;
}

#submit-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.loader-icon {
    width: 132px;
    height: auto;
    overflow: visible;
    background: transparent;
    border: none;
    animation: loaderScaleUp 0.4s ease-out 2.2s forwards;
}

.loader-path {
    fill: none;
    stroke: #d0ad6a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    opacity: 0;
    animation:
        loaderFlicker 0.6s ease-out forwards,
        loaderDraw 1.2s ease-in-out 0.6s forwards,
        loaderFill 0.4s ease-out 1.8s forwards;
}

.loader-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInText 0.5s ease-out 2.2s forwards;
}

/* Power on flicker effect */
@keyframes loaderFlicker {
    0% { opacity: 0; }
    15% { opacity: 0.4; }
    30% { opacity: 0; }
    45% { opacity: 0.6; }
    60% { opacity: 0.2; }
    75% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes loaderDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes loaderFill {
    to {
        fill: #d0ad6a;
        stroke-width: 0;
    }
}

@keyframes loaderScaleUp {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }
    to {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(208, 173, 106, 0.9)) drop-shadow(0 0 50px rgba(208, 173, 106, 0.5));
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

/* Success State */
.form-section.submitted {
    text-align: center;
    padding: 80px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.success-icon svg {
    color: white;
    width: 40px;
    height: 40px;
}
