/* ═══════════════════════════════════════════════
   Flywell Sports Enquiry Form — Stylesheet v1.0.0
═══════════════════════════════════════════════ */

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

.flywell-sf-form,
.flywell-sf-success {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
    box-sizing: border-box;
}

/* ── Intro text ── */
.flywell-sf-intro {
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

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

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

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

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

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

/* ── Inputs, selects, textarea ── */
.flywell-sf-field input[type="text"],
.flywell-sf-field input[type="email"],
.flywell-sf-field input[type="tel"],
.flywell-sf-field select,
.flywell-sf-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-sf-field input[type="text"]:focus,
.flywell-sf-field input[type="email"]:focus,
.flywell-sf-field input[type="tel"]:focus,
.flywell-sf-field select:focus,
.flywell-sf-field textarea:focus {
    border-color: #0c2648;
}

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

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

/* ── Select wrapper ── */
.flywell-sf-select-wrap {
    position: relative;
}

.flywell-sf-select-wrap select {
    padding-right: 40px;
    cursor: pointer;
}

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

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

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

/* ── Info box ── */
.flywell-sf-info-box {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.flywell-sf-info-title {
    color: #0d1b3e;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.flywell-sf-info-body {
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

/* ── Submit button ── */
.flywell-sf-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;
}

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

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

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

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

/* ── Success state ── */
.flywell-sf-success {
    text-align: center;
    padding: 60px 44px;
}

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

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

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

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

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

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