.ftv-wrap {
    max-width: 720px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
}

/* Header */
.ftv-header {
    text-align: center;
    margin-bottom: 28px;
}

.ftv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    font-size: 22px;
    margin-bottom: 16px;
}

.ftv-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #111;
}

.ftv-subtitle {
    font-size: 0.95rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto 14px;
    line-height: 1.6;
}

.ftv-stars {
    color: #f59e0b;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.ftv-rating {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0 0;
}

/* Card */
.ftv-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 28px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* Form fields */
.ftv-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

@media (max-width: 540px) {
    .ftv-fields {
        grid-template-columns: 1fr;
    }
}

.ftv-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ftv-field-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.ftv-field-group input {
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ftv-field-group input:focus {
    border-color: #7c3aed;
    background: #fff;
}

.ftv-field-group input[readonly] {
    color: #6b7280;
    cursor: not-allowed;
}

.ftv-error {
    font-size: 0.78rem;
    color: #dc2626;
    min-height: 16px;
}

.ftv-hint {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Submit button */
#ftv-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
    margin-bottom: 20px;
}

#ftv-submit:hover {
    opacity: 0.9;
}

#ftv-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner */
.ftv-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ftv-spin 0.7s linear infinite;
    display: inline-block;
}

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

/* Rules box */
.ftv-rules {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 14px 18px;
}

.ftv-rules p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #b91c1c;
    line-height: 1.5;
}

/* Success card */
.ftv-success {
    text-align: center;
    padding: 48px 28px;
}

.ftv-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
}

.ftv-success h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #111;
}

.ftv-success p {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 24px;
}

#ftv-reset {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

#ftv-reset:hover {
    opacity: 0.88;
}
