/* ==========================================
   New Era Contact Form — Unified Design v1.0
   Brand: #3858e9 | Font: Montserrat | Radius: 10px
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

#neacf-app.neacf-form-wrapper {
    --neacf-primary: #3858e9;
    --neacf-primary-hover: #2d4ad9;
    --neacf-primary-light: #eef1fd;
    --neacf-success: #10b981;
    --neacf-success-light: #d1fae5;
    --neacf-error: #ef4444;
    --neacf-error-light: #fef2f2;
    --neacf-text: #111827;
    --neacf-text-secondary: #6b7280;
    --neacf-text-muted: #9ca3af;
    --neacf-border: #e5e7eb;
    --neacf-border-light: #f3f4f6;
    --neacf-bg: #ffffff;
    --neacf-bg-subtle: #f9fafb;
    --neacf-radius: 10px;

    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    color: var(--neacf-text) !important;
    background: var(--neacf-bg) !important;
    border-radius: var(--neacf-radius) !important;
    border: 1px solid var(--neacf-border) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased !important;
    overflow: hidden !important;
}

#neacf-app.neacf-form-wrapper *,
#neacf-app.neacf-form-wrapper *::before,
#neacf-app.neacf-form-wrapper *::after {
    box-sizing: border-box !important;
}

/* Form Container */
#neacf-app .neacf-form-container {
    padding: 28px 24px !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
}

/* Header */
#neacf-app .neacf-header {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
}

#neacf-app .neacf-header h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--neacf-text) !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: -0.2px !important;
    font-family: inherit !important;
    text-align: left !important;
}

#neacf-app .neacf-header p {
    font-size: 13px !important;
    color: var(--neacf-text-secondary) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    text-align: left !important;
}

/* Fields */
#neacf-app .neacf-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

#neacf-app .neacf-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

#neacf-app .neacf-field label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--neacf-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: none !important;
    border: none !important;
    float: none !important;
    width: auto !important;
    text-align: left !important;
}

#neacf-app .neacf-req {
    color: var(--neacf-error) !important;
    font-weight: 600 !important;
}

#neacf-app .neacf-field input[type="text"],
#neacf-app .neacf-field input[type="email"],
#neacf-app .neacf-field textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--neacf-border) !important;
    border-radius: var(--neacf-radius) !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: var(--neacf-text) !important;
    background-color: var(--neacf-bg) !important;
    background-image: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
}

#neacf-app .neacf-field input[type="text"]:focus,
#neacf-app .neacf-field input[type="email"]:focus,
#neacf-app .neacf-field textarea:focus {
    border-color: var(--neacf-primary) !important;
    box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.1) !important;
    background-color: var(--neacf-bg) !important;
    outline: none !important;
}

#neacf-app .neacf-field input::placeholder,
#neacf-app .neacf-field textarea::placeholder {
    color: var(--neacf-text-muted) !important;
    opacity: 1 !important;
    font-style: normal !important;
}

#neacf-app .neacf-field textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

#neacf-app .neacf-field input.neacf-invalid,
#neacf-app .neacf-field textarea.neacf-invalid {
    border-color: var(--neacf-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* Actions */
#neacf-app .neacf-actions {
    margin: 24px 0 0 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

#neacf-app .neacf-btn-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 12px 24px !important;
    border-radius: var(--neacf-radius) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    border: none !important;
    background: var(--neacf-primary) !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

#neacf-app .neacf-btn-submit:hover {
    background: var(--neacf-primary-hover) !important;
    box-shadow: 0 4px 12px rgba(56, 88, 233, 0.25) !important;
    color: #fff !important;
}

#neacf-app .neacf-btn-submit:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

#neacf-app .neacf-btn-submit svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    fill: none !important;
}

/* Loading */
#neacf-app .neacf-loading {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    border-radius: var(--neacf-radius) !important;
    z-index: 10 !important;
    backdrop-filter: blur(4px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#neacf-app .neacf-loading.neacf-visible {
    display: flex !important;
}

#neacf-app .neacf-loading p {
    font-size: 14px !important;
    color: var(--neacf-text-secondary) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

#neacf-app .neacf-loading-spinner {
    width: 32px !important;
    height: 32px !important;
    border: 2.5px solid var(--neacf-border) !important;
    border-top-color: var(--neacf-primary) !important;
    border-radius: 50% !important;
    animation: neacfSpin 0.7s linear infinite !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes neacfSpin {
    to { transform: rotate(360deg); }
}

/* Success */
#neacf-app .neacf-success {
    display: none !important;
    text-align: center !important;
    padding: 48px 24px !important;
    animation: neacfFadeIn 0.4s ease !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
}

#neacf-app .neacf-success.neacf-visible {
    display: block !important;
}

#neacf-app .neacf-success-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: var(--neacf-success-light) !important;
    color: var(--neacf-success) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
}

#neacf-app .neacf-success-icon svg {
    width: 32px !important;
    height: 32px !important;
    display: inline-block !important;
}

#neacf-app .neacf-success h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--neacf-text) !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: -0.2px !important;
    font-family: inherit !important;
}

#neacf-app .neacf-success p {
    font-size: 14px !important;
    color: var(--neacf-text-secondary) !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    font-family: inherit !important;
}

@keyframes neacfFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Error */
#neacf-app .neacf-error-msg {
    display: none !important;
    background: var(--neacf-error-light) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    border-radius: var(--neacf-radius) !important;
    padding: 10px 14px !important;
    margin: 14px 0 0 0 !important;
}

#neacf-app .neacf-error-msg.neacf-visible {
    display: block !important;
}

#neacf-app .neacf-error-msg p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    color: var(--neacf-error) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
}

/* Responsive */
@media (max-width: 600px) {
    #neacf-app .neacf-form-container {
        padding: 20px 16px !important;
    }

    #neacf-app .neacf-header h2 {
        font-size: 16px !important;
    }
}
