/* =========================================================
   PHOTO BOOTH - WEDDING THEME
   FINAL CLEAN CSS
========================================================= */

:root {
    --wedding-bg: #f8f4ee;
    --wedding-card: #fffdf9;
    --wedding-text: #4a4038;
    --wedding-muted: #8c8177;
    --wedding-gold: #b89b63;
    --wedding-gold-dark: #9d814e;
    --wedding-gold-light: #dec48c;
    --wedding-border: #e8ded1;
    --wedding-navy: #0c1c31;
    --wedding-navy-2: #142b48;
    --wedding-shadow: 0 18px 50px rgba(92, 72, 48, 0.10);
}


/* =========================================================
   PHOTO PAGE
========================================================= */

#photoPage {
    --navy: #0c1c31;
    --navy-2: #142b48;
    --gold: #b99655;
    --gold-light: #dec48c;
    --cream: #faf7f0;
    --white: #ffffff;
    --text: #172337;
    --muted: #7e8794;

    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px 70px;
    overflow-x: hidden;

    color: var(--wedding-text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(184, 155, 99, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(184, 155, 99, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #faf7f2 0%,
            #f5efe7 50%,
            #fbf8f3 100%
        );
}


/* =========================================================
   BOX SIZING
========================================================= */

#photoPage *,
#photoPage *::before,
#photoPage *::after {
    box-sizing: border-box;
}


/* =========================================================
   VISIBILITY
========================================================= */

#photoPage .photo-step {
    display: block;
    position: relative;
    width: 100%;
    animation: photoFadeIn 0.35s ease both;
}

#photoPage .photo-step.photo-hidden,
#photoPage .photo-hidden {
    display: none !important;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

#photoPage .inner-container {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   DECORATIVE HEART
========================================================= */

#photoPage .inner-container::before {
    content: "♡";

    display: block;
    width: fit-content;

    margin: 0 auto 12px;

    color: var(--wedding-gold);
    font-size: 24px;
    line-height: 1;
}


/* =========================================================
   BRAND
========================================================= */

#photoPage .luxury-photo-brand {
    position: relative;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    margin: 0 auto 18px;

    color: var(--gold);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.23em;

    text-align: center;
}

#photoPage .brand-line {
    width: 34px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--gold)
    );
}

#photoPage .brand-line:last-child {
    background: linear-gradient(
        90deg,
        var(--gold),
        transparent
    );
}


/* =========================================================
   BACK BUTTON
========================================================= */

#photoPage .luxury-back,
#photoPage .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding: 8px 14px;

    border: 1px solid var(--wedding-border);
    border-radius: 12px;

    background: rgba(255, 253, 249, 0.85);

    color: #75685e;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 4px 15px rgba(80, 60, 40, 0.05);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

#photoPage .luxury-back:hover,
#photoPage .back-button:hover {
    transform: translateX(-2px);

    color: var(--wedding-gold-dark);

    border-color: var(--wedding-gold);

    background: #fffdf9;
}


/* =========================================================
   PROGRESS
========================================================= */

#photoPage .photo-progress {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 650px;

    margin: 20px auto 28px;
}

#photoPage .progress-item {
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    opacity: 0.3;
}

#photoPage .progress-item.active,
#photoPage .progress-item.completed {
    opacity: 1;
}

#photoPage .progress-item span {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(12, 28, 49, 0.2);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.8);

    color: var(--navy);

    font-size: 9px;
    font-weight: 800;
}

#photoPage .progress-item.active span {
    border-color: var(--gold);

    background: var(--navy);

    color: white;

    box-shadow:
        0 6px 18px rgba(12, 28, 49, 0.2);
}

#photoPage .progress-item.completed span {
    border-color: var(--gold);
    color: var(--gold);
}

#photoPage .progress-item small {
    color: var(--text);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#photoPage .progress-line {
    flex: 1;

    height: 1px;

    margin: 0 6px;

    background: rgba(12, 28, 49, 0.12);
}

#photoPage .progress-line.completed {
    background: var(--gold);
}


/* =========================================================
   PAGE HEADING
========================================================= */

#photoPage .luxury-heading,
#photoPage .page-heading {
    width: 100%;
    max-width: 680px;

    margin: 0 auto 28px;

    text-align: center;
}

#photoPage .eyebrow,
#photoPage .page-heading .eyebrow {
    margin-bottom: 8px;

    color: var(--wedding-gold-dark);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.23em;
    text-transform: uppercase;
}

#photoPage .luxury-heading h1,
#photoPage .page-heading h1 {
    margin: 9px 0 10px;

    color: #40362f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(30px, 5vw, 48px);
    font-weight: 500;

    line-height: 1.05;
}

#photoPage .luxury-heading p,
#photoPage .page-heading p {
    max-width: 600px;

    margin: 0 auto;

    color: var(--wedding-muted);

    font-size: 13px;
    line-height: 1.7;
}

#photoPage .heading-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 13px 0;
}

#photoPage .heading-divider::before,
#photoPage .heading-divider::after {
    content: "";

    width: 50px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--gold)
    );
}

#photoPage .heading-divider::after {
    background: linear-gradient(
        90deg,
        var(--gold),
        transparent
    );
}

#photoPage .heading-divider span {
    color: var(--gold);
    font-size: 13px;
}


/* =========================================================
   GENERAL CARD
========================================================= */

#photoPage .luxury-card,
#photoPage .card,
#photoPage .photo-card,
#photoPage .step-card {
    position: relative;

    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    padding: 28px;

    border: 1px solid var(--wedding-border);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(250, 247, 240, 0.96)
        );

    box-shadow:
        0 25px 65px rgba(12, 28, 49, 0.10),
        0 2px 8px rgba(12, 28, 49, 0.04);

    backdrop-filter: blur(8px);
}


/* =========================================================
   NAME CARD
========================================================= */

#photoPage .name-card {
    overflow: hidden;
}

#photoPage .card-decoration {
    position: absolute;

    top: -22px;
    right: 25px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--navy);
    color: var(--gold-light);

    font-size: 17px;

    box-shadow:
        0 12px 30px rgba(12, 28, 49, 0.2);
}


/* =========================================================
   LABEL
========================================================= */

#photoPage .input-label,
#photoPage label {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 11px;

    color: #5a4e45;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

#photoPage .label-number {
    color: var(--gold);

    font-family:
        Georgia,
        serif;
}


/* =========================================================
   INPUT
========================================================= */

#photoPage .photo-input,
#photoPage input[type="text"],
#photoPage input[type="email"],
#photoPage input[type="tel"] {
    display: block;

    width: 100%;
    min-height: 55px;

    padding: 14px 17px;

    border: 1px solid #ddd1c3;
    border-radius: 13px;

    outline: none;

    background: #fffefa;
    color: var(--text);

    font-size: 16px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#photoPage .photo-input:focus,
#photoPage input:focus {
    border-color: var(--gold);

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(184, 155, 99, 0.12);
}

#photoPage .photo-input::placeholder,
#photoPage input::placeholder {
    color: #a2a8af;
}

#photoPage .input-hint {
    margin-top: 8px;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   BUTTON GENERAL
========================================================= */

#photoPage button {
    font-family: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

#photoPage button:hover {
    transform: translateY(-1px);
}

#photoPage button:active {
    transform: translateY(0);
}

#photoPage button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   PHOTO BUTTON
========================================================= */

#photoPage .photo-button {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 16px;
    padding: 13px 18px;

    border: 0;
    border-radius: 13px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}


/* =========================================================
   PRIMARY
========================================================= */

#photoPage .luxury-primary,
#photoPage .primary-button {
    border: 1px solid var(--wedding-gold-dark);

    background:
        linear-gradient(
            135deg,
            #c6aa76,
            #aa8b56
        );

    color: white;

    box-shadow:
        0 10px 25px rgba(157, 129, 78, 0.22);
}

#photoPage .luxury-primary:hover,
#photoPage .primary-button:hover {
    box-shadow:
        0 14px 30px rgba(157, 129, 78, 0.28);
}

#photoPage .luxury-primary strong {
    color: var(--gold-light);
    font-size: 18px;
}


/* =========================================================
   SECONDARY
========================================================= */

#photoPage .luxury-secondary {
    border: 1px solid rgba(12, 28, 49, 0.15);

    background: white;
    color: var(--navy);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

#photoPage .luxury-submit {
    border: 1px solid #1c4038;

    background:
        linear-gradient(
            135deg,
            #1c4038,
            #102c27
        );

    color: white;

    box-shadow:
        0 12px 28px rgba(16, 60, 50, 0.18);
}

#photoPage #submitPhotoButton:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}


/* =========================================================
   FOOTER
========================================================= */

#photoPage .luxury-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.19em;

    text-align: center;
}


/* =========================================================
   TEMPLATE SELECTION
========================================================= */

#photoPage .template-selection {
    width: 100%;

    margin: 25px auto 0;
}


/* =========================================================
   TEMPLATE SLIDER
========================================================= */

#photoPage .template-grid {
    display: flex;

    align-items: center;

    gap: 18px;

    width: 100%;

    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 35px calc(50% - 125px) 45px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    cursor: grab;
}

#photoPage .template-grid::-webkit-scrollbar {
    display: none;
}

#photoPage .template-grid:active {
    cursor: grabbing;
}


/* =========================================================
   TEMPLATE CARD
========================================================= */

#photoPage .template-card {
    position: relative;

    flex: 0 0 250px;

    width: 250px;
    min-width: 250px;

    padding: 14px;

    border: 1px solid #e5d8c9;
    border-radius: 20px;

    background: #fffdf9;
    color: var(--text);

    text-align: left;

    cursor: pointer;

    scroll-snap-align: center;

    box-shadow:
        0 8px 25px rgba(80, 60, 40, 0.08);

    transform: scale(0.82);

    opacity: 0.65;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    transform-origin: center center;
}


/* =========================================================
   TEMPLATE AKTIF / TENGAH
========================================================= */

#photoPage .template-card.active,
#photoPage .template-card.selected {
    transform: scale(1.08);

    opacity: 1;

    z-index: 3;

    border-color: #b89b63;

    box-shadow:
        0 0 0 3px rgba(184, 155, 99, 0.16),
        0 18px 40px rgba(80, 60, 40, 0.16);
}


/* =========================================================
   TEMPLATE IMAGE
========================================================= */

#photoPage .template-image-wrap {
    position: relative;

    overflow: hidden;

    border-radius: 14px;

    background: #eee;
}

#photoPage .template-image-wrap img,
#photoPage .template-card img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 14px;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

#photoPage .template-card:hover img {
    transform: scale(1.02);
}


/* =========================================================
   TEMPLATE CHECK
========================================================= */

#photoPage .template-check {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gold);
    color: white;

    font-size: 12px;
    font-weight: 800;

    opacity: 0;

    transform: scale(0.7);

    transition: 0.2s ease;
}

#photoPage .template-card.selected .template-check,
#photoPage .template-card.active .template-check {
    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   TEMPLATE SELECTED BADGE
========================================================= */

#photoPage .template-card.selected::after,
#photoPage .template-card.active::after {
    content: "✓ Dipilih";

    position: absolute;

    top: 12px;
    right: 12px;

    padding: 6px 10px;

    border-radius: 20px;

    background: #b89b63;
    color: white;

    font-size: 11px;
    font-weight: 700;

    box-shadow:
        0 5px 12px rgba(80, 60, 40, 0.15);
}


/* =========================================================
   TEMPLATE INFO
========================================================= */

#photoPage .template-card-info {
    display: grid;

    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;

    column-gap: 8px;

    padding: 11px 3px 3px;
}

#photoPage .template-number {
    grid-row: 1 / 3;

    color: var(--gold);

    font-family:
        Georgia,
        serif;

    font-size: 13px;
}

#photoPage .template-name,
#photoPage .template-title {
    color: #51463e;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-weight: 600;

    text-align: center;
}

#photoPage .template-photo-count {
    margin-top: 3px;

    color: var(--muted);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.15em;
}


/* =========================================================
   SLIDER HINT
========================================================= */

#photoPage .template-slider-hint {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 8px;

    color: #9a8b7d;

    font-size: 12px;
}

#photoPage .template-slider-hint::before {
    content: "←";

    font-size: 16px;
}

#photoPage .template-slider-hint::after {
    content: "→";

    font-size: 16px;
}


/* =========================================================
   CAMERA
========================================================= */

#photoPage .camera-stage {
    position: relative;

    width: 100%;
    max-width: 720px;

    margin: 0 auto;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    border-radius: 22px;

    background: #060b12;

    box-shadow:
        0 25px 60px rgba(12, 28, 49, 0.2);
}

#photoPage #cameraVideo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scaleX(-1);

    background: #060b12;
}

#photoPage .camera-stage::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22),
            transparent 25%,
            transparent 70%,
            rgba(0, 0, 0, 0.35)
        );
}


/* =========================================================
   CAMERA CORNERS
========================================================= */

#photoPage .camera-corner {
    position: absolute;

    z-index: 5;

    width: 34px;
    height: 34px;

    border-color: rgba(255, 255, 255, 0.9);

    pointer-events: none;
}

#photoPage .corner-tl {
    top: 15px;
    left: 15px;

    border-top: 2px solid;
    border-left: 2px solid;
}

#photoPage .corner-tr {
    top: 15px;
    right: 15px;

    border-top: 2px solid;
    border-right: 2px solid;
}

#photoPage .corner-bl {
    bottom: 15px;
    left: 15px;

    border-bottom: 2px solid;
    border-left: 2px solid;
}

#photoPage .corner-br {
    bottom: 15px;
    right: 15px;

    border-bottom: 2px solid;
    border-right: 2px solid;
}


/* =========================================================
   SWITCH CAMERA
========================================================= */

#photoPage .switch-camera-button {
    position: absolute;

    z-index: 10;

    top: 15px;
    right: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 34px;

    padding: 7px 10px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    background: rgba(6, 11, 18, 0.58);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    color: white;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.04em;

    cursor: pointer;
}

#photoPage .switch-camera-button span:first-child {
    font-size: 16px;
    line-height: 1;
}

#photoPage .switch-camera-button:hover {
    background: rgba(6, 11, 18, 0.78);
    transform: translateY(-1px);
}

#photoPage .switch-camera-button:active {
    transform: scale(0.97);
}

#photoPage .switch-camera-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* =========================================================
   CAMERA LABEL
========================================================= */

#photoPage .camera-top-label {
    position: absolute;

    z-index: 6;

    top: 16px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 7px;

    color: white;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.17em;

    white-space: nowrap;
}

#photoPage .live-dot {
    color: #ff6d6d;
}

#photoPage .camera-bottom-label {
    position: absolute;

    z-index: 6;

    bottom: 16px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 9px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.2em;

    white-space: nowrap;
}


/* =========================================================
   COUNTDOWN
========================================================= */

#photoPage .countdown-overlay {
    position: absolute;

    inset: 0;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(5, 12, 22, 0.3);

    pointer-events: none;
}

#photoPage .countdown-overlay span {
    width: 120px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;

    background: rgba(12, 28, 49, 0.45);

    color: white;

    font-family:
        Georgia,
        serif;

    font-size: 75px;
}


/* =========================================================
   CAMERA ERROR
========================================================= */

#photoPage .camera-error {
    width: 100%;
    max-width: 720px;

    margin: 12px auto 0;
    padding: 13px 15px;

    border: 1px solid #fecaca;
    border-radius: 12px;

    background: #fff1f2;
    color: #991b1b;

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   CAMERA PROGRESS
========================================================= */

#photoPage .camera-progress-card {
    width: 100%;
    max-width: 720px;

    margin: 13px auto 0;
    padding: 14px 16px;

    border: 1px solid rgba(185, 150, 85, 0.17);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.82);
}

#photoPage .camera-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.15em;
}

#photoPage .camera-progress-top strong {
    color: var(--navy);

    font-family:
        Georgia,
        serif;

    font-size: 17px;

    letter-spacing: 0;
}

#photoPage .camera-progress-top small {
    margin: 0 3px;

    color: var(--gold);
}

#photoPage .camera-progress-track {
    width: 100%;
    height: 3px;

    margin-top: 10px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(12, 28, 49, 0.08);
}

#photoPage .camera-progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--navy),
            var(--gold)
        );

    transition: width 0.3s ease;
}

#photoPage .camera-progress-caption {
    margin-top: 8px;

    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   CAPTURE BUTTON
========================================================= */

#photoPage .capture-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    margin: 16px auto 0;

    padding: 7px;

    border: 0;

    background: transparent;
    color: var(--navy);

    cursor: pointer;
}

#photoPage .capture-ring {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--gold);
    border-radius: 50%;

    transition: 0.2s ease;
}

#photoPage .capture-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--navy);
    color: white;

    font-size: 18px;

    box-shadow:
        0 8px 20px rgba(12, 28, 49, 0.2);
}

#photoPage .capture-text {
    font-size: 13px;
    font-weight: 800;
}

#photoPage .capture-button:hover .capture-ring {
    transform: scale(1.06);
}


/* =========================================================
   CAPTURED PHOTOS
========================================================= */

#photoPage .captured-wrapper {
    width: 100%;
    max-width: 720px;

    margin: 23px auto 0;
}


/* =========================================================
   CAPTURED SECTION TITLE
========================================================= */

#photoPage .section-mini-heading {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 12px;
}

#photoPage .section-mini-heading span {
    flex: 1;

    height: 1px;

    background: rgba(12, 28, 49, 0.12);
}

#photoPage .section-mini-heading h3 {
    margin: 0;

    color: var(--navy);

    font-family:
        Georgia,
        serif;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}


/* =========================================================
   CAPTURED PHOTO CONTAINER
========================================================= */

#photoPage #capturedPhotos {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    width: 100%;

    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   INDIVIDUAL CAPTURED PHOTO
========================================================= */

#photoPage .captured-item {
    flex: 0 0 180px;

    width: 180px;
    height: 135px;

    overflow: hidden;

    border: 1px solid rgba(185, 150, 85, 0.20);
    border-radius: 10px;

    background: #eee;

    box-shadow:
        0 5px 15px rgba(80, 60, 40, 0.08);
}


/* =========================================================
   CAPTURED PHOTO IMAGE
========================================================= */

#photoPage .captured-item img,
#photoPage .captured-photo-item {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    margin: 0;
    padding: 0;

    object-fit: cover;

    border: 0;
    border-radius: 9px;

    background: #eee;
}


/* =========================================================
   PREVIEW CARD
========================================================= */

#photoPage .preview-card {
    overflow: hidden;
}

#photoPage .preview-top-label {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-bottom: 17px;

    color: var(--gold);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.2em;
}

#photoPage .preview-photo-container {
    position: relative;

    width: 100%;

    margin: 0 auto;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    overflow: visible;

    background: transparent;

    border: 0;

    box-shadow: none;
}


/* =========================================================
   NORMAL PREVIEW IMAGE
========================================================= */

#photoPage .preview-composite {
    display: block;

    width: 100%;
    max-width: 520px;

    height: auto;

    margin: 0 auto;

    border-radius: 15px;

    box-shadow:
        0 20px 45px rgba(12, 28, 49, 0.17);
}


/* =========================================================
   PREVIEW NAME
========================================================= */

#photoPage .preview-name {
    width: 100%;

    margin-top: 17px;
    padding: 15px 5px;

    border-top: 1px solid rgba(12, 28, 49, 0.1);
    border-bottom: 1px solid rgba(12, 28, 49, 0.1);

    text-align: center;
}

#photoPage .preview-name-label {
    display: block;

    margin-bottom: 6px;

    color: var(--gold);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.18em;
}

#photoPage .preview-name strong {
    display: block;

    color: var(--navy);

    font-family:
        Georgia,
        serif;

    font-size: 22px;
    font-weight: 500;

    line-height: 1.3;

    overflow-wrap: anywhere;
}


/* =========================================================
   VOICE NOTE
========================================================= */

#photoPage .voice-note-box {
    width: 100%;

    margin-top: 17px;
    padding: 18px;

    border: 1px solid rgba(185, 150, 85, 0.17);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #fbfaf7,
            #f1eee6
        );
}

#photoPage .voice-note-header {
    display: flex;
    align-items: center;

    gap: 11px;
}

#photoPage .voice-note-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--navy);
    color: white;

    font-size: 18px;

    box-shadow:
        0 7px 18px rgba(12, 28, 49, 0.17);
}

#photoPage .voice-note-title {
    color: var(--navy);

    font-family:
        Georgia,
        serif;

    font-size: 16px;
}

#photoPage .voice-note-subtitle {
    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
    line-height: 1.4;
}

#photoPage .voice-recording-status {
    margin-top: 14px;
    padding: 10px;

    border: 1px solid rgba(12, 28, 49, 0.08);
    border-radius: 10px;

    background: white;
    color: var(--muted);

    text-align: center;

    font-size: 10px;
}

#photoPage .voice-timer {
    margin-top: 13px;

    color: var(--navy);

    font-family:
        Georgia,
        serif;

    font-size: 29px;

    text-align: center;

    letter-spacing: 0.06em;
}

#photoPage .voice-duration-info {
    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;

    text-align: center;
}

#photoPage .voice-preview-wrapper {
    width: 100%;

    margin-top: 12px;
    padding: 8px;

    border: 1px solid rgba(12, 28, 49, 0.08);
    border-radius: 10px;

    background: white;
}

#photoPage .voice-preview-wrapper audio {
    display: block;

    width: 100%;
    height: 38px;
}

#photoPage .voice-button {
    width: 100%;
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 10px;
    padding: 11px;

    border: 0;
    border-radius: 11px;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

#photoPage .voice-button:hover {
    transform: translateY(-1px);
}

#photoPage .voice-record-button {
    background: var(--navy);
    color: white;
}

#photoPage .voice-stop-button {
    background: #9c2b2b;
    color: white;
}

#photoPage .voice-remove-button {
    width: 100%;
    min-height: 36px;

    margin-top: 6px;
    padding: 7px;

    border: 0;

    background: transparent;
    color: #a32929;

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}


/* =========================================================
   PREVIEW ACTIONS
   SEMUA TOMBOL SAMA BENTUK & UKURAN
========================================================= */

#photoPage .preview-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;

    width: 100%;
    max-width: 720px;

    margin: 17px auto 0;

    gap: 12px;

    flex-wrap: nowrap;
}

#photoPage .preview-actions .photo-button {
    flex: 1 1 0;

    width: 100%;
    min-width: 0;

    min-height: 52px;

    margin: 0;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 14px;
}


/* =========================================================
   AMBIL FOTO ULANG
========================================================= */

#photoPage .preview-actions .luxury-secondary {
    border: 1px solid #ded5ca;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eee8df
        );

    color: #6f6256;

    box-shadow:
        0 6px 18px rgba(70, 55, 40, 0.10);
}

#photoPage .preview-actions .luxury-secondary:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #e8dfd3
        );

    box-shadow:
        0 10px 24px rgba(70, 55, 40, 0.15);
}


/* =========================================================
   DOWNLOAD FOTO
========================================================= */

#photoPage .preview-actions .download-photo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 52px;

    padding: 0 18px;

    border: 1px solid #d9c8b2;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #fffaf2,
            #eee2d1
        );

    color: #6f5638;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(70, 55, 40, 0.10);
}

#photoPage .download-photo-button .download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: 700;

    line-height: 1;

    color: #6f5638;

    transform: translateY(-1px);
}

#photoPage .download-photo-button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f2e8da
        );

    box-shadow:
        0 10px 24px rgba(70, 55, 40, 0.15);
}

#photoPage .download-photo-button:active {
    transform: translateY(0) scale(0.98);
}

#photoPage .download-photo-button:focus-visible {
    outline: 2px solid rgba(111, 86, 56, 0.45);
    outline-offset: 3px;
}


/* =========================================================
   KIRIM FOTO & VOICE NOTE
========================================================= */

#photoPage .preview-actions .luxury-submit {
    border: 1px solid #1c4038;

    background:
        linear-gradient(
            135deg,
            #1c4038,
            #102c27
        );

    color: white;

    box-shadow:
        0 6px 18px rgba(16, 60, 50, 0.18);
}

#photoPage .preview-actions .luxury-submit:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #245247,
            #163a33
        );

    box-shadow:
        0 10px 25px rgba(16, 60, 50, 0.25);
}

#photoPage .preview-actions .photo-button:active {
    transform: translateY(0) scale(0.98);
}

#photoPage .preview-actions .photo-button:focus-visible {
    outline: 2px solid rgba(184, 155, 99, 0.65);
    outline-offset: 3px;
}

#photoPage .preview-actions .photo-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}


/* =========================================================
   DOWNLOAD STATUS
========================================================= */

#photoPage .download-photo-status {
    width: 100%;
    max-width: 700px;

    margin: 8px auto 0;

    display: none;

    color: #8a765c;

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   SUBMIT STATUS
========================================================= */

#photoPage .photo-submit-status,
#photoSubmitStatus {
    width: 100%;
    max-width: 700px;

    margin: 15px auto 0;
    padding: 14px 18px;

    border-radius: 12px;

    text-align: center;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.5;

    box-sizing: border-box;
}


/* =========================================================
   SUBMIT SUCCESS
========================================================= */

#photoPage #photoSubmitStatus.success,
#photoSubmitStatus.success {
    display: block;

    background: #dcfce7;
    color: #166534;

    border: 1px solid #86efac;
}


/* =========================================================
   SUBMIT ERROR
========================================================= */

#photoPage #photoSubmitStatus.error,
#photoSubmitStatus.error {
    display: block;

    background: #fee2e2;
    color: #991b1b;

    border: 1px solid #fca5a5;
}


/* =========================================================
   BACK TO START
========================================================= */

#photoPage #backToStartButton {
    display: none;

    margin: 15px auto 0;
}


/* =========================================================
   PHOTOBOOTH PRINT PREVIEW
   ANIMASI FOTO KELUAR DARI MESIN
========================================================= */


/* =========================================================
   PRINT PREVIEW STAGE
========================================================= */

#photoPage .print-preview-stage {
    position: relative;

    width: 100%;
    max-width: 520px;

    margin: 5px auto 40px;
    padding-top: 78px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    overflow: visible;
}


/* =========================================================
   BODY PRINTER
========================================================= */

#photoPage .printer-machine {
    position: absolute;

    top: 5px;
    left: 50%;

    transform: translateX(-50%);

    width: 245px;
    height: 70px;

    border-radius: 18px 18px 9px 9px;

    background:
        linear-gradient(
            145deg,
            #faf7f0,
            #e9e0d4
        );

    border: 1px solid rgba(130, 111, 96, 0.15);

    box-shadow:
        0 8px 20px rgba(55, 42, 32, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    z-index: 10;
}


/* =========================================================
   BRAND PRINTER
========================================================= */

#photoPage .printer-brand {
    position: absolute;

    top: 15px;
    left: 18px;

    z-index: 3;

    display: flex;
    align-items: center;

    gap: 8px;

    color: #806f60;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.08em;
}


/* =========================================================
   ICON CAMERA PRINTER
========================================================= */

#photoPage .printer-camera-icon {
    position: relative;

    width: 15px;
    height: 11px;

    border: 2px solid #806f60;
    border-radius: 3px;
}

#photoPage .printer-camera-icon::before {
    content: "";

    position: absolute;

    width: 5px;
    height: 4px;

    left: 3px;
    top: -5px;

    border-radius: 2px 2px 0 0;

    background: #806f60;
}

#photoPage .printer-camera-icon::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    left: 3px;
    top: 1px;

    border-radius: 50%;

    background: #806f60;
}


/* =========================================================
   LAMPU PRINTER
========================================================= */

#photoPage .printer-light {
    position: absolute;

    right: 18px;
    top: 17px;

    width: 9px;
    height: 9px;

    z-index: 3;

    border-radius: 50%;

    background: #b79c82;

    box-shadow:
        0 0 7px rgba(183, 156, 130, 0.45);
}


/* =========================================================
   BAGIAN BAWAH PRINTER
========================================================= */

#photoPage .printer-bottom {
    position: absolute;

    left: 50%;
    bottom: -8px;

    transform: translateX(-50%);

    width: 88%;
    height: 14px;

    border-radius: 0 0 10px 10px;

    background: #e3ddd6;

    z-index: 2;
}


/* =========================================================
   SLOT KERTAS PRINTER
========================================================= */

#photoPage .printer-slot {
    position: absolute;

    top: 55px;
    left: 50%;

    transform: translateX(-50%);

    width: 205px;
    height: 16px;

    border-radius: 4px;

    background: #292929;

    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.15);

    z-index: 12;
}

#photoPage .printer-slot::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    top: 4px;

    height: 2px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   AREA KERTAS
========================================================= */

#photoPage .print-paper-wrapper {
    position: relative;

    width: 235px;
    min-height: 100px;

    padding-top: 8px;

    display: flex;
    justify-content: center;

    overflow: hidden;

    z-index: 5;
}


/* =========================================================
   FOTO HASIL PRINT
========================================================= */

#photoPage .preview-composite-image {
    display: block;

    width: 215px;
    max-width: 215px;

    height: auto;

    margin: 0;

    object-fit: contain;

    background: #ffffff;

    border: 0;
    border-radius: 0;

    box-shadow:
        0 14px 25px rgba(55, 42, 32, 0.15);

    opacity: 1;

    transform: translateY(0);

    transform-origin: top center;

    will-change:
        transform,
        opacity,
        filter;
}


/* =========================================================
   ANIMASI FOTO KELUAR DARI PRINTER
========================================================= */

#photoPage .print-preview-stage.is-printing .preview-composite-image {
    animation:
        photoPrintOut
        2.8s
        cubic-bezier(0.22, 0.61, 0.36, 1)
        forwards;
}

@keyframes photoPrintOut {
    0% {
        transform: translateY(-110%);
        opacity: 0;
        filter: brightness(0.75);
    }

    8% {
        opacity: 1;
    }

    25% {
        transform: translateY(-72%);
        filter: brightness(0.85);
    }

    50% {
        transform: translateY(-38%);
        filter: brightness(0.93);
    }

    70% {
        transform: translateY(-18%);
        filter: brightness(0.97);
    }

    88% {
        transform: translateY(-4%);
        filter: brightness(1);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: brightness(1);
    }
}


/* =========================================================
   STATUS PRINTING
========================================================= */

#photoPage .printing-status {
    margin-top: 18px;

    text-align: center;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: #9a8875;

    opacity: 0;

    transform: translateY(-5px);
}


/* =========================================================
   STATUS MUNCUL SAAT PRINTING
========================================================= */

#photoPage .print-preview-stage.is-printing .printing-status {
    animation:
        printingStatusIn
        0.5s
        ease
        0.2s
        forwards;
}

@keyframes printingStatusIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   PRINT COMPLETE
========================================================= */

#photoPage .print-preview-stage.print-complete .preview-composite-image {
    opacity: 1;
    transform: translateY(0);
    filter: none;
    animation: none;
}

#photoPage .print-preview-stage.print-complete .printing-status {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}


/* =========================================================
   BAYANGAN KERTAS
========================================================= */

#photoPage .paper-shadow {
    position: absolute;

    left: 50%;
    bottom: -13px;

    width: 175px;
    height: 20px;

    transform:
        translateX(-50%)
        scale(0.7);

    border-radius: 50%;

    background: rgba(55, 40, 30, 0.13);

    filter: blur(10px);

    opacity: 0;

    pointer-events: none;

    z-index: 1;
}

#photoPage .print-preview-stage.is-printing .paper-shadow {
    animation:
        paperShadowIn
        2.8s
        ease
        forwards;
}

@keyframes paperShadowIn {
    0% {
        opacity: 0;

        transform:
            translateX(-50%)
            scale(0.7);
    }

    70% {
        opacity: 0.10;
    }

    100% {
        opacity: 0.18;

        transform:
            translateX(-50%)
            scale(1);
    }
}


/* =========================================================
   PRINT COMPLETE SHADOW
========================================================= */

#photoPage .print-preview-stage.print-complete .paper-shadow {
    opacity: 0.18;

    transform:
        translateX(-50%)
        scale(1);

    animation: none;
}


/* =========================================================
   MOBILE PRINT PREVIEW
========================================================= */

@media (max-width: 700px) {

    #photoPage .print-preview-stage {
        max-width: 100%;

        margin-top: 0;
        margin-bottom: 25px;

        padding-top: 65px;
    }

    #photoPage .printer-machine {
        width: 190px;
        height: 57px;

        border-radius:
            15px 15px 7px 7px;
    }

    #photoPage .printer-brand {
        top: 12px;
        left: 15px;

        font-size: 8px;
        gap: 6px;
    }

    #photoPage .printer-camera-icon {
        width: 13px;
        height: 10px;
    }

    #photoPage .printer-camera-icon::before {
        width: 4px;
        height: 3px;

        left: 3px;
        top: -4px;
    }

    #photoPage .printer-camera-icon::after {
        width: 4px;
        height: 4px;

        left: 3px;
        top: 2px;
    }

    #photoPage .printer-light {
        width: 8px;
        height: 8px;

        right: 15px;
        top: 14px;
    }

    #photoPage .printer-bottom {
        bottom: -7px;
        height: 12px;
    }

    #photoPage .printer-slot {
        top: 47px;

        width: 158px;
        height: 14px;
    }

    #photoPage .print-paper-wrapper {
        width: 215px;

        padding-top: 5px;
    }

    #photoPage .preview-composite-image {
        width: 180px;
        max-width: 180px;
    }

    #photoPage .printing-status {
        margin-top: 14px;

        font-size: 8px;

        letter-spacing: 0.15em;
    }

    #photoPage .paper-shadow {
        width: 155px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    #photoPage {
        padding: 25px 14px 50px;
    }


    /* CONTAINER */

    #photoPage .inner-container {
        padding: 0;
    }


    /* BRAND */

    #photoPage .luxury-photo-brand {
        margin-bottom: 8px;

        font-size: 6.5px;

        letter-spacing: 0.17em;
    }

    #photoPage .brand-line {
        width: 20px;
    }


    /* BACK */

    #photoPage .luxury-back,
    #photoPage .back-button {
        min-height: 36px;

        padding: 7px 11px;

        font-size: 10px;
    }


    /* PROGRESS */

    #photoPage .photo-progress {
        margin: 9px auto 13px;
    }

    #photoPage .progress-item span {
        width: 24px;
        height: 24px;

        font-size: 7px;
    }

    #photoPage .progress-item small {
        font-size: 6px;
    }

    #photoPage .progress-line {
        margin: 0 4px;
    }


    /* HEADING */

    #photoPage .luxury-heading,
    #photoPage .page-heading {
        margin-bottom: 25px;
    }

    #photoPage .eyebrow,
    #photoPage .page-heading .eyebrow {
        font-size: 7px;

        letter-spacing: 0.18em;
    }

    #photoPage .luxury-heading h1,
    #photoPage .page-heading h1 {
        margin-top: 8px;

        font-size: 28px;

        line-height: 1.07;
    }

    #photoPage .luxury-heading p,
    #photoPage .page-heading p {
        padding: 0 7px;

        font-size: 11px;

        line-height: 1.55;
    }

    #photoPage .heading-divider {
        margin: 10px 0;
    }

    #photoPage .heading-divider::before,
    #photoPage .heading-divider::after {
        width: 35px;
    }


    /* CARD */

    #photoPage .luxury-card,
    #photoPage .card,
    #photoPage .photo-card,
    #photoPage .step-card {
        padding: 16px;

        border-radius: 18px;
    }

    #photoPage .card-decoration {
        width: 42px;
        height: 42px;

        top: -14px;
        right: 15px;

        font-size: 12px;
    }


    /* INPUT */

    #photoPage .input-label,
    #photoPage label {
        font-size: 11px;
    }

    #photoPage .photo-input,
    #photoPage input[type="text"],
    #photoPage input[type="email"],
    #photoPage input[type="tel"] {
        min-height: 50px;

        padding: 12px 13px;

        border-radius: 11px;

        font-size: 16px;
    }

    #photoPage .input-hint {
        font-size: 8px;
    }


    /* BUTTON */

    #photoPage .photo-button {
        min-height: 48px;

        padding: 11px 13px;

        border-radius: 11px;

        font-size: 11px;
    }


    /* TEMPLATE */

    #photoPage .template-selection {
        margin-top: 18px;
    }

    #photoPage .template-grid {
        gap: 14px;

        padding-left: 4px;
        padding-right: 4px;

        scroll-padding-left: 4px;
        scroll-padding-right: 4px;
    }

    #photoPage .template-card {
        flex: 0 0 78vw;

        width: 78vw;
        max-width: 290px;

        padding: 5px;

        border-radius: 18px;
    }

    #photoPage .template-image-wrap {
        border-radius: 8px;
    }

    #photoPage .template-card img {
        border-radius: 10px;
    }

    #photoPage .template-check {
        top: 5px;
        right: 5px;

        width: 22px;
        height: 22px;

        font-size: 9px;
    }

    #photoPage .template-card-info {
        padding: 8px 2px 3px;

        column-gap: 5px;
    }

    #photoPage .template-number {
        font-size: 10px;
    }

    #photoPage .template-name,
    #photoPage .template-title {
        font-size: 10px;
    }

    #photoPage .template-photo-count {
        font-size: 5.5px;
    }

    #photoPage .template-card.selected::after,
    #photoPage .template-card.active::after {
        top: 8px;
        right: 8px;

        padding: 5px 8px;

        font-size: 8px;
    }

    #photoPage .template-slider-hint {
        font-size: 10px;
    }


    /* CAMERA */

    #photoPage .camera-stage {
        border-radius: 15px;
    }

    #photoPage .switch-camera-button {
        top: 10px;
        right: 10px;

        min-height: 30px;

        padding: 6px 8px;

        font-size: 7px;
    }

    #photoPage .switch-camera-button span:first-child {
        font-size: 14px;
    }

    #photoPage .camera-corner {
        width: 23px;
        height: 23px;
    }

    #photoPage .corner-tl,
    #photoPage .corner-tr {
        top: 11px;
    }

    #photoPage .corner-bl,
    #photoPage .corner-br {
        bottom: 11px;
    }

    #photoPage .corner-tl,
    #photoPage .corner-bl {
        left: 11px;
    }

    #photoPage .corner-tr,
    #photoPage .corner-br {
        right: 11px;
    }

    #photoPage .camera-top-label {
        top: 11px;

        font-size: 5.5px;
    }

    #photoPage .camera-bottom-label {
        bottom: 11px;

        font-size: 5px;
    }


    /* COUNTDOWN */

    #photoPage .countdown-overlay span {
        width: 88px;
        height: 88px;

        font-size: 55px;
    }


    /* CAMERA PROGRESS */

    #photoPage .camera-progress-card {
        margin-top: 10px;

        padding: 11px 12px;

        border-radius: 11px;
    }

    #photoPage .camera-progress-top {
        font-size: 6.5px;
    }

    #photoPage .camera-progress-top strong {
        font-size: 14px;
    }

    #photoPage .camera-progress-caption {
        font-size: 7px;
    }


    /* CAPTURE */

    #photoPage .capture-button {
        margin-top: 10px;
    }

    #photoPage .capture-ring {
        width: 55px;
        height: 55px;
    }

    #photoPage .capture-icon {
        width: 41px;
        height: 41px;

        font-size: 15px;
    }

    #photoPage .capture-text {
        font-size: 11px;
    }


    /* CAPTURED PHOTOS */

    #photoPage .captured-wrapper {
        margin-top: 18px;
    }

    #photoPage .section-mini-heading {
        margin-bottom: 10px;
    }

    #photoPage .section-mini-heading h3 {
        font-size: 12px;
    }

    #photoPage #capturedPhotos {
        gap: 7px;
    }

    #photoPage .captured-item {
        flex: 0 0 150px;

        width: 150px;
        height: 112.5px;

        border-radius: 8px;
    }

    #photoPage .captured-item img,
    #photoPage .captured-photo-item {
        border-radius: 7px;
    }


    /* PREVIEW */

    #photoPage .preview-card {
        padding: 7px;

        border-radius: 13px;
    }

    #photoPage .preview-top-label {
        margin-bottom: 6px;

        font-size: 5.5px;
    }

    #photoPage .preview-composite {
        border-radius: 10px;
    }

    #photoPage .preview-name {
        margin-top: 7px;

        padding: 7px 3px;
    }

    #photoPage .preview-name-label {
        font-size: 5.5px;

        margin-bottom: 3px;
    }

    #photoPage .preview-name strong {
        font-size: 17px;

        line-height: 1.15;
    }


    /* VOICE */

    #photoPage .voice-note-box {
        margin-top: 7px;

        padding: 8px;

        border-radius: 10px;
    }

    #photoPage .voice-note-icon {
        width: 32px;
        height: 32px;

        border-radius: 8px;

        font-size: 14px;
    }

    #photoPage .voice-note-title {
        font-size: 12px;
    }

    #photoPage .voice-note-subtitle {
        font-size: 7px;
    }

    #photoPage .voice-recording-status {
        margin-top: 10px;

        padding: 8px;

        font-size: 8px;
    }

    #photoPage .voice-timer {
        margin-top: 9px;

        font-size: 23px;
    }

    #photoPage .voice-duration-info {
        font-size: 7px;
    }

    #photoPage .voice-button {
        min-height: 41px;

        font-size: 9px;

        border-radius: 9px;
    }

    #photoPage .voice-remove-button {
        font-size: 8px;
    }


    /* =====================================================
       PREVIEW ACTIONS MOBILE
       SEMUA TOMBOL SAMA
    ===================================================== */

    #photoPage .preview-actions {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 10px;

        margin-top: 11px;
    }

    #photoPage .preview-actions .photo-button {
        flex: none;

        width: 100%;

        min-height: 48px;

        margin-top: 0;

        padding: 0 15px;

        border-radius: 11px;

        font-size: 11px;
    }

    #photoPage .preview-actions .download-photo-button {
        min-height: 48px;

        padding: 0 15px;

        border-radius: 11px;
    }


    /* STATUS */

    #photoPage .photo-submit-status,
    #photoSubmitStatus {
        margin-top: 10px;

        padding: 11px 12px;

        font-size: 9px;

        border-radius: 10px;
    }


    /* FOOTER */

    #photoPage .luxury-footer-note {
        font-size: 5.5px;

        letter-spacing: 0.13em;
    }
}


/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 380px) {

    #photoPage {
        padding-left: 8px;
        padding-right: 8px;
    }

    #photoPage .progress-item span {
        width: 22px;
        height: 22px;
    }

    #photoPage .progress-item small {
        font-size: 5.5px;
    }

    #photoPage .luxury-heading h1,
    #photoPage .page-heading h1 {
        font-size: 25px;
    }

    #photoPage .luxury-card,
    #photoPage .card,
    #photoPage .photo-card,
    #photoPage .step-card {
        padding: 13px;
    }

    #photoPage .template-grid {
        gap: 6px;
    }

    #photoPage .template-card {
        padding: 4px;
    }

    #photoPage .template-name,
    #photoPage .template-title {
        font-size: 9px;
    }

    #photoPage .template-photo-count {
        font-size: 5px;
    }

    #photoPage .capture-ring {
        width: 51px;
        height: 51px;
    }

    #photoPage .capture-icon {
        width: 37px;
        height: 37px;
    }


    /* CAPTURED PHOTOS */

    #photoPage #capturedPhotos {
        gap: 5px;
    }

    #photoPage .captured-item {
        flex: 0 0 135px;

        width: 135px;
        height: 101.25px;
    }


    /* SUBMIT STATUS */

    #photoPage .photo-submit-status,
    #photoSubmitStatus {
        font-size: 8px;
    }


    /* PREVIEW ACTIONS */

    #photoPage .preview-actions {
        gap: 8px;
    }

    #photoPage .preview-actions .photo-button {
        min-height: 47px;

        border-radius: 11px;

        font-size: 10px;
    }
}


/* =========================================================
   VERY SMALL PRINT PREVIEW
========================================================= */

@media (max-width: 420px) {

    #photoPage .printer-machine {
        width: 170px;
        height: 52px;
    }

    #photoPage .printer-slot {
        top: 43px;
        width: 140px;
    }

    #photoPage .print-paper-wrapper {
        width: 195px;
    }

    #photoPage .preview-composite-image {
        width: 165px;
        max-width: 165px;
    }
}


@media (max-width: 360px) {

    #photoPage .printer-machine {
        width: 155px;
        height: 48px;
    }

    #photoPage .printer-slot {
        top: 40px;

        width: 128px;
        height: 12px;
    }

    #photoPage .print-paper-wrapper {
        width: 180px;
    }

    #photoPage .preview-composite-image {
        width: 150px;
        max-width: 150px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    #photoPage .photo-step {
        animation: none;
    }

    #photoPage .print-preview-stage.is-printing .preview-composite-image {
        animation: none;

        transform: translateY(0);

        opacity: 1;

        filter: none;
    }

    #photoPage .print-preview-stage.is-printing .printing-status {
        animation: none;

        opacity: 1;

        transform: none;
    }

    #photoPage .print-preview-stage.is-printing .paper-shadow {
        animation: none;

        opacity: 0.18;

        transform:
            translateX(-50%)
            scale(1);
    }
}


/* =========================================================
   TEMPLATE CAROUSEL MOBILE - FIX
========================================================= */

@media (max-width: 650px) {

    .template-carousel {
        position: relative;
        width: 100%;
        padding: 24px 42px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .template-carousel-viewport {
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .template-track {
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important;
        gap: 18px;

        width: max-content !important;
        max-width: none !important;

        margin: 0;
        padding: 0;

        transform: translateX(0);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);

        will-change: transform;
        touch-action: pan-y;
        cursor: grab;
    }

    .template-track.is-dragging {
        transition: none !important;
        cursor: grabbing;
    }

    .template-card {
        flex: 0 0 220px !important;

        width: 220px !important;
        max-width: 220px !important;
        min-width: 220px !important;

        margin: 0 !important;

        transform: scale(0.92);
        transform-origin: center center;

        transition:
            transform 0.35s ease,
            opacity 0.35s ease;

        opacity: 0.65;

        box-sizing: border-box;
    }

    .template-card.active-template,
    .template-card.selected {
        transform: scale(1);
        opacity: 1;
    }

    .template-card img {
        display: block;
        width: 100%;
        height: auto !important;

        object-fit: contain !important;
        aspect-ratio: auto !important;
    }

    /* ARROW */

    .template-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);

        z-index: 20;

        width: 34px;
        height: 34px;

        border-radius: 50%;
        border: none;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        font-size: 25px;
        line-height: 1;

        cursor: pointer;
    }

    .template-nav-prev {
        left: 5px;
    }

    .template-nav-next {
        right: 5px;
    }

    .template-nav:disabled {
        opacity: 0.35;
        cursor: default;
    }

    /* DOT */

    .template-slider-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;

        margin-top: 4px;
        margin-bottom: 12px;
    }

    .template-slider-dot {
        width: 7px;
        height: 7px;

        border-radius: 50%;

        display: block;

        opacity: 0.35;

        transform: scale(0.8);

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .template-slider-dot.active {
        opacity: 1;
        transform: scale(1.35);
    }
}


/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 380px) {

    .template-carousel {
        padding-left: 38px;
        padding-right: 38px;
    }

    .template-card {
        flex-basis: 200px !important;

        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }

    .template-track {
        gap: 14px;
    }

    .template-nav {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
}