/* =========================================
   ETAPA 2 — FOTO CARDS (MENOR + MINIMALISTA + PREMIUM/PLUS)
   Onde: builderEtapas.css (cole no FINAL)
========================================= */

/* =========================
   LAYOUT DOS ADDONS (lista fechada bonita)
========================= */
.photo-addons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

/* =========================
   ADDON OPTION (estilo premium + radio look + selo PLUS)
========================= */
.addon-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    text-align: center;

    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;

    padding: 16px 86px 16px 52px;
    min-width: 220px;

    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.2px;

    cursor: pointer;
    user-select: none;

    overflow: visible;
    flex-wrap: wrap;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.addon-option .addon-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.addon-option::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.addon-option::after {
    content: "PLUS";
    position: absolute;
    top: -1px;
    right: -1px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.9px;
    color: rgba(10, 220, 255, 0.95);
    background: rgba(10, 220, 255, 0.10);
    border: 2px solid rgba(10, 220, 255, 0.95);
    padding: 7px 12px;
    border-top-right-radius: 18px;
    border-bottom-left-radius: 14px;
    border-top-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.20);
}

.addon-option:hover {
    border-color: rgba(25, 240, 255, 0.22);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02));
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.addon-option.selected {
    background: linear-gradient(180deg,
            rgba(25, 240, 255, 0.08),
            rgba(255, 255, 255, 0.02));
    border-color: rgba(25, 240, 255, 0.32);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.addon-option.selected::before {
    background: rgba(25, 240, 255, 0.18);
    border-color: rgba(25, 240, 255, 0.40);
    box-shadow:
        inset 0 0 0 5px rgba(0, 0, 0, 0.25),
        0 0 0 3px rgba(25, 240, 255, 0.10);
}

/* =========================
   Container que abre os cards
========================= */
.addon-option .extra-photos-container {
    margin-top: 10px;
    margin-right: -75px;
    padding: 20px 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    justify-content: center;
}

.addon-option.selected .extra-photos-container {
    max-height: 520px;
    opacity: 1;
}

.addon-option[data-quantity="2"] .extra-photos-container {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
}

.addon-option[data-quantity="4"] .extra-photos-container {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
}

.addon-option[data-quantity="6"] .extra-photos-container {
    max-width: 420px;
    grid-template-columns: repeat(3, 110px);
    gap: 8px;
    justify-content: center;
}

/* =========================
   Card de upload
========================= */
.photo-card {
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    height: 128px;
}

.photo-card:hover {
    border-color: rgba(25, 240, 255, 0.35);
    background: rgba(25, 240, 255, 0.04);
    transform: translateY(-1px);
}

.photo-card.selected {
    border-style: solid;
    border-color: rgba(25, 240, 255, 0.45);
    background: rgba(25, 240, 255, 0.06);
}

.photo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 10px 8px;
}

.upload-icon {
    font-size: 20px;
    opacity: 0.65;
}

.photo-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.photo-card .file-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.1;
    margin-top: 2px;
}

.photo-card.selected .file-name {
    color: rgba(25, 240, 255, 0.95);
}

.photo-preview {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
    margin-bottom: 6px;
}

.photo-card.selected .upload-icon {
    display: none;
}

/* =========================
   MODAL DE CONFIRMAÇÃO — Etapa 2
========================= */
.modal-fotos-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
}

/* JS adiciona essa classe para abrir */
.modal-fotos-overlay.modal-aberto {
    display: flex;
}

.modal-fotos-box {
    background: rgba(0, 0, 0, 0.404);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-fotos-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.modal-fotos-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-fotos-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-fotos-btns .btn-sim {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #41a3b4;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-fotos-btns .btn-sim:hover {
    opacity: 0.85;
}

.modal-fotos-btns .btn-nao {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-fotos-btns .btn-nao:hover {
    background: rgba(255, 255, 255, 0.06);
}