/* ═══════════════════════════════════════════════
   Flywell Corporate Forms — Stylesheet v1.0.0
═══════════════════════════════════════════════ */

.flywell-corp-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* ── Tab bar ── */
.flywell-corp-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.flywell-corp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0d1b3e;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.flywell-corp-tab.active {
    background: #b4181d;
    color: #ffffff;
    border-color: transparent;
}

.flywell-corp-tab:hover:not(.active) {
    border-color: #0c2648;
    color: #0c2648;
}

/* ── Panel card ── */
.flywell-corp-panel > .flywell-corp-form,
.flywell-corp-panel > .flywell-corp-success {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    box-sizing: border-box;
}

/* ── Form title / subtitle ── */
.flywell-corp-form-title {
    color: #0d1b3e;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.flywell-corp-form-sub {
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

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

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

/* ── Fields ── */
.flywell-corp-field {
    display: flex;
    flex-direction: column;
}

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

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

/* ── Inputs / selects / textarea ── */
.flywell-corp-field input[type="text"],
.flywell-corp-field input[type="email"],
.flywell-corp-field input[type="tel"],
.flywell-corp-field input[type="number"],
.flywell-corp-field select,
.flywell-corp-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;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.flywell-corp-field input:focus,
.flywell-corp-field select:focus,
.flywell-corp-field textarea:focus {
    border-color: #0c2648;
}

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

.flywell-corp-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* ── Checkboxes ── */
.flywell-corp-checks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
}

.flywell-corp-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0d1b3e;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

.flywell-corp-check input[type="checkbox"] {
    accent-color: #b4181d;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

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

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

/* ── Submit button ── */
.flywell-corp-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: 8px;
}

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

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

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

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

/* ── Success state ── */
.flywell-corp-success {
    text-align: center;
    padding: 60px 40px !important;
}

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

.flywell-corp-success-inner h3 {
    color: #0d1b3e;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.flywell-corp-success-inner p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.flywell-corp-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-corp-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-corp-panel > .flywell-corp-form,
    .flywell-corp-panel > .flywell-corp-success {
        padding: 24px 18px;
    }

    .flywell-corp-wrapper {
        padding: 0 12px;
    }

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

    .flywell-corp-checks {
        grid-template-columns: 1fr 1fr;
    }

    .flywell-corp-tabs {
        gap: 8px;
    }

    .flywell-corp-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}
