/* Scanner zone */
.scanner {
    margin-bottom: 16px;
}

/* Hero text */
.hero {
    text-align: center;
    padding: 8px 0 20px;
}
.hero h2 {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text);
}
.hero p {
    font-size: 0.85rem;
    color: var(--text2);
    font-weight: 600;
    line-height: 1.5;
}

/* Hero steps — 3-step visual flow */
.hero-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 8px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.hero-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.hero-step-icon {
    font-size: 1.4rem;
}
.hero-step-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text2);
    text-align: center;
    line-height: 1.3;
}
.hero-step-arrow {
    color: var(--text3);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Primary photo zone — full width, prominent */
.photo-zone--primary {
    min-height: 200px;
    padding: 36px 20px;
    margin-bottom: 12px;
}
.photo-zone--primary .slot-preview img {
    height: 220px;
}

/* Main photo zone — large tap target */
.photo-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--card);
    border: 2.5px dashed var(--fuly-blue);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    -webkit-tap-highlight-color: transparent;
}
.photo-zone:hover {
    border-color: var(--fuly-orange);
    background: #FFF8E1;
}
.photo-zone:active {
    transform: scale(0.98);
}
.photo-zone.captured {
    border-style: solid;
    border-color: var(--green);
    padding: 0;
    min-height: 0;
}

.photo-zone input[type="file"] {
    display: none;
}

.zone-icon {
    color: var(--fuly-blue);
    opacity: 0.7;
}
.zone-icon svg {
    width: 40px;
    height: 40px;
}

/* Extra photos section — shown after primary capture */
.extra-photos {
    margin-bottom: 12px;
}
.extra-photos-header {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text2);
    text-align: center;
    margin-bottom: 10px;
    padding-top: 4px;
}
.extra-photos-options {
    display: flex;
    gap: 10px;
}
.extra-photos-options .btn--extra-photo {
    flex: 1;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 14px 10px;
}
.extra-hint {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text3);
    margin-top: 2px;
}

.zone-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
}

.zone-hint {
    font-size: 0.72rem;
    color: var(--text3);
    font-weight: 600;
    font-style: italic;
}

.zone-tap {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 0.8;
}

/* Extra photo link — UX-003: visible secondary button */
.extra-photo {
    text-align: center;
    padding: 8px 0 4px;
    display: none;
}
.btn--extra-photo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    line-height: 1.4;
    transition: all 0.2s;
}
.btn--extra-photo:hover {
    border-color: var(--fuly-blue);
    background: #F3F8FF;
}
.btn--extra-photo svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--fuly-blue);
}

/* Small secondary photo zone */
.photo-zone--small {
    min-height: 100px;
    padding: 20px 16px;
    gap: 6px;
    border-width: 2px;
}

.zone-icon-sm {
    color: var(--fuly-blue);
    opacity: 0.6;
}
.zone-icon-sm svg {
    width: 32px;
    height: 32px;
}

.zone-title-sm {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text2);
}

.zone-hint-sm {
    font-size: 0.72rem;
    color: var(--text3);
    font-weight: 600;
}

.extra-slot-wrapper {
    margin-bottom: 12px;
}

/* Preview in captured state */
.slot-preview {
    width: 100%;
    height: 100%;
    position: relative;
}
.slot-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
}
.slot-preview .slot-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slot-preview .slot-change {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 20px 8px 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* UX-006: Confirmation text on captured photo */
.slot-confirmed {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* Small preview for extra photo */
.slot-preview--sm img {
    height: 120px;
}
