/* TF Contact Form — style.css */

.tfcf-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── FORM LAYOUT ── */
.tfcf-form { display: flex; flex-direction: column; gap: 0; }
.tfcf-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── FIELD ── */
.tfcf-field { margin-bottom: 20px; }
.tfcf-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}
.tfcf-req      { color: #e74c3c; }
.tfcf-optional { font-size: 11px; font-weight: 400; color: #999; }
.tfcf-char-count { font-size: 11px; font-weight: 400; color: #aaa; }

/* ── INPUTS ── */
.tfcf-field input,
.tfcf-field select,
.tfcf-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
    appearance: none;
}
.tfcf-field input:focus,
.tfcf-field select:focus,
.tfcf-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.tfcf-field input.tfcf-invalid,
.tfcf-field select.tfcf-invalid,
.tfcf-field textarea.tfcf-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.10);
}
.tfcf-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.tfcf-field input::placeholder,
.tfcf-field textarea::placeholder { color: #bbb; }

/* ── SELECT ARROW ── */
.tfcf-select-wrap { position: relative; }
.tfcf-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #888;
    pointer-events: none;
}
.tfcf-field select { padding-right: 36px; cursor: pointer; }

/* ── ERROR TEXT ── */
.tfcf-error {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    min-height: 0;
}

/* ── PRIORITY PILLS ── */
.tfcf-priority-group { display: flex; gap: 10px; flex-wrap: wrap; }
.tfcf-priority-option { cursor: pointer; }
.tfcf-priority-option input[type="radio"] { display: none; }
.tfcf-priority-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #fafafa;
    transition: all 0.18s;
    user-select: none;
}
.tfcf-priority-option:hover .tfcf-priority-pill { border-color: #aaa; background: #f0f0f0; }
.tfcf-priority-option input:checked + .tfcf-priority-pill {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

/* ── PRIVACY NOTE ── */
.tfcf-privacy-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.5;
}
.tfcf-privacy-note a { color: #2563eb; }

/* ── SUBMIT BUTTON ── */
.tfcf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    width: 100%;
    font-family: inherit;
}
.tfcf-submit:hover   { background: #1d4ed8; box-shadow: 0 4px 16px rgba(37,99,235,0.30); transform: translateY(-1px); }
.tfcf-submit:active  { transform: scale(0.99); }
.tfcf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── SPINNER ── */
.tfcf-spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tfcf-spin 0.65s linear infinite;
    display: none;
}
@keyframes tfcf-spin { to { transform: rotate(360deg); } }

/* ── FEEDBACK MESSAGES ── */
.tfcf-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    line-height: 1.5;
}
.tfcf-feedback.tfcf-feedback-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

/* ── SUCCESS STATE ── */
.tfcf-success {
    text-align: center;
    padding: 48px 24px;
}
.tfcf-success-icon {
    width: 72px; height: 72px;
    background: #d1fae5;
    border: 2px solid #6ee7b7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #059669;
    margin: 0 auto 20px;
    animation: tfcf-pop 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes tfcf-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tfcf-success h3 { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 10px; }
.tfcf-success p  { font-size: 15px; color: #555; line-height: 1.7; max-width: 380px; margin: 0 auto; }
.tfcf-send-another {
    margin-top: 24px;
    background: none;
    border: 1.5px solid #ddd;
    color: #666;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.tfcf-send-another:hover { border-color: #2563eb; color: #2563eb; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .tfcf-row { grid-template-columns: 1fr; gap: 0; }
    .tfcf-priority-group { gap: 8px; }
    .tfcf-priority-pill { padding: 7px 14px; font-size: 12px; }
}
