/* ═══════════════════════════════════════════
   Love Languages Assessment Form — Styles
   ═══════════════════════════════════════════ */

.llf-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
}

/* ── Header ── */
.llf-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111;
}
.llf-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0 0 16px;
}
.llf-divider {
    border: none;
    border-top: 2px solid #111;
    margin: 0 0 20px;
}
.llf-intro,
.llf-instructions {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #222;
    margin-bottom: 14px;
}
.llf-underline {
    text-decoration: underline;
    font-style: italic;
}

/* ── Scale Legend ── */
.llf-scale-legend {
    display: flex;
    justify-content: space-between;
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    border-radius: 40px;
    padding: 14px 24px;
    margin-bottom: 2rem;
}
.llf-scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.llf-scale-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}
.llf-scale-label {
    font-size: 0.72rem;
    color: #555;
    text-align: center;
}

/* ── Name Field ── */
.llf-name-field {
    margin-bottom: 1.5rem;
}
.llf-name-field label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}
.llf-name-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.llf-name-field input:focus {
    border-color: #888;
}

/* ── Cards ── */
.llf-card {
    border: 2px solid var(--card-color);
    border-radius: 14px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #fff;
}

/* Card Header */
.llf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(to right, var(--card-color) 0%, color-mix(in srgb, var(--card-color) 60%, #2a0a00) 100%);
}
.llf-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.llf-card-icon {
    font-size: 1.3rem;
    background: rgba(255,255,255,0.35);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.llf-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: block;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.llf-card-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    display: block;
}

/* ── Rating Buttons ── */
.llf-rating-group {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255,255,255,0.25);
    border-radius: 40px;
    padding: 6px 12px;
}
.llf-rating-btn {
    cursor: pointer;
    position: relative;
}
.llf-rating-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.llf-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s, border-color 0.18s;
    user-select: none;
}
.llf-rating-btn:hover .llf-num {
    background: rgba(255,255,255,0.4);
    transform: scale(1.08);
}
.llf-rating-btn input:checked + .llf-num {
    background: #fff;
    color: var(--card-color);
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Card Body */
.llf-card-body {
    padding: 14px 18px 16px;
}
.llf-examples-label {
    display: block;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}
.llf-card-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.93rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.llf-card-body textarea:focus {
    border-color: var(--card-color);
    background: #fff;
}

/* ── Submit Button ── */
.llf-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}
.llf-submit-btn:hover {
    background: #333;
    transform: translateY(-1px);
}
.llf-submit-btn:active {
    transform: translateY(0);
}

/* ── Message ── */
.llf-message {
    margin-top: 1rem;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 500;
    text-align: center;
}
.llf-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.llf-message.error {
    background: #ffeaea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .llf-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .llf-rating-group {
        width: 100%;
        justify-content: space-between;
    }
    .llf-scale-legend {
        padding: 10px 12px;
        gap: 4px;
    }
    .llf-scale-label {
        font-size: 0.62rem;
    }
    .llf-num {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ── User Info Fields (Name, Email, WhatsApp) ── */
.llf-user-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 1.75rem;
    background: #f9f9f9;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 18px;
}
.llf-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.llf-field-half {
    flex: 1 1 calc(50% - 7px);
    min-width: 200px;
}
.llf-field-full {
    flex: 1 1 100%;
}
.llf-field-group label {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
}
.llf-field-group input {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
    background: #fff;
    font-family: inherit;
}
.llf-field-group input:focus {
    border-color: #888;
}
.llf-required {
    color: #d63638;
    font-size: 0.85rem;
}

@media (max-width: 520px) {
    .llf-field-half {
        flex: 1 1 100%;
    }
}
