/* ═══════════════════════════════════════════════
   Flywell Contact Form — Stylesheet v1.0.0
═══════════════════════════════════════════════ */

/* Wrapper card */
.flywell-cf-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 44px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
    font-family: 'Inter', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

.flywell-cf-wrapper h2 {
    color: #0d1b3e;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.flywell-cf-wrapper > p {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Layout rows */
.flywell-cf-row {
    margin-bottom: 18px;
}

.flywell-cf-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Field */
.flywell-cf-field {
    display: flex;
    flex-direction: column;
}

.flywell-cf-field label,
.flywell-cf-group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0d1b3e;
    margin-bottom: 7px;
}

.flywell-cf-field .req {
    color: #b4181d;
}

/* Inputs, selects, textarea */
.flywell-cf-field input[type="text"],
.flywell-cf-field input[type="email"],
.flywell-cf-field input[type="tel"],
.flywell-cf-field select,
.flywell-cf-field textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 13px 15px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0d1b3e;
    outline: none;
    box-sizing: border-box;
    background: #ffffff;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.flywell-cf-field input[type="text"]:focus,
.flywell-cf-field input[type="email"]:focus,
.flywell-cf-field input[type="tel"]:focus,
.flywell-cf-field select:focus,
.flywell-cf-field textarea:focus {
    border-color: #0c2648;
}

.flywell-cf-field input.invalid,
.flywell-cf-field select.invalid,
.flywell-cf-field textarea.invalid {
    border-color: #b4181d;
}

/* Select wrapper with chevron */
.flywell-cf-select-wrap {
    position: relative;
}

.flywell-cf-select-wrap select {
    padding-right: 42px;
    cursor: pointer;
}

.flywell-cf-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Textarea */
.flywell-cf-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

/* Inline validation error */
.flywell-cf-error {
    font-size: 12px;
    color: #b4181d;
    margin-top: 5px;
    min-height: 16px;
    display: block;
}

/* Server-level error banner */
.flywell-cf-server-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 18px;
}

/* Radio buttons */
.flywell-cf-radios {
    display: flex;
    gap: 28px;
    margin-top: 4px;
}

.flywell-cf-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0d1b3e;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

.flywell-cf-radio input[type="radio"] {
    accent-color: #0c2648;
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin: 0;
}

/* Submit button */
.flywell-cf-submit {
    width: 100%;
    background: #b4181d;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease;
    margin-top: 28px;
}

.flywell-cf-submit:hover:not(:disabled) {
    background: #8e1115;
}

.flywell-cf-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner animation */
.spin {
    animation: flywell-spin 0.8s linear infinite;
}

@keyframes flywell-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Success state ── */
.flywell-cf-success {
    text-align: center;
    padding: 40px 20px;
}

.flywell-cf-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.flywell-cf-success-inner h3 {
    color: #0d1b3e;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.flywell-cf-success-inner p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0;
}

.flywell-cf-reset {
    margin-top: 8px;
    background: none;
    border: 2px solid #0c2648;
    border-radius: 10px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0c2648;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.flywell-cf-reset:hover {
    background: #0c2648;
    color: #ffffff;
}

/* ── Honeypot ── */
.flywell-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .flywell-cf-wrapper {
        padding: 24px 20px;
    }

    .flywell-cf-row.two-col {
        grid-template-columns: 1fr;
    }

    .flywell-cf-radios {
        flex-direction: column;
        gap: 12px;
    }
}
