/**
 * Trabalhe Conosco Page Styles
 * Woodev Theme — Design System
 *
 * @package Woodev
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ── Reset & Variables ── */
.tc-page *,
.tc-page *::before,
.tc-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tc-page {
    --cream:   #faf6f0;
    --petal:   #e8c5b0;
    --blush:   #d4937a;
    --stem:    #ca2b39;
    --leaf:    #a7212d;
    --bark:    #a7212d;
    --gold:    #c9a96e;
    --text:    #2a2420;
    --muted:   #7a6a60;
    --ff-head: 'Cormorant Garamond', Georgia, serif;
    --ff-body: 'Jost', sans-serif;
    --ease:    cubic-bezier(.25, .46, .45, .94);

    background-color: var(--cream);
    font-family: var(--ff-body);
    color: var(--text);
    overflow-x: hidden;
}

/* ── Hero ── */
.tc-hero {
    background: linear-gradient(160deg, #ca2b39 0%, #a7212d 100%);
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 8vw, 8rem);
}

.tc-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.tc-hero__label {
    font-family: var(--ff-body);
    font-weight: 300;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--petal);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.tc-hero__label::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 1px;
    background: var(--petal);
    opacity: .7;
}

.tc-hero__title {
    font-family: var(--ff-head);
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 300;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 1.6rem;
}

.tc-hero__title em {
    font-style: italic;
    color: var(--petal);
}

.tc-hero__subtitle {
    font-family: var(--ff-body);
    font-size: .95rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255, 255, 255, .72);
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.tc-hero__note {
    font-family: var(--ff-body);
    font-size: .88rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, .55);
    max-width: 460px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

/* ── Form Section ── */
.tc-form-section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 6rem);
    max-width: 1100px;
    margin: 0 auto;
}

.tc-form-wrapper {
    max-width: 760px;
}

.tc-form-header {
    margin-bottom: 3rem;
}

.tc-form-header__eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.tc-form-header__eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--petal);
    opacity: .5;
    max-width: 48px;
}

.tc-form-header__title {
    font-family: var(--ff-head);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 300;
    color: var(--bark);
    line-height: 1.2;
}

/* ── CF7 & native form shared field styles ── */

/* CF7 resets */
.tc-form-body .wpcf7 {
    margin: 0;
    padding: 0;
}

.tc-form-body .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Row helper — wrap two fields side by side */
.tc-form-body .wpcf7-form .tc-row,
.tc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

/* Labels */
.tc-form-body .wpcf7-form label,
.tc-field label {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-family: var(--ff-body);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    width: 100%;
}

/* Inputs, Select, Textarea */
.tc-form-body .wpcf7-form input[type="text"],
.tc-form-body .wpcf7-form input[type="email"],
.tc-form-body .wpcf7-form input[type="tel"],
.tc-form-body .wpcf7-form input[type="url"],
.tc-form-body .wpcf7-form input[type="file"],
.tc-form-body .wpcf7-form select,
.tc-form-body .wpcf7-form textarea,
.tc-native-form input,
.tc-native-form textarea,
.tc-native-form select {
    width: 100%;
    font-family: var(--ff-body);
    font-size: .92rem;
    font-weight: 300;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--petal);
    border-radius: 6px;
    padding: .85rem 1.1rem;
    outline: none;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.tc-form-body .wpcf7-form input[type="text"]::placeholder,
.tc-form-body .wpcf7-form input[type="email"]::placeholder,
.tc-form-body .wpcf7-form input[type="tel"]::placeholder,
.tc-form-body .wpcf7-form input[type="file"]::placeholder,
.tc-form-body .wpcf7-form textarea::placeholder,
.tc-native-form input::placeholder,
.tc-native-form textarea::placeholder {
    color: #c4b4a8;
    font-weight: 300;
}

.tc-form-body .wpcf7-form input[type="text"]:focus,
.tc-form-body .wpcf7-form input[type="email"]:focus,
.tc-form-body .wpcf7-form input[type="tel"]:focus,
.tc-form-body .wpcf7-form input[type="file"]:focus,
.tc-form-body .wpcf7-form select:focus,
.tc-form-body .wpcf7-form textarea:focus,
.tc-native-form input:focus,
.tc-native-form textarea:focus,
.tc-native-form select:focus {
    border-color: var(--blush);
    box-shadow: 0 0 0 3px rgba(212, 147, 122, .15);
}

/* File input styling */
.tc-form-body .wpcf7-form input[type="file"] {
    padding: .65rem;
    background: #fafafa;
}

.tc-form-body .wpcf7-form input[type="file"]::-webkit-file-upload-button {
    background: var(--petal);
    color: var(--text);
    border: none;
    padding: .5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--ff-body);
    font-size: .8rem;
    margin-right: 1rem;
    transition: background .2s var(--ease);
}

.tc-form-body .wpcf7-form input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--blush);
}

.tc-form-body .wpcf7-form textarea,
.tc-native-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Submit button — CF7 */
.tc-form-body .wpcf7-form input[type="submit"],
.tc-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: var(--stem);
    color: #fff;
    font-family: var(--ff-body);
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 1rem 2.4rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
    align-self: flex-start;
}

.tc-form-body .wpcf7-form input[type="submit"]:hover,
.tc-submit-btn:hover {
    background: var(--leaf);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(167, 33, 45, .25);
}

/* CF7 validation messages */
.tc-form-body .wpcf7-not-valid-tip {
    font-size: .72rem;
    color: var(--stem);
    margin-top: .3rem;
    font-weight: 300;
}

.tc-form-body .wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem 1.4rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 300;
    border: 1.5px solid var(--petal);
    color: var(--text);
}

.tc-form-body .wpcf7-mail-sent-ok {
    border-color: #4caf50;
    background: rgba(76, 175, 80, .06);
    color: #2e7d32;
}

.tc-form-body .wpcf7-mail-sent-ng,
.tc-form-body .wpcf7-aborted {
    border-color: var(--stem);
    background: rgba(202, 43, 57, .05);
    color: var(--leaf);
}

/* ── Native form ── */
.tc-native-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.tc-field {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tc-field label {
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.tc-form-notice {
    font-size: .9rem;
    color: var(--muted);
    border: 1.5px dashed var(--petal);
    border-radius: 6px;
    padding: 1.5rem;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-in {
    animation: fadeUp .8s var(--ease) both;
}

.anim-in:nth-child(2) {
    animation-delay: .12s;
}

.anim-in:nth-child(3) {
    animation-delay: .24s;
}

.anim-in:nth-child(4) {
    animation-delay: .36s;
}

/* ── Responsive ── */
@media (max-width: 640px) {

    .tc-row,
    .tc-field-row {
        grid-template-columns: 1fr;
    }

    .tc-form-body .wpcf7-form input[type="submit"],
    .tc-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .tc-hero__note {
        font-size: .82rem;
        padding: .85rem 1.25rem;
    }
}
