/* ===== CREATE PROJECT 2 STYLESHEET ===== */
/* Shared styles (variables, nav, footer, etc.) are in /css/shared.css */

nav#nav {
    padding: 0;
}
nav#nav.scrolled {
    padding: 0;
}

/* ============================================================ */
/* ===== CREATE PROJECT PAGE STYLES (with token remapping) ===== */
/* ============================================================ */
/* Matches index.html design system with warm, premium feel */

/* ===== PAGE LAYOUT ===== */
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--soft-cream);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Prevent scroll during initial load */
body.loading {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    top: 0;
}

/* Adjust main content for fixed nav */
main {
    padding-top: 80px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-bottom: var(--space-md);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-xs);
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb li[aria-current="page"] {
    color: var(--warm-black);
    font-weight: var(--font-weight-medium);
}

/* ===== INLINE HEADER (Compact) ===== */
.inline-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.inline-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-xl);
    color: var(--warm-black);
    margin: var(--space-xs) 0;
    font-weight: var(--font-weight-bold);
}

.inline-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-light);
    flex-wrap: wrap;
}

.trust-divider {
    color: var(--border-soft);
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    background: #ffffff;
    padding: var(--space-sm) 0 var(--space-md);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 64px;
    z-index: var(--z-sticky);
}

.progress-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

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

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    background: var(--border-soft);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.progress-step.active .step-circle,
.step-indicator.active .step-circle {
    background: var(--gold);
    color: var(--warm-black);
    border-color: var(--gold-dark);
    box-shadow: 0 4px 20px rgba(212,162,76,0.3);
}

.progress-step.completed .step-circle,
.step-indicator.completed .step-circle {
    background: var(--color-success);
    color: #ffffff;
    border-color: var(--color-success);
}

.progress-step.completed .step-circle::after,
.step-indicator.completed .step-circle::after {
    content: '\2713';
    position: absolute;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
}

/* Hide the number when completed so only the tick shows */
.progress-step.completed .step-circle,
.step-indicator.completed .step-circle {
    font-size: 0;
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
    text-align: center;
    transition: var(--transition-base);
}

.progress-step.active .step-label,
.step-indicator.active .step-label {
    color: var(--warm-black);
    font-weight: var(--font-weight-semibold);
}

.progress-step.completed .step-label,
.step-indicator.completed .step-label {
    color: var(--color-success);
}

.progress-connector {
    flex: 1;
    height: 2px;
    background: var(--border-soft);
    margin: 0 var(--space-xs);
    margin-bottom: 18px;
    transition: var(--transition-base);
}

.progress-connector.active {
    background: linear-gradient(90deg, var(--gold), var(--color-accent));
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--border-soft);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--color-accent));
    border-radius: 100px;
    transition: width 0.4s ease;
}

/* ===== FORM SECTION ===== */
.form-section {
    padding: var(--space-md) 0 var(--space-xl);
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-xl);
    align-items: start;
}

/* ===== FORM MAIN ===== */
.form-main {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(44,36,32,0.08);
    padding: var(--space-lg);
}

/* ===== MOTIVATIONAL MICROCOPY ===== */
.form-motivation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.1) 0%, rgba(232, 184, 109, 0.05) 100%);
    border: 1px solid rgba(232, 184, 109, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--warm-black);
    text-align: center;
}

.motivation-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

#tributeForm {
    display: flex;
    flex-direction: column;
}

/* ===== FORM STEPS ===== */
.form-step,
.step {
    display: none;
    animation: fadeInStep 0.4s ease;
    border: none;
    padding: 0;
    margin: 0;
}

.form-step.active,
.step.active {
    display: block;
}

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

/* ===== STEP HEADER ===== */
.step-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.step-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--warm-black);
    padding: 2px var(--space-xs);
    border-radius: 100px;
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.step-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-xl);
    color: var(--warm-black);
    margin-bottom: 4px;
}

.step-header p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ===== FORM CARD ===== */
.form-card {
    background: var(--soft-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group:last-child {
    margin-bottom: 0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.checkbox-row .form-label {
    margin-bottom: 0;
}
.checkbox-row input[type="checkbox"] {
    width: 1.3rem;
    height: 1.3rem;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--warm-black);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-base);
}

.required {
    color: var(--color-error);
    margin-left: 2px;
}

.optional-badge {
    display: inline-block;
    background: var(--border-soft);
    color: var(--text-light);
    padding: 2px var(--space-xs);
    border-radius: 100px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-normal);
    margin-left: var(--space-xs);
}

/* ===== FORM INPUTS ===== */
.form-input,
.form-select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: #ffffff;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.form-input:hover,
.form-select:hover {
    border-color: var(--gold-light);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(232, 184, 109, 0.15);
}

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

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\25BC';
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.75rem;
    pointer-events: none;
}

.form-select {
    appearance: none;
    padding-right: var(--space-xl);
    cursor: pointer;
}

.form-hint {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.form-error {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-error);
    margin-top: var(--space-xs);
}

.form-error:empty {
    display: none;
}

/* ===== BOOK TYPE GRID ===== */
.book-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.book-type-card {
    position: relative;
    display: block;
    cursor: pointer;
    transition: var(--transition-base);
}

.book-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.book-type-card .card-content {
    background: #ffffff;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.book-type-card:hover .card-content {
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44,36,32,0.06);
}

.book-type-card input[type="radio"]:checked + .card-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.05) 0%, rgba(232, 184, 109, 0.1) 100%);
    box-shadow: 0 4px 20px rgba(212,162,76,0.3);
}

.book-type-card input[type="radio"]:focus-visible + .card-content {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.book-type-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-lg);
    color: var(--warm-black);
    margin-bottom: var(--space-xs);
}

.book-type-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

.card-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--gold);
    color: var(--warm-black);
    padding: var(--space-3xs) var(--space-xs);
    border-radius: 100px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.card-check {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: var(--warm-black);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-base);
}

.book-type-card input[type="radio"]:checked ~ .card-check {
    opacity: 1;
    transform: scale(1);
}

/* ===== UPLOAD SECTION ===== */
@keyframes subtle-shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-4px) rotate(-0.5deg); }
    20% { transform: translateX(4px) rotate(0.5deg); }
    30% { transform: translateX(-3px) rotate(-0.3deg); }
    40% { transform: translateX(3px) rotate(0.3deg); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(0); }
}

.upload-section {
    margin-bottom: var(--space-lg);
}

.upload-section.shake-attention .upload-dropzone {
    animation: subtle-shake 0.6s ease-in-out;
}

.upload-dropzone {
    border: 3px dashed var(--gold-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.04) 0%, rgba(212, 162, 76, 0.1) 100%);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.upload-dropzone:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.08) 0%, rgba(212, 162, 76, 0.15) 100%);
    box-shadow: 0 4px 20px rgba(212, 162, 76, 0.15);
}

.upload-dropzone.dragover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.1) 0%, rgba(212, 162, 76, 0.2) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 162, 76, 0.2);
}

.upload-dropzone:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.upload-icon {
    color: var(--gold);
    margin-bottom: var(--space-sm);
    font-size: 2.5rem;
}

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

.upload-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.upload-text strong {
    color: var(--gold-dark);
}

.upload-formats {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

@keyframes pulse-hint {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.upload-guidance {
    font-size: 0.85rem;
    color: var(--text-secondary, #4a3f36);
    margin: 0.6rem 0 0;
    line-height: 1.5;
}

/* Empty return nudge (picker cancelled) */
.empty-return-nudge {
    padding: var(--space-md) 0;
}

.empty-return-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.empty-return-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs);
}

.empty-return-text {
    font-size: 0.9rem;
    color: var(--text-secondary, #4a3f36);
    line-height: 1.5;
    margin: 0 0 var(--space-md);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.empty-return-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.empty-return-actions .btn-primary {
    min-width: 200px;
}

.empty-return-actions .btn-text {
    font-size: 0.85rem;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.upload-preview:empty {
    display: none;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44,36,32,0.06);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--color-error);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-fast);
}

.upload-preview-item .remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.upload-counter {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}


/* ===== IMAGE PREVIEW GRID ===== */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44,36,32,0.06);
    animation: fadeInScale 0.3s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(44,36,32,0.08);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    opacity: 0;
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

.preview-item .remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: var(--space-sm);
    }

    .preview-item .remove-btn {
        opacity: 1;
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}

/* ===== PHOTO TIPS ===== */
.photo-tips {
    background: var(--color-info-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border-left: 4px solid var(--color-info);
}

.photo-tips h3 {
    font-size: var(--font-size-base);
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
}

.photo-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.photo-tips li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.photo-tips li:last-child {
    margin-bottom: 0;
}

.tip-icon {
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
}

/* ===== SUCCESS SECTION ===== */
.success-section {
    text-align: center;
    padding: var(--space-lg) 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Utility bounce class for JavaScript */
.bounce {
    animation: bounce 0.3s ease;
}

.success-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-2xl);
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
}

.success-message {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.success-timeline {
    background: var(--soft-cream);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: left;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.success-timeline h3 {
    font-size: var(--font-size-lg);
    color: var(--warm-black);
    margin-bottom: var(--space-md);
    text-align: center;
}

.timeline-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: timeline;
}

.timeline-steps li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    position: relative;
}

.timeline-steps li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--gold-light);
}

.timeline-steps li:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    width: 42px;
    height: 42px;
    background: var(--gold-light);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding-top: var(--space-xs);
}

.timeline-content strong {
    display: block;
    color: var(--warm-black);
    font-size: var(--font-size-base);
    margin-bottom: 2px;
}

.timeline-content span {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-soft);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    font-family: inherit;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    min-height: var(--touch-target-min);
}

.btn-primary {
    background: var(--gold);
    color: var(--warm-black);
    box-shadow: 0 4px 20px rgba(212,162,76,0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,162,76,0.4);
}

.btn-primary:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--gold);
}

.btn-secondary {
    background: var(--border-soft);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.create-btn {
    min-width: 200px;
}

.btn-icon {
    font-size: 1.25rem;
}

/* ===== SIDEBAR ===== */
.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 140px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 4px 12px rgba(44,36,32,0.06);
}

.sidebar-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-lg);
    color: var(--warm-black);
    margin-bottom: var(--space-md);
    text-align: center;
}

/* ===== BOOK PREVIEW ===== */
.book-preview {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.book-mockup {
    perspective: 1000px;
}

.book-cover {
    width: 160px;
    height: 200px;
    background: linear-gradient(135deg, var(--warm-black) 0%, #34495E 100%);
    border-radius: 4px 12px 12px 4px;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transform: rotateY(-10deg);
    box-shadow:
        -5px 5px 15px rgba(0, 0, 0, 0.2),
        inset -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent);
    border-radius: 4px 0 0 4px;
}

.book-mockup:hover .book-cover {
    transform: rotateY(-5deg);
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-base);
    color: var(--gold);
    font-weight: var(--font-weight-bold);
    word-break: break-word;
    margin-bottom: var(--space-xs);
}

.book-subtitle {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BOOK SPECS ===== */
.book-specs {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-soft);
}

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

.spec-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.spec-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.05) 0%, rgba(232, 184, 109, 0.1) 100%);
    border: 1px solid rgba(232, 184, 109, 0.2);
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-base);
    font-style: italic;
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}

.testimonial-author {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.testimonial-rating {
    color: var(--gold);
    letter-spacing: 2px;
    text-align: center;
    margin-top: var(--space-sm);
}

/* ===== GUARANTEE CARD ===== */
.guarantee-card {
    text-align: center;
    background: var(--color-success-light);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.guarantee-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.guarantee-card h4 {
    font-size: var(--font-size-base);
    color: var(--warm-black);
    margin-bottom: var(--space-xs);
}

.guarantee-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ===== FOOTER (if needed on this page) ===== */
.footer {
    background: var(--warm-black);
    color: #ffffff;
    padding: var(--space-md) 0;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin: 0;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .form-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .form-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 280px;
    }

    .progress-section {
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    main {
        padding-top: 30px;
    }

    #nextBtn {
        display: none;
    }

    .inline-header {
        margin-bottom: var(--space-sm);
    }

    .inline-header h1 {
        font-size: var(--font-size-lg);
        display: block !important;
        visibility: visible !important;
        margin: var(--space-xs) 0;
    }

    .inline-trust {
        font-size: 10px;
    }

    .progress-section {
        padding: var(--space-sm) 0;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: var(--font-size-xs);
    }

    .step-label {
        display: none;
    }

    .progress-connector {
        margin-bottom: 0;
    }

    .form-section {
        padding: var(--space-sm) 0 var(--space-lg);
    }

    .form-main {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }

    .form-motivation {
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-sm);
    }

    .step-header {
        margin-bottom: var(--space-md);
    }

    .step-header h2 {
        font-size: var(--font-size-lg);
    }

    .form-card {
        padding: var(--space-md);
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: var(--space-sm);
    }

    .form-navigation .btn {
        width: 100%;
    }

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

    .sidebar-card {
        min-width: auto;
    }

    .upload-dropzone {
        padding: var(--space-lg);
    }

    .upload-preview {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-tips {
        display: none;
    }

    .book-cover {
        width: 140px;
        height: 175px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .breadcrumb {
        display: none;
    }

    .inline-header h1 {
        font-size: var(--font-size-base);
        display: block !important;
        visibility: visible !important;
        margin: var(--space-xs) 0;
    }

    .inline-trust {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-xs);
        justify-content: center;
    }

    .trust-divider {
        display: inline;
    }

    .progress-wrapper {
        padding: 0 var(--space-xs);
    }

    .form-main {
        padding: var(--space-sm);
        box-shadow: 0 4px 12px rgba(44,36,32,0.06);
    }

    .form-motivation {
        flex-direction: column;
        gap: 4px;
    }

    .form-card {
        padding: var(--space-sm);
    }

    .book-type-card .card-content {
        padding: var(--space-md);
    }

    .card-icon {
        font-size: 2rem;
    }

    .upload-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .success-timeline {
        padding: var(--space-md);
    }

    .timeline-steps li {
        gap: var(--space-sm);
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--warm-black);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .form-step {
        animation: none;
    }

    .success-icon {
        animation: none;
    }

    .book-cover {
        transform: none;
    }

    .book-mockup:hover .book-cover {
        transform: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .form-input,
    .form-select {
        border-width: 3px;
    }

    .book-type-card .card-content {
        border-width: 3px;
    }

    .upload-dropzone {
        border-width: 4px;
    }

    *:focus-visible {
        outline-width: 4px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav,
    .progress-section,
    .form-navigation,
    .form-sidebar,
    .skip-link,
    .footer {
        display: none !important;
    }

    .form-main {
        box-shadow: none;
        padding: 0;
    }

    .form-step {
        display: block !important;
        page-break-inside: avoid;
    }

    .form-step:not(:last-of-type) {
        border-bottom: 1px solid #ccc;
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
}

/* ===== CROP MODAL STYLES (preserved from original) ===== */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.crop-modal.show {
    opacity: 1;
    visibility: visible;
}

.crop-dialog {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(44,36,32,0.15);
    animation: slideUp 0.3s ease;
}

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

.crop-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.crop-header h2 {
    font-size: var(--font-size-xl);
    color: var(--warm-black);
    margin-bottom: var(--space-xs);
}

.crop-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.crop-canvas-container {
    position: relative;
    margin: 0 auto var(--space-lg);
    max-width: 600px;
    background: var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44,36,32,0.06);
}

.crop-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: default;
}

.crop-controls {
    margin-bottom: var(--space-lg);
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--soft-cream);
    border-radius: var(--radius-lg);
}

.zoom-control svg,
.zoom-control i,
.zoom-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--gold);
}

.zoom-label {
    font-weight: var(--font-weight-semibold);
    color: var(--warm-black);
    flex-shrink: 0;
}

.zoom-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border-soft);
    outline: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212,162,76,0.3);
}

.zoom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 20px rgba(212,162,76,0.3);
}

.zoom-reset {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--border-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.zoom-reset:hover {
    background: #e0e0e0;
}

.crop-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-crop {
    flex: 1;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    font-family: inherit;
}

.btn-crop-cancel {
    background: var(--border-soft);
    color: var(--text-primary);
}

.btn-crop-cancel:hover {
    background: #e0e0e0;
}

.btn-crop-upload {
    background: var(--gold);
    color: var(--warm-black);
}

.btn-crop-upload:hover {
    background: var(--gold-dark);
    box-shadow: 0 4px 20px rgba(212,162,76,0.3);
}

/* Crop Modal Mobile */
@media (max-width: 768px) {
    .progress-section {
        display: none;
    }

    .crop-modal {
        align-items: stretch;
    }

    .crop-dialog {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        padding: var(--space-sm) var(--space-sm) var(--space-md);
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .crop-header {
        margin-bottom: var(--space-xs);
    }

    .crop-header h2 {
        font-size: var(--font-size-lg);
        margin-bottom: 2px;
    }

    .crop-subtitle {
        font-size: var(--font-size-sm);
    }

    .crop-canvas-container {
        width: calc(100vw - 2 * var(--space-sm));
        height: calc(100vw - 2 * var(--space-sm));
        max-height: 50dvh;
        max-width: 50dvh;
        flex-shrink: 0;
        margin: 0 auto var(--space-sm);
    }

    .crop-controls {
        margin-bottom: var(--space-sm);
    }

    .zoom-control {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
    }

    .zoom-label {
        font-size: var(--font-size-sm);
    }

    .crop-actions {
        flex-direction: row;
        gap: var(--space-sm);
    }
}

/* Hide subtitle + gesture hint when detection message is visible */
.crop-header.detection-active .crop-subtitle,
.crop-header.detection-active .crop-gesture-hint {
    display: none;
}

/* Gesture hint subtext */
.crop-gesture-hint {
    color: #f6b500;
    font-size: 0.78rem;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.detection-message {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background: #fef9f0;
    border: 1px solid #f0dbb8;
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-sm);
    margin-top: var(--space-xs);
    line-height: 1.4;
}

/* ===== CROP CORNER HANDLES ===== */
.crop-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 2;
}
.crop-corner--tl { top: 6px; left: 6px; border-top: 2.5px solid rgba(255,255,255,0.7); border-left: 2.5px solid rgba(255,255,255,0.7); border-radius: 3px 0 0 0; }
.crop-corner--tr { top: 6px; right: 6px; border-top: 2.5px solid rgba(255,255,255,0.7); border-right: 2.5px solid rgba(255,255,255,0.7); border-radius: 0 3px 0 0; }
.crop-corner--bl { bottom: 6px; left: 6px; border-bottom: 2.5px solid rgba(255,255,255,0.7); border-left: 2.5px solid rgba(255,255,255,0.7); border-radius: 0 0 0 3px; }
.crop-corner--br { bottom: 6px; right: 6px; border-bottom: 2.5px solid rgba(255,255,255,0.7); border-right: 2.5px solid rgba(255,255,255,0.7); border-radius: 0 0 3px 0; }

/* ===== GESTURE OVERLAY ===== */
.crop-gesture-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.crop-gesture-overlay.show {
    display: flex;
    opacity: 1;
}

.crop-gesture-overlay.fade-out {
    display: flex;
    opacity: 0;
}

.gesture-overlay-content {
    text-align: center;
    color: white;
}

.gesture-icons-row {
    margin-bottom: 12px;
}

.gesture-pinch-svg {
    width: 56px;
    height: 56px;
    animation: gesturePulse 1.5s ease-in-out infinite;
}

@keyframes gesturePulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

.gesture-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

/* Pinch/expand icon next to zoom label */
.zoom-pinch-icon {
    font-size: 16px;
    flex-shrink: 0;
    color: var(--gold);
    display: flex;
    align-items: center;
}

/* Gesture hint icons */
.crop-gesture-hint i {
    font-size: 0.7rem;
    vertical-align: baseline;
}

/* ===== NUDGE ANIMATION ===== */
@keyframes cropNudge {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.crop-nudge canvas {
    animation: cropNudge 0.5s ease-in-out;
}

/* ===== UPLOAD PROGRESS MODAL ===== */
.upload-progress-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.upload-progress-modal.show {
    display: flex;
}

.upload-progress-content {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.upload-progress-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.upload-progress-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-xl);
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
}

.upload-progress-message {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.upload-progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--border-soft);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.upload-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--color-accent));
    border-radius: 100px;
    transition: width 0.3s ease;
}

.upload-progress-percent {
    font-weight: var(--font-weight-semibold);
    color: var(--gold-dark);
    font-size: var(--font-size-lg);
}

/* ===== ERROR MODALS ===== */
.nsfw-error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.nsfw-error-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nsfw-error-content {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 440px;
    width: 90%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(44,36,32,0.15);
    animation: slideUp 0.3s ease;
}

.nsfw-error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: var(--color-error-light);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.nsfw-error-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-xl);
    color: var(--warm-black);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.nsfw-error-message {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    text-align: center;
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
}

.nsfw-error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.nsfw-error-btn {
    flex: 1;
    max-width: 200px;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    background: #ffffff;
    color: var(--text-primary);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    line-height: 1.3;
}

.nsfw-error-btn i {
    font-size: 1.1rem;
}

.nsfw-error-btn:hover {
    background: var(--soft-cream);
    border-color: var(--text-light);
}

.nsfw-error-btn-primary {
    background: var(--gold);
    color: var(--warm-black);
    border-color: var(--gold);
}

.nsfw-error-btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    box-shadow: 0 4px 20px rgba(212,162,76,0.3);
}

/* ===== ENHANCEMENT STYLES ===== */

/* ===== RESUME PROMPT ===== */
.resume-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.resume-prompt.show {
    opacity: 1;
    visibility: visible;
}

.resume-prompt-content {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(44,36,32,0.15);
    animation: slideUp 0.3s ease;
}

.resume-prompt-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.resume-prompt h3 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-xl);
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
}

.resume-prompt p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.resume-prompt-info {
    margin-bottom: var(--space-lg);
}

.resume-step-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--warm-black);
    padding: var(--space-3xs) var(--space-sm);
    border-radius: 100px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.resume-prompt-actions {
    display: flex;
    gap: var(--space-sm);
}

.resume-prompt-actions .btn {
    flex: 1;
}

/* ===== OFFLINE BANNER ===== */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: #ffffff;
    padding: var(--space-sm) var(--space-md);
    z-index: 10002;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(44,36,32,0.08);
}

.offline-banner.show {
    transform: translateY(0);
}

.offline-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.offline-icon {
    font-size: 1.5rem;
}

.offline-message {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offline-message strong {
    font-weight: var(--font-weight-semibold);
}

.offline-message span {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.offline-dismiss {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.offline-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== QUALITY BADGES ===== */
.quality-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.quality-icon {
    font-size: 0.875rem;
}

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

/* ===== IMAGE LOADING OVERLAY ===== */
.image-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.image-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-soft);
    border-top-color: var(--gold);
    border-radius: var(--radius-circle);
    animation: spin 1s linear infinite;
}

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

/* ===== IMAGE ERROR OVERLAY ===== */
.image-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.image-error-message {
    color: #ffffff;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    padding: var(--space-xs);
}

/* ===== VALIDATION STATES ===== */
.form-input.error,
.form-select.error {
    border-color: var(--color-error);
    background: rgba(231, 76, 60, 0.05);
}

.form-input.error:focus,
.form-select.error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

.form-input.valid,
.form-select.valid {
    border-color: var(--color-success);
    background: rgba(39, 174, 96, 0.05);
}

.form-input.valid:focus,
.form-select.valid:focus {
    border-color: var(--color-success);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

.form-error[role="alert"]:not(:empty) {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
    font-size: var(--font-size-xs);
    color: var(--color-error);
    animation: fadeIn 0.2s ease;
}

.form-error[role="alert"]:empty {
    display: none;
}

.form-error[role="alert"]:not(:empty)::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--color-error);
    color: #ffffff;
    border-radius: var(--radius-circle);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

/* ===== PHOTO EXAMPLES EMPTY STATE ===== */
.photo-examples-empty {
    background: var(--soft-cream);
    border: 2px dashed var(--border-soft);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.photo-examples-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    color: var(--gold);
}

.photo-examples-empty h4 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-lg);
    color: var(--warm-black);
    margin-bottom: var(--space-xs);
}

.photo-examples-empty p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.photo-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
}

.photo-example-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(44,36,32,0.04);
    position: relative;
}

.photo-example-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-example-item .example-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    background: rgba(39, 174, 96, 0.9);
    color: #ffffff;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* ===== CAMERA CAPTURE BUTTON ===== */
.camera-capture-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-sm);
    background: var(--soft-cream);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-base);
}

.camera-capture-btn:hover {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--warm-black);
}

.camera-capture-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== TOUCH-FRIENDLY CROP CONTROLS ===== */
@media (pointer: coarse) {
    .crop-canvas-container {
        touch-action: none;
    }

    .zoom-slider {
        height: 12px;
    }

    .zoom-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .zoom-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .zoom-reset {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .crop-actions .btn-crop {
        min-height: 48px;
        font-size: var(--font-size-base);
    }
}

/* ===== RETRY NOTIFICATION ===== */
.retry-notification {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--warm-black);
    color: #ffffff;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(44,36,32,0.08);
    z-index: 10003;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.retry-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.retry-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: var(--radius-circle);
    animation: spin 1s linear infinite;
}

/* ===== PARTIAL SUCCESS BANNER ===== */
.partial-success-banner {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: #ffffff;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.partial-success-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.partial-success-content {
    flex: 1;
}

.partial-success-content strong {
    display: block;
    margin-bottom: var(--space-xs);
}

.partial-success-content p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin: 0;
}

.partial-success-retry {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: var(--space-xs);
}

.partial-success-retry:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== BOOK PREVIEW LIVE UPDATES ===== */
.book-preview-updating {
    position: relative;
}

.book-preview-updating::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: var(--radius-circle);
    animation: pulse 1.5s ease-in-out infinite;
}

.book-cover-transition {
    transition: all 0.4s ease;
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS INDICATORS ===== */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline-color: var(--warm-black);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .resume-prompt-content {
        padding: var(--space-lg);
        width: 95%;
    }

    .resume-prompt-actions {
        flex-direction: column;
    }

    .offline-banner-content {
        padding: 0 var(--space-sm);
    }

    .offline-message {
        font-size: var(--font-size-sm);
    }

    .photo-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .resume-prompt-icon {
        font-size: 2.5rem;
    }

    .resume-prompt h3 {
        font-size: var(--font-size-lg);
    }

    .retry-notification {
        left: var(--space-sm);
        right: var(--space-sm);
        transform: translateX(0) translateY(100px);
    }

    .retry-notification.show {
        transform: translateX(0) translateY(0);
    }
}

/* ===== NEW UX IMPROVEMENTS ===== */

/* ===== CONFETTI CANVAS ===== */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== HERO INTRO SECTION ===== */
.hero-intro {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--soft-cream) 0%, #f5f1e8 50%, #e8e4db 100%);
    padding: var(--space-xl) 0;
    text-align: center;
}

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

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero-preview {
    margin-bottom: var(--space-lg);
}

.sample-book-animation {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.sample-book {
    width: 140px;
    height: 160px;
    perspective: 800px;
    animation: bookFloat 3s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sample-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f8f5f0, #e8e4db);
    border-radius: 0 8px 8px 0;
    box-shadow:
        -5px 0 15px rgba(0,0,0,0.1),
        0 10px 30px rgba(0,0,0,0.15);
    transform: rotateY(-15deg);
    position: relative;
    overflow: hidden;
}

.sample-cover::before {
    content: '\1F43E';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.hero-features i {
    color: var(--color-success);
}

.hero-cta {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-social-proof {
    margin-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid #ffffff;
    font-size: 1rem;
}

.avatar:first-child {
    margin-left: 0;
}

/* ===== PROGRESS SAVED INDICATOR ===== */
.progress-saved {
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-saved i {
    font-size: 14px;
}

/* ===== STEP CELEBRATION ===== */
.step-celebration {
    text-align: center;
    min-height: 24px;
    margin-top: var(--space-xs);
}

.celebration-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-success), #27ae60);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    animation: celebrationPop 0.5s ease;
    opacity: 0;
}

.step-celebration.show .celebration-text {
    opacity: 1;
}

@keyframes celebrationPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== PET TYPE GRID (Visual Selection) ===== */
.pet-type-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-xs);
}

/* Primary Pet Types (Dog & Cat - Prominent) */
.pet-type-primary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.pet-type-large .pet-type-content {
    padding: var(--space-lg) var(--space-md);
    border-width: 3px;
}

.pet-type-large .pet-emoji {
    font-size: 3rem;
    margin-bottom: var(--space-xs);
}

.pet-type-large .pet-label {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}

/* More Pet Types Toggle */
.more-pet-types-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-base);
    margin-bottom: var(--space-sm);
}

.more-pet-types-toggle:hover {
    border-color: var(--gold-light);
    color: var(--warm-black);
    background: rgba(232, 184, 109, 0.05);
}

.more-pet-types-toggle.expanded {
    border-style: solid;
    border-color: var(--gold-light);
    background: rgba(232, 184, 109, 0.05);
}

.more-pet-types-toggle .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.more-pet-types-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Secondary Pet Types (Expandable Grid) */
.pet-type-secondary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--soft-cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    animation: slideDown 0.3s ease;
    margin-bottom: var(--space-sm);
}

.pet-type-secondary .pet-type-content {
    padding: var(--space-xs) var(--space-2xs);
}

.pet-type-secondary .pet-emoji {
    font-size: 1.25rem;
}

.pet-type-secondary .pet-label {
    font-size: var(--font-size-2xs);
}

.pet-type-btn {
    cursor: pointer;
}

.pet-type-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pet-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm);
    background: #ffffff;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.pet-type-btn:hover .pet-type-content {
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.pet-type-btn input[type="radio"]:checked + .pet-type-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.1), rgba(232, 184, 109, 0.2));
    box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.2);
}

.pet-emoji {
    font-size: 1.5rem;
}

.pet-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* ===== OTHER PET TYPES (Expanded Selection) ===== */
.other-pet-types {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--soft-cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    animation: slideDown 0.3s ease;
}

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

.other-pet-types .form-label {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.other-pet-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-xs);
}

.other-pet-btn {
    cursor: pointer;
}

.other-pet-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.other-pet-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) var(--space-2xs);
    background: #ffffff;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.other-pet-btn:hover .other-pet-content {
    border-color: var(--gold-light);
}

.other-pet-btn input[type="radio"]:checked + .other-pet-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.1), rgba(232, 184, 109, 0.2));
    box-shadow: 0 0 0 2px rgba(232, 184, 109, 0.2);
}

.other-pet-content .pet-emoji {
    font-size: 1.25rem;
}

.other-pet-content .pet-label {
    font-size: 10px;
}

/* ===== PET STATUS OPTIONS ===== */
.pet-status-options {
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
}

.pet-status-btn {
    cursor: pointer;
    display: block;
    flex: 1;
}

.pet-status-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pet-status-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: #ffffff;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    height: 100%;
}

.pet-status-btn:hover .pet-status-content {
    border-color: var(--gold-light);
    background: rgba(232, 184, 109, 0.05);
}

.pet-status-btn input[type="radio"]:checked + .pet-status-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.1), rgba(232, 184, 109, 0.2));
    box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.2);
}

.status-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-label {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Mobile: Stack pet status options */
@media (max-width: 480px) {
    .pet-status-content {
        padding: var(--space-sm) var(--space-md);
    }

    .status-emoji {
        font-size: 1.25rem;
    }

    .status-label {
        font-size: var(--font-size-sm);
    }
}

/* ===== INPUT WITH AVATAR ===== */
.input-with-avatar {
    position: relative;
}

.input-with-avatar .form-input {
    padding-right: 50px;
}

.pet-avatar {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.input-with-avatar:focus-within .pet-avatar {
    transform: translateY(-50%) scale(1.2);
}

/* ===== PET NAME ELEVATED FIELD ===== */
.pet-name-group {
    border-top: 1px solid rgba(212, 162, 76, 0.3);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
}

.pet-name-group .pet-name-sub-label {
    color: #E8B84C;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold, 700);
    margin-top: 2px;
    margin-bottom: var(--space-xs);
}

.pet-name-group .form-input.pet-name-input {
    border: 2px solid var(--gold, #d4a24c);
    width: 100%;
}

.pet-name-group .form-input.pet-name-input:focus {
    border-color: var(--gold, #d4a24c);
    box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.15);
}

.pet-name-hint {
    font-style: italic;
    color: var(--color-text-muted);
}

.pet-story-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 14px;
    background: #FFF5DC;
    border: 1px solid #B07D11;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    color: #B07D11;
    font-weight: var(--font-weight-semibold);
}

/* ===== BOOK TYPE CARDS (New Layout with Preview) ===== */
.book-type-card .card-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
}

.card-preview {
    flex-shrink: 0;
}

.preview-book {
    width: 70px;
    height: 85px;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.1);
}

.memorial-preview {
    background: linear-gradient(145deg, #e8e4f5, #d5d0e8);
}

.celebration-preview {
    background: linear-gradient(145deg, #fff5e6, #ffe4b5);
}

.funny-preview {
    background: linear-gradient(145deg, #e6f5e8, #c8e6c9);
}

.preview-icon {
    font-size: 2rem;
}

.card-text {
    flex: 1;
}

.card-text h3 {
    margin-bottom: 4px;
}

.card-text p {
    margin: 0;
    font-size: var(--font-size-sm);
}

.book-type-card .card-badge {
    position: static;
    display: inline-block;
    margin-top: var(--space-xs);
}

.book-type-card .card-check {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-base);
}

.book-type-card input[type="radio"]:checked ~ .card-check {
    opacity: 1;
    transform: scale(1);
}

/* ===== TONE OPTIONS ===== */
.tone-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-soft);
}

.tone-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-base);
    color: var(--warm-black);
    margin-bottom: var(--space-md);
    text-align: center;
}

.tone-options {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.tone-option {
    cursor: pointer;
}

.tone-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.tone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: #ffffff;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    min-width: 90px;
}

.tone-option:hover .tone-content {
    border-color: var(--gold-light);
}

.tone-option input[type="radio"]:checked + .tone-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.1), rgba(232, 184, 109, 0.2));
}

.tone-emoji {
    font-size: 1.5rem;
}

.tone-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

/* ===== EXAMPLE PHOTOS ===== */
/* ===== UPLOAD COUNTER BAR ===== */
.upload-counter {
    margin-top: var(--space-md);
}

.counter-bar {
    width: 100%;
    height: 8px;
    background: var(--border-soft);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.counter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--color-accent));
    border-radius: 100px;
    transition: width 0.3s ease;
}

.counter-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

/* ===== UPLOAD ENCOURAGEMENT ===== */
.upload-encouragement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    animation: encouragePop 0.3s ease;
}

@keyframes encouragePop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== TESTIMONIAL SLIDER ===== */
.testimonial-slider {
    position: relative;
    min-height: 100px;
}

.testimonial {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial.active {
    display: block;
}

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

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-sm);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-soft);
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active {
    background: var(--gold);
}

/* ===== ACTIVITY FEED ===== */
.activity-card h4 {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
}

.activity-card h4 i {
    color: var(--color-success);
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    padding: var(--space-2xs) 0;
    animation: slideInActivity 0.3s ease;
}

@keyframes slideInActivity {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.activity-emoji {
    font-size: 1rem;
}

.activity-item.new {
    background: rgba(110, 176, 157, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-2xs) var(--space-xs);
    margin: 0 calc(var(--space-xs) * -1);
}

/* ===== SUCCESS ENHANCEMENTS ===== */
.success-book-preview {
    margin: var(--space-lg) 0;
    text-align: center;
}

.success-book {
    width: 120px;
    height: 140px;
    margin: 0 auto var(--space-md);
    perspective: 600px;
}

.success-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f8f5f0, #e8e4db);
    border-radius: 0 8px 8px 0;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.15);
    transform: rotateY(-10deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
}

.success-pet-name {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-sm);
    color: var(--warm-black);
    text-align: center;
}

.success-delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.success-delivery i {
    color: var(--gold);
}

/* Share Section */
.share-section {
    margin-bottom: var(--space-md);
}

.share-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.copy {
    background: var(--border-soft);
    color: var(--text-primary);
}

.share-btn:hover {
    transform: scale(1.1);
}

.action-buttons-row {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== KEYBOARD HINT ===== */
.keyboard-hint {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.keyboard-hint kbd {
    background: var(--border-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

/* ===== MOBILE PREVIEW TOGGLE ===== */
.mobile-preview-toggle {
    display: none;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    font-weight: var(--font-weight-medium);
    color: var(--warm-black);
    margin-bottom: var(--space-sm);
}

.mobile-preview-toggle i:first-child {
    margin-right: var(--space-xs);
}

.mobile-preview-toggle i:last-child {
    transition: transform 0.2s ease;
}

.mobile-preview-toggle.open i:last-child {
    transform: rotate(180deg);
}

/* ===== MOBILE STICKY CTA ===== */
/* Hidden on desktop, shown only on mobile via media query */
.mobile-sticky-cta {
    display: none !important;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: #ffffff;
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: var(--z-fixed);
}

.mobile-sticky-cta .btn {
    width: 100%;
}

/* ===== EXIT INTENT MODAL ===== */
.exit-modal {
    max-width: 400px;
    text-align: center;
}

.exit-modal-content {
    padding: var(--space-md);
}

.exit-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.exit-modal h2 {
    font-family: 'Playfair Display', serif;
    color: var(--warm-black);
    margin-bottom: var(--space-xs);
}

.exit-modal p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.exit-progress {
    margin-bottom: var(--space-md);
}

.exit-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-soft);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.exit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--color-accent));
    border-radius: 100px;
}

#exitProgressText {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.exit-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--font-size-sm);
    padding: var(--space-xs);
}

.btn-text:hover {
    color: var(--warm-black);
}

/* ===== TIMELINE IMPROVEMENTS ===== */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.timeline-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-content strong {
    color: var(--warm-black);
    font-size: var(--font-size-sm);
}

.timeline-content span {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

/* ===== MOBILE RESPONSIVE UPDATES ===== */
@media (max-width: 768px) {
    .hero-intro {
        min-height: auto;
        padding: var(--space-lg) 0;
    }

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

    .hero-features {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .pet-type-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pet-type-primary {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .pet-type-large .pet-type-content {
        padding: var(--space-md) var(--space-sm);
    }

    .pet-type-large .pet-emoji {
        font-size: 2.5rem;
    }

    .pet-type-large .pet-label {
        font-size: var(--font-size-sm);
    }

    .pet-type-secondary {
        grid-template-columns: repeat(3, 1fr);
        padding: var(--space-sm);
    }

    .other-pet-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .book-type-card .card-content {
        flex-direction: column;
        text-align: center;
    }

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

    .tone-options {
        flex-wrap: wrap;
    }

    .sidebar-content {
        display: none;
    }

    .mobile-sticky-cta {
        display: flex !important;
    }

    .form-navigation {
        padding-bottom: 80px;
    }

    .keyboard-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .pet-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .other-pet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .other-pet-content {
        padding: 6px 4px;
    }

    .other-pet-content .pet-emoji {
        font-size: 1rem;
    }

    .other-pet-content .pet-label {
        font-size: 9px;
    }

    .pet-type-content {
        padding: var(--space-xs);
    }

    .pet-emoji {
        font-size: 1.25rem;
    }

    .pet-label {
        font-size: 10px;
    }

    .tone-options {
        gap: var(--space-xs);
    }

    .tone-content {
        padding: var(--space-xs);
        min-width: 70px;
    }

    .share-buttons {
        gap: var(--space-xs);
    }

    .action-buttons-row {
        flex-direction: column;
    }

    .action-buttons-row .btn {
        width: 100%;
    }
}

/* Hide the Book Preview section in sidebar */
.sidebar-card.preview-card {
    display: none;
}

/* Center the navigation button on desktop when back button is hidden */
@media (min-width: 769px) {
    .form-navigation {
        justify-content: center;
    }

    /* When back button is hidden, remove it from flow to allow centering */
    .form-navigation #prevBtn[style*="hidden"] {
        display: none;
    }

    .mobile-preview-toggle {
        display: flex;
    }

    .sidebar-card.preview-card {
        display: block;
    }
}

/* ============================================================ */
/* ===== WARM THEME OVERRIDES ===== */
/* ============================================================ */

/* Override body */
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--soft-cream);
    -webkit-font-smoothing: antialiased;
}

/* Primary buttons: warm-black bg with cream text */
.btn-primary {
    background: var(--gold);
    color: var(--warm-black) !important;
    box-shadow: none;
}
.btn-primary .btn-text,
.btn-primary i {
    color: inherit;
}
.btn-primary:hover:not(:disabled) {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(150,116,77,0.25);
}

/* Secondary buttons: outlined */
.btn-secondary {
    background: transparent;
    color: var(--warm-black);
    border: 1.5px solid var(--border-soft);
}
.btn-secondary:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: transparent;
}

/* Progress step circles */
.progress-step.active .step-circle,
.step-indicator.active .step-circle {
    background: var(--gold);
    color: var(--warm-black);
    border-color: var(--gold-dark);
}

/* Form inputs: warm borders and gold focus */
.form-input,
.form-select {
    border: 2px solid var(--border-soft);
    background: #ffffff;
    color: var(--text-primary);
}
.form-input:hover,
.form-select:hover {
    border-color: var(--gold-light);
}
.form-input:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.15);
}

/* Headings use Playfair Display */
.inline-header h1,
.step-header h2,
.sidebar-card h3,
.success-section h2,
.crop-header h2 {
    font-family: 'Playfair Display', serif;
}

/* Hero intro warm gradient */
.hero-intro {
    background: linear-gradient(135deg, var(--soft-cream) 0%, var(--bg-warm) 50%, #e2d6c8 100%);
}

/* Hero title */
.hero-title {
    font-family: 'Playfair Display', serif;
    color: var(--warm-black);
}

/* Hero CTA matches index.html style */
.hero-cta {
    background: var(--warm-black);
    color: var(--warm-cream);
    border-radius: 100px;
}
.hero-cta:hover {
    background: var(--gold-dark);
}

/* Form card */
.form-card {
    background: var(--soft-cream);
}

/* Form main */
.form-main {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(44,36,32,0.08);
}

/* Sidebar cards */
.sidebar-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(44,36,32,0.06);
}

/* Testimonial card */
.testimonial-card {
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.05) 0%, rgba(212, 162, 76, 0.1) 100%);
    border: 1px solid rgba(212, 162, 76, 0.2);
    margin-bottom: var(--space-md);
}

/* Guarantee card warm */
.sidebar-card.guarantee-card {
    text-align: left !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    padding: 0 !important;
    overflow: hidden;
}
.sidebar-card.guarantee-card .gc-topbar {
    background: #1a1613;
    color: #d4a24c;
    display: flex !important;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    flex-wrap: wrap;
    text-align: center;
}
.gc-topbar span {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}
.gc-topbar i { font-size: 0.75rem; }
.sidebar-card.guarantee-card .gc-trust {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    text-align: left !important;
}
.gc-trust i.fa-star { color: #d4a24c; font-size: 0.85rem; }
.gc-trust strong { color: #1a1613; }
.gc-trust span { color: #7a7067; }
.sidebar-card.guarantee-card .gc-benefits {
    display: flex !important;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.5rem 1rem 1.2rem;
    text-align: left !important;
}
.sidebar-card.guarantee-card .gc-benefit {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left !important;
}
.gc-benefit > i {
    font-size: 1rem;
    color: #d4a24c;
    flex-shrink: 0;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}
.sidebar-card.guarantee-card .gc-benefit h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1613;
    margin-bottom: 0.15rem;
    text-align: left !important;
}
.sidebar-card.guarantee-card .gc-benefit p {
    font-size: 0.82rem;
    color: #7a7067;
    line-height: 1.5;
    margin: 0;
    text-align: left !important;
}

/* Benefits in preview card */
.sidebar-card.preview-card .gc-benefits {
    display: flex !important;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0;
    text-align: left !important;
}
.sidebar-card.preview-card .gc-benefit {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left !important;
}
.sidebar-card.preview-card .gc-benefit > i {
    font-size: 1rem;
    color: #d4a24c;
    flex-shrink: 0;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}
.sidebar-card.preview-card .gc-benefit h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1613;
    margin-bottom: 0.15rem;
    text-align: left !important;
}
.sidebar-card.preview-card .gc-benefit p {
    font-size: 0.82rem;
    color: #7a7067;
    line-height: 1.5;
    margin: 0;
    text-align: left !important;
}

/* Preview example image */
.preview-example-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.preview-example-caption {
    font-size: 0.75rem;
    color: #7a7067;
    text-align: center;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Book cover in sidebar */
.book-cover {
    background: linear-gradient(135deg, var(--warm-black) 0%, var(--deep-brown) 100%);
}

/* Book title gold */
.book-title {
    color: var(--gold);
}

/* Upload dropzone */
.upload-dropzone:hover {
    border-color: var(--gold);
    background: rgba(212, 162, 76, 0.05);
}

/* Pet type selection */
.pet-type-btn input[type="radio"]:checked + .pet-type-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.1), rgba(212, 162, 76, 0.2));
    box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.2);
}

/* Pet status selection */
.pet-status-btn input[type="radio"]:checked + .pet-status-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.1), rgba(212, 162, 76, 0.2));
    box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.2);
}

/* Crop buttons */
.btn-crop-upload {
    background: var(--warm-black);
    color: var(--warm-cream);
}
.btn-crop-upload:hover {
    background: var(--gold-dark);
}

/* Create button */
.create-btn {
    background: var(--warm-black);
    color: var(--warm-cream);
}

/* Progress bar fill */
.progress-bar-fill,
.counter-fill,
.upload-progress-bar-fill,
.exit-progress-fill {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Step badge */
.step-badge {
    background: var(--gold-light);
    color: var(--warm-black);
}

/* Dot active */
.dot.active {
    background: var(--gold);
}

/* Testimonial rating */
.testimonial-rating {
    color: var(--gold);
}

/* Footer override for this page - was previously dark bg */
.footer {
    background: transparent;
    color: var(--text-light);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-soft);
}
.footer p {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Skip link */
.skip-link {
    background: var(--warm-black);
    color: var(--warm-cream);
}

/* Focus indicators */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* File count indicator */
.file-count-indicator {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.file-count-indicator.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.file-count-indicator.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.file-count-indicator.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* ===== PHOTO PREP HINT (Fix 1) ===== */
.photo-prep-hint {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: linear-gradient(135deg, rgba(212, 162, 76, 0.08), rgba(248, 243, 237, 0.6));
    border: 1px solid rgba(212, 162, 76, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.photo-prep-hint i {
    font-size: 20px;
    color: var(--gold);
    margin-top: 1px;
    flex-shrink: 0;
}

/* ===== UPLOAD CONTINUE LATER (Fix 2) ===== */
.upload-continue-later {
    text-align: center;
    margin-top: var(--space-md);
}

.continue-later-text {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.continue-later-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: none;
    border: none;
    color: var(--gold);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.continue-later-btn:hover {
    border-bottom-color: var(--gold);
}

.continue-later-btn:disabled {
    color: var(--text-light);
    cursor: default;
    border-bottom-color: transparent;
}

.continue-later-btn i {
    font-size: 18px;
}

/* ===== WAITING FOR PHOTOS BUTTON STATE (Fix 5) ===== */
.btn-waiting-photos {
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #888 !important;
    cursor: default !important;
    pointer-events: none;
}

/* Upload hint beneath greyed CTA (desktop only) */
.upload-hint {
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    margin-top: var(--space-xs, 8px);
}

/* Mobile upload hint in sticky CTA */
.mobile-upload-hint {
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
    margin: 0 0 var(--space-xs, 8px) 0;
}

/* Solid border on mobile — no drag & drop exists */
@media (max-width: 768px) {
    .upload-dropzone {
        border-style: solid !important;
    }

    /* Hide desktop submit button on mobile when waiting for photos */
    #submitBtn.btn-waiting-photos {
        display: none !important;
    }

    /* Hide desktop upload hint on mobile — shown in sticky CTA instead */
    .upload-hint {
        display: none !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Progressive Disclosure (step 1 reveal sequence)
   ========================================================================== */

/* Hidden by controller at init when feature flag is on */
[data-progressive-field].progressive-hidden {
    display: none !important;
}

/* Revealed state — fade + gentle slide down */
[data-progressive-field].progressive-revealed {
    animation: progressiveReveal 300ms ease-out both;
}

@keyframes progressiveReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* One-shot headline pulse when pet name is first committed */
#form-heading.heading-updated {
    animation: headlinePulse 600ms ease-out;
}

@keyframes headlinePulse {
    0%   { transform: scale(1);    opacity: 0.85; }
    30%  { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    [data-progressive-field].progressive-revealed,
    #form-heading.heading-updated {
        animation: none;
    }
}

/* ── Image Mode Choice (own photos feature) ── */
.image-mode-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.image-mode-option {
    cursor: pointer;
    display: block;
}

.image-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.image-mode-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: #ffffff;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.image-mode-option:hover .image-mode-content {
    border-color: var(--gold-light);
    background: rgba(232, 184, 109, 0.05);
}

.image-mode-option input[type="radio"]:checked + .image-mode-content {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.1), rgba(232, 184, 109, 0.2));
    box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.2);
}

.image-mode-icon {
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.image-mode-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.image-mode-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--warm-black);
}

.image-mode-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .image-mode-options {
        gap: var(--space-xs);
    }
    .image-mode-content {
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
    }
    .image-mode-icon {
        font-size: 1.25rem;
        width: 1.5rem;
    }
    .image-mode-title {
        font-size: 0.9rem;
    }
    .image-mode-desc {
        font-size: 0.8rem;
    }
}
