/* ═══════════════════════════════════════════════════
   style.css  —  WhatsApp Contact Form Styles
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────── */


/* ── Background glow ─────────────────────────────── */

/* ── Card ────────────────────────────────────────── */
.card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    height: 111vh;
    max-width: 520px;
    padding: 2.8rem 2.6rem;
    /*
    box-shadow: 0 0 0 1px rgba(37, 211, 102, .06),
    0 24px 64px rgba(0, 0, 0, .5);
*/
    animation: slideUp .55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header ──────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wa-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(37, 211, 102, .35);
}

.wa-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.header-text h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--text);
}

.header-text p {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .2rem;
}

/* ── Divider ─────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.8rem;
}

/* ── Form groups ─────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
    animation: fadeIn .4s ease both;
}

.form-group:nth-child(1) {
    animation-delay: .08s;
}

.form-group:nth-child(2) {
    animation-delay: .14s;
}

.form-group:nth-child(3) {
    animation-delay: .20s;
}

.form-group:nth-child(4) {
    animation-delay: .26s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
}

label svg {
    width: 13px;
    height: 13px;
}

input,
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid #000;
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    padding: .8rem 1rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: #484f58;
}

input:focus,
textarea:focus {
    border-color: var(--wa-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .15);
}

textarea {
    min-height: 110px;
    line-height: 1.55;
}

/* ── Error banner ────────────────────────────────── */
.error-banner {
    background: rgba(248, 81, 73, .12);
    border: 1px solid rgba(248, 81, 73, .35);
    border-radius: var(--radius);
    color: var(--error);
    font-size: .88rem;
    padding: .75rem 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── Submit button ───────────────────────────────── */
.btn {
    width: 100%;
    padding: .95rem 1.5rem;
    background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-dark) 100%);
    border: none;
    border-radius: var(--radius);
    color: #1a1a1a;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
    margin-top: 1.6rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, .45);
    filter: brightness(1.06);
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: #028d0acc;
}

/* ── Success state ───────────────────────────────── */
.success-card {
    text-align: center;
    padding: 1rem 0 .5rem;
    animation: fadeIn .5s ease;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    box-shadow: 0 0 32px rgba(37, 211, 102, .4);
    animation: popIn .5s cubic-bezier(0.34, 1.56, 0.64, 1) .1s both;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

.success-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.success-card p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

/* ── WhatsApp open button ────────────────────────── */
.wa-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
    color: #fff;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .98rem;
    padding: .9rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
    transition: transform var(--transition), box-shadow var(--transition);
}

.wa-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, .5);
}

.wa-link svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ── Back / reset button ─────────────────────────── */
.back-btn {
    display: block;
    width: 100%;
    margin-top: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    color: var(--muted);
    text-align: center;
    transition: color var(--transition);
}

.back-btn:hover {
    color: var(--wa-green);
}

/* ── Footer note ─────────────────────────────────── */
.note {
    text-align: center;
    font-size: .75rem;
    color: #484f58;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* ── Utility ─────────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 560px) {
    .card {
        padding: 2rem 1.4rem;
    }

    .header-text h1 {
        font-size: 1.2rem;
    }
}
