/* ===== CONTENEDOR ===== */
.wft-wrapper {
    background: #f3f4f6;
    padding: 80px 20px;
}

.wft-container {
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}
.wft-card.selected {
    border-color: #FA3723;
    background: rgba(250,55,35,0.08);
    box-shadow: 0 10px 25px rgba(250,55,35,0.15);
}

.wft-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wft-phone {
    color: #777;
    margin-bottom: 40px;
}

/* ===== PROGRESS BAR ===== */
.wft-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
}

.wft-progress {
    height: 100%;
    width: 0%;
    background: #FA3723;
    transition: width 0.4s ease;
}
.wft-error-message {
    color: #FA3723;
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 20px;
    font-weight: 500;
}

/* ===== STEPS ===== */
.wft-step {
    display: none !important;
    animation: fadeIn 0.4s ease;
}

.wft-step label {
    display: block;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wft-step label:hover {
    border-color: #FA3723;
}

.wft-step.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.wft-step h2 {
    font-size: 26px;
    margin-bottom: 30px;
}

/* ===== OPTIONS AS CARDS ===== */
.wft-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.wft-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.wft-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.wft-card.selected {
    background: #FA3723;
    color: #fff;
    border-color: #FA3723;
}

.wft-card input {
    display: none;
}

/* PROPERTY ICONS */

.wft-card .wft-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px auto;
    color: #2d2d2d; /* gris oscuro */
}

.wft-card .wft-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

/* Check superior derecha */
.wft-card::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
}

.wft-card.selected::after {
    background: #fff;
    border-color: #fff;
}

.wft-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wft-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wft-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.wft-list-item.selected {
    background: #FA3723;
    color: #fff;
    border-color: #FA3723;
}

.wft-list-item input {
    display: none;
}

/* ===== INPUTS ===== */
.wft-step input,
.wft-step textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
}

/* ===== BUTTONS ===== */
.wft-buttons {
    margin-top: 30px;
}

.wft-buttons button {
    padding: 12px 26px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.wft-buttons .next {
    background: #FA3723;
    color: #fff;
}

.wft-buttons .prev {
    background: #ccc;
    margin-right: 10px;
}

.wft-success-screen {
    text-align: center;
    padding: 60px 20px;
}

.wft-success-icon {
    width: 70px;
    height: 70px;
    background: #FA3723;
    color: #fff;
    border-radius: 50%;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0.5); opacity:0; }
    100% { transform: scale(1); opacity:1; }
}

/* ===== CONSENT CARD ===== */

.wft-consent-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.wft-consent-text {
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
}

.wft-consent-card:hover {
    border-color: #FA3723;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ocultamos checkbox nativo */
.wft-consent-card input {
    display: none;
}

.wft-consent-box {
    flex-shrink: 0; /* evita que se deforme */
}

@media (min-width: 768px) {
    .wft-consent-text {
        white-space: nowrap;
    }
}

/* Caja cuadrada */
.wft-consent-box {
    width: 26px;
    height: 26px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: inline-block;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wft-consent-box svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Estado seleccionado */
.wft-consent-card.selected {
    border-color: #FA3723;
    background: #FA3723;
    color: #fff;
}

.wft-consent-card.selected .wft-consent-box {
    background: #fff;
    border-color: #fff;
}

.wft-consent-card.selected .wft-consent-box svg {
    stroke: #FA3723;
    opacity: 1;
}

/* ===== SUBMIT BUTTON ===== */

.wft-submit {
    background: #FA3723;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.wft-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wft-submit-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: wftSpin 0.8s linear infinite;
    display: none;
}

.wft-submit.loading .wft-submit-text {
    display: none;
}

.wft-submit.loading .wft-submit-loader {
    display: inline-block;
}

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

/* ===== CONSENT ANIMATION ===== */

.wft-consent-card {
    position: relative;
    overflow: hidden;
}

.wft-consent-card.selected {
    animation: consentFade 0.3s ease;
}

@keyframes consentFade {
    from { transform: scale(0.98); }
    to { transform: scale(1); }
}

/* Bounce check */
.wft-consent-box svg {
    transform: scale(0.6);
}

.wft-consent-card.selected .wft-consent-box svg {
    animation: checkBounce 0.35s ease forwards;
}

@keyframes checkBounce {
    0% { transform: scale(0.6); opacity: 0; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.wft-btn {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.wft-next {
    background: #FA3723;
    color: #fff;
    box-shadow: 0 10px 25px rgba(250,55,35,0.35);
}

.wft-prev {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.wft-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}