/* forms.css — herda ../style.css, sobrescreve apenas o necessário para /forms/ */

body {
    background: var(--color-green);
    color: var(--color-cream);
    overflow-x: hidden;
}

.form-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 100;
    transition: opacity 0.3s ease;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #C9A96E;
    transition: width 0.4s ease;
}

.form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    padding-top: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--color-cream);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.back-link:hover { opacity: 1; }

.slides-wrapper {
    position: relative;
    flex: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.slide.exit-up { opacity: 0; transform: translateY(-20px); }
.slide.exit-down { opacity: 0; transform: translateY(20px); }

/* Cover */
.cover-screen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cover-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 28px;
    max-width: 520px;
}

.cover-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    font-family: var(--font-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.cover-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.cover-cta {
    display: inline-block;
    padding: 14px 40px;
    background: #C9A96E;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cover-cta:hover {
    background: #a8844d;
    transform: translateY(-1px);
}

/* Slides */
.slide h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-cream);
    font-family: var(--font-primary);
    margin-bottom: 28px;
}

.step-greeting {
    color: #C9A96E;
    margin-bottom: 8px;
}

.slide-hint {
    font-size: 0.9rem;
    color: rgba(245, 243, 239, 0.6);
    font-family: var(--font-secondary);
    margin-top: -20px;
    margin-bottom: 24px;
}

.required { color: #C9A96E; }

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.opt {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    font-family: var(--font-secondary);
    color: var(--color-cream);
    line-height: 1.4;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.opt:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.25);
}

.opt.selected {
    border-color: #C9A96E;
    background: rgba(201, 169, 110, 0.12);
}

.opt.selected .opt-key {
    background: #C9A96E;
    border-color: #C9A96E;
    color: #fff;
}

.opt.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.opt-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-cream);
    transition: all 0.2s;
}

.opt-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    transition: all 0.2s;
    background: transparent;
}

.opt.selected .opt-checkbox {
    background: #C9A96E;
    border-color: #C9A96E;
}

.opt.selected .opt-checkbox::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Opt icon (+/-) */
.opt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
    color: var(--color-cream);
    transition: all 0.2s;
}

.opt.selected .opt-icon {
    background: #C9A96E;
    border-color: #C9A96E;
    color: #fff;
}

/* Input with prefix (e.g. @ for Instagram) */
.input-prefix-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.input-prefix-wrapper:focus-within {
    border-color: #C9A96E;
}

.input-prefix {
    padding: 14px 14px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    user-select: none;
}

.input-prefix-wrapper .text-field {
    border: none;
    border-radius: 0;
    flex: 1;
}

.input-prefix-wrapper .text-field:focus {
    border-color: transparent;
}

/* Text fields */
.text-field {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.text-field::placeholder { color: rgba(255, 255, 255, 0.35); }
.text-field:focus { border-color: #C9A96E; }

textarea.text-field {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    margin-top: 20px;
    background: #C9A96E;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.continue-btn:hover {
    background: #a8844d;
    transform: translateY(-1px);
}

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

.continue-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.continue-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: #C9A96E;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.submit-btn:hover { background: #a8844d; }

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

/* Error */
.field-error {
    color: #E05252;
    font-size: 0.85rem;
    margin-top: 8px;
    font-family: var(--font-secondary);
}

.btn-email-help {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: #25D366;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-secondary);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-email-help:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

/* Section label & divider (step 11) */
.section-label {
    font-size: 1rem;
    font-family: var(--font-secondary);
    color: var(--color-cream);
    margin-bottom: 12px;
    line-height: 1.5;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 28px 0;
}

/* Done screen */
.done-screen {
    text-align: center;
    padding: 60px 0 40px;
}

.done-icon {
    margin-bottom: 28px;
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

@keyframes popIn { to { opacity: 1; transform: scale(1); } }

.done-screen h2 {
    text-align: center;
    margin-bottom: 12px;
}

.done-screen p {
    font-size: 1rem;
    font-family: var(--font-secondary);
    opacity: 0.7;
    margin-bottom: 36px;
}

.btn-done-whatsapp {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 32px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-done-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

/* Honeypot */
.ohnohoney {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Responsive */
@media (min-width: 768px) {
    .form-body { padding: 40px 24px; justify-content: center; }
    .slide h2 { font-size: 1.4rem; }
    .opt { padding: 16px 20px; font-size: 0.95rem; }
}
