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

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

.flywell-uf-form,
.flywell-uf-success {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* ── Section titles ── */
.flywell-uf-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #0d1b3e;
    margin: 30px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #fdb813;
}

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

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

.flywell-uf-row.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

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

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

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

/* ── Inputs & Textarea ── */
.flywell-uf-field input[type="text"],
.flywell-uf-field input[type="email"],
.flywell-uf-field input[type="tel"],
.flywell-uf-field select,
.flywell-uf-field textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    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-uf-field input[type="text"]:focus,
.flywell-uf-field input[type="email"]:focus,
.flywell-uf-field input[type="tel"]:focus,
.flywell-uf-field select:focus,
.flywell-uf-field textarea:focus {
    border-color: #0c2648;
}

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

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

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

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

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

/* ── Phone field ── */
.flywell-uf-phone-wrap {
    display: flex;
}

.flywell-uf-phone-prefix {
    background: #f5f7fa;
    border: 1.5px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.flywell-uf-phone-wrap input[type="tel"] {
    border-radius: 0 10px 10px 0 !important;
    border-left: none !important;
}

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

/* ── Server error banner ── */
.flywell-uf-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-uf-submit {
    width: 100%;
    background: #b4181d;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease;
}

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

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

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

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

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

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

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

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

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

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

    .flywell-uf-row.two-col,
    .flywell-uf-row.three-col {
        grid-template-columns: 1fr;
    }
}
