/* ════════════════════════════════════════════════════════════
   INTRANITY — Trabalhe Conosco · Formulário público
   Design: claro, branco e laranja
════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Wrap principal ──────────────────────────────────────── */
.itc-form-wrap {
    --itc-bg:           #ffffff;
    --itc-surface:      #fff7ed;
    --itc-border:       rgba(234, 88, 12, .18);
    --itc-accent:       #f97316;
    --itc-accent2:      #ea580c;
    --itc-text:         #1f2937;
    --itc-muted:        #6b7280;
    --itc-input-bg:     #ffffff;
    --itc-radius:       18px;
    --itc-radius-sm:    12px;
    --itc-ok:           #16a34a;
    --itc-err:          #dc2626;

    font-family: 'DM Sans', system-ui, sans-serif;
    background:
        linear-gradient(180deg, rgba(255,247,237,.92), rgba(255,255,255,.98) 35%),
        var(--itc-bg);
    border: 1px solid var(--itc-border);
    border-radius: var(--itc-radius);
    padding: clamp(28px, 6vw, 56px) clamp(24px, 7vw, 64px);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(249,115,22,.06),
        0 20px 60px rgba(234,88,12,.13),
        0 8px 24px rgba(15,23,42,.06);

    animation: itc-appear .5s cubic-bezier(.22,1,.36,1) both;
}

@keyframes itc-appear {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Decoração de fundo — brilho claro */
.itc-form-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 58% 38% at 88% 0%, rgba(249,115,22,.16) 0%, transparent 68%),
        radial-gradient(ellipse 42% 30% at 10% 100%, rgba(251,146,60,.14) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

/* Linha decorativa topo */
.itc-form-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fb923c, #f97316, #ea580c, #fb923c);
    background-size: 200% 100%;
    animation: itc-shimmer 3s linear infinite;
}

@keyframes itc-shimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ── Header do formulário ────────────────────────────────── */
.itc-form-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.itc-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fb923c, #f97316 55%, #ea580c);
    border-radius: 15px;
    font-size: 22px;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(249,115,22,.32);
    animation: itc-float 3s ease-in-out infinite;
}

@keyframes itc-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.itc-form-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    color: var(--itc-text);
    margin: 0 0 10px;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.itc-form-subtitle {
    font-size: 15px;
    color: var(--itc-muted);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* ── Campos ──────────────────────────────────────────────── */
.itc-form {
    position: relative;
    z-index: 1;
}

.itc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.itc-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.itc-label {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color .2s;
}

.itc-label span,
.itc-label em {
    color: var(--itc-accent);
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.itc-field:focus-within .itc-label {
    color: var(--itc-accent2);
}

.itc-input,
.itc-textarea {
    background: var(--itc-input-bg);
    border: 1.5px solid var(--itc-border);
    border-radius: var(--itc-radius-sm);
    color: var(--itc-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 13px 16px;
    transition: border-color .2s, background .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 0 rgba(15,23,42,.03);
}

.itc-input::placeholder,
.itc-textarea::placeholder {
    color: #a8a29e;
}

.itc-input:focus,
.itc-textarea:focus {
    border-color: var(--itc-accent);
    background: #fffaf5;
    box-shadow: 0 0 0 4px rgba(249,115,22,.16);
}

.itc-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.itc-textarea--small {
    min-height: 86px;
}

/* ── Footer do form ──────────────────────────────────────── */
.itc-form-footer {
    margin-top: 8px;
}

/* ── Botão enviar ────────────────────────────────────────── */
.itc-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #fb923c, #f97316 55%, #ea580c);
    color: #fff;
    border: none;
    border-radius: var(--itc-radius-sm);
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 10px 28px rgba(249,115,22,.30);
    overflow: hidden;
}

.itc-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f97316, #c2410c);
    opacity: 0;
    transition: opacity .2s;
}

.itc-btn:hover::before {
    opacity: 1;
}

.itc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(234,88,12,.36);
}

.itc-btn:active {
    transform: translateY(0);
}

.itc-btn-text,
.itc-btn-icon {
    position: relative;
    z-index: 1;
    transition: transform .2s;
}

.itc-btn:hover .itc-btn-icon {
    transform: translateX(4px);
}

/* Spinner */
.itc-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.42);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    animation: itc-spin .7s linear infinite;
}

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

.itc-btn.loading .itc-btn-text,
.itc-btn.loading .itc-btn-icon {
    opacity: 0;
}

.itc-btn.loading .itc-btn-loader {
    display: block;
}

.itc-btn:disabled {
    cursor: not-allowed;
}

/* ── Feedback ────────────────────────────────────────────── */
.itc-feedback {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--itc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    animation: itc-appear .3s ease;
}

.itc-feedback--ok {
    background: #f0fdf4;
    border: 1px solid rgba(22,163,74,.24);
    color: #166534;
    text-align: center;
}

.itc-feedback--err {
    background: #fef2f2;
    border: 1px solid rgba(220,38,38,.22);
    color: #991b1b;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVO — mobile-first
════════════════════════════════════════════════════════════ */

/* Tablet e mobile */
@media (max-width: 600px) {
    .itc-form-wrap {
        padding: 28px 20px 32px;
        border-radius: 14px;
    }

    /* Coluna dupla vira simples */
    .itc-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .itc-form-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .itc-form-header {
        margin-bottom: 26px;
    }

    .itc-input,
    .itc-textarea {
        font-size: 16px; /* evita zoom no iOS */
        padding: 12px 14px;
    }

    .itc-label {
        font-size: 11px;
    }

    .itc-btn {
        padding: 15px 24px;
        font-size: 15px;
    }
}

/* Extra pequeno */
@media (max-width: 380px) {
    .itc-form-wrap {
        padding: 22px 16px 28px;
    }
}

/* ── Tela pós-envio ───────────────────────────────────────── */
.itc-success-box {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: clamp(12px, 3vw, 22px) 0;
}

.itc-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fb923c, #f97316 55%, #ea580c);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(249,115,22,.32);
    animation: itc-float 3s ease-in-out infinite;
}

.itc-success-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.12;
    font-weight: 800;
    color: var(--itc-text);
    margin: 0 0 12px;
    letter-spacing: -.02em;
}

.itc-success-text {
    max-width: 500px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.65;
    color: var(--itc-muted);
}
