/* ═══════════════════════════════════════════════════════
   Flavor Contact Form — Frontend Styles
   ═══════════════════════════════════════════════════════ */

.fcf-wrapper {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fcf-form {
    position: relative;
}

.fcf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fcf-field {
    margin-bottom: 18px;
}

.fcf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.fcf-req {
    color: #c0392b;
}

.fcf-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fafafa;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
}

.fcf-input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, .06);
}

.fcf-input::placeholder {
    color: #aaa;
}

.fcf-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ── CAPTCHA ──────────────────────────────────────── */

.fcf-captcha-row {
    margin-bottom: 20px;
}

.fcf-captcha-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f0;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 10px 16px;
}

.fcf-captcha-icon {
    font-size: 18px;
}

.fcf-captcha-question {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.fcf-captcha-input {
    width: 64px;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    background: #fff;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.fcf-captcha-input::-webkit-outer-spin-button,
.fcf-captcha-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fcf-captcha-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, .06);
}

/* ── Submit Button ────────────────────────────────── */

.fcf-submit-row {
    margin-top: 4px;
}

.fcf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 36px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.fcf-submit-btn:hover {
    background: #333;
}

.fcf-submit-btn:active {
    transform: scale(.98);
}

.fcf-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.fcf-btn-loading {
    display: inline-flex;
    align-items: center;
}

/* ── Messages ─────────────────────────────────────── */

.fcf-message-box {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}

.fcf-msg-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.fcf-msg-error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ffccbc;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 480px) {
    .fcf-row {
        grid-template-columns: 1fr;
    }
    .fcf-captcha-box {
        flex-wrap: wrap;
    }
}

/* ── Spinner ──────────────────────────────────────── */

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