/* ============================================================
   block-talento-form.css  –  prefix: tlf-
   Typeform-style multi-step application form, light theme
   ============================================================ */

/* ── Section wrapper ── */
.tlf-section {
    background-color: #ffffff !important;
    padding: 5rem 2rem 7rem;
    width: 100%;
}

.tlf-container {
    max-width: 760px;
    margin: 0 auto;
}

/* ── Progress bar ── */
.tlf-progress-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tlf-progress-bar {
    flex: 1;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.tlf-progress-fill {
    height: 100%;
    background-color: #28a745;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.tlf-progress-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Form container ── */
.tlf-form {
    position: relative;
    min-height: 360px;
}

/* ── Steps ── */
.tlf-step {
    display: none;
    animation: tlf-fade-in 0.35s ease;
}

.tlf-step--active {
    display: block;
}

@keyframes tlf-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Step header ── */
.tlf-step-header {
    margin-bottom: 2.5rem;
}

.tlf-step-number {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #28a745;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.tlf-step-question {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 0.75rem !important;
    line-height: 1.2 !important;
}

.tlf-step-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ── Step body ── */
.tlf-step-body {
    margin-bottom: 2.5rem;
}

/* ── Yes / No buttons ── */
.tlf-yesno-group {
    display: flex;
    gap: 1rem;
}

@media (max-width: 480px) {
    .tlf-yesno-group {
        flex-direction: column;
    }
}

.tlf-yesno-btn {
    flex: 1;
    cursor: pointer;
}

.tlf-yesno-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tlf-yesno-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.25rem 2rem;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    user-select: none;
}

.tlf-yesno-btn:hover .tlf-yesno-label {
    border-color: rgba(40, 167, 69, 0.5);
    background-color: rgba(40, 167, 69, 0.05);
    color: #111827;
}

.tlf-yesno-btn input[type="radio"]:checked + .tlf-yesno-label {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.08);
    color: #28a745;
}

.tlf-yesno-icon {
    font-size: 1.25rem;
}

.tlf-yesno-hint {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
    align-self: center;
}

/* ── Textarea ── */
.tlf-textarea {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #111827;
    line-height: 1.65;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tlf-textarea::placeholder {
    color: #9ca3af;
}

.tlf-textarea:focus {
    outline: none;
    border-color: #28a745;
}

/* ── Select ── */
.tlf-select {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #111827;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256' fill='%236b7280'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    box-sizing: border-box;
}

.tlf-select:focus {
    outline: none;
    border-color: #28a745;
}

.tlf-select option[value=""] {
    color: #9ca3af;
}

/* ── Text input ── */
.tlf-text-input {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tlf-text-input::placeholder {
    color: #9ca3af;
}

.tlf-text-input:focus {
    outline: none;
    border-color: #28a745;
}

/* ── Contact grid ── */
.tlf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 560px) {
    .tlf-contact-grid {
        grid-template-columns: 1fr;
    }
}

.tlf-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tlf-field--full {
    grid-column: 1 / -1;
}

.tlf-field label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tlf-required {
    color: #28a745;
}

.tlf-field input[type="text"],
.tlf-field input[type="email"],
.tlf-field input[type="tel"] {
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.875rem 1.125rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.tlf-field input:focus {
    outline: none;
    border-color: #28a745;
}

.tlf-field input::placeholder {
    color: #9ca3af;
}

/* ── File upload ── */
.tlf-upload-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    text-align: center;
    margin-bottom: 0.75rem;
}

.tlf-upload-area:hover,
.tlf-upload-area.tlf-dragover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.04);
}

.tlf-upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
}

.tlf-upload-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.tlf-upload-browse {
    color: #28a745;
    text-decoration: underline;
    cursor: pointer;
}

.tlf-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.tlf-filename {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: #28a745;
    display: block;
}

/* ── Step navigation ── */
.tlf-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tlf-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: #6b7280;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.tlf-btn-back:hover {
    color: #374151;
}

.tlf-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: #28a745;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

.tlf-btn-next:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.35);
}

.tlf-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: #28a745;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

.tlf-btn-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.35);
}

.tlf-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: none;
}

/* ── Spinner ── */
.tlf-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tlf-spin 0.7s linear infinite;
}

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

/* ── Status message ── */
.tlf-status {
    margin-top: 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 0;
}

.tlf-status:not(:empty) {
    padding: 0.875rem 1.25rem;
}

.tlf-status--success {
    background-color: rgba(40, 167, 69, 0.08);
    color: #166534;
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.tlf-status--error {
    background-color: rgba(220, 53, 69, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

/* ── Validation error highlight ── */
.tlf-field-error {
    border-color: #dc3545 !important;
}

/* ── Mobile tweaks ── */
@media (max-width: 600px) {
    .tlf-section {
        padding: 3.5rem 1.25rem 5rem;
    }

    .tlf-btn-next,
    .tlf-btn-submit {
        padding: 0.875rem 1.5rem;
    }
}
