/* ════════════════════════════════════════════════════════════════════════
   B2B Apply Form Overlay — re-skins the /become-agent application form
   with the full dark+emerald B2B theme. Hides legacy header/footer and
   gives the form a clean B2B canvas.
   ════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700&display=swap');

body.gp-b2b-apply {
    background: #08090C !important;
    color: #D6D9E0 !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    min-height: 100vh;
}

body.gp-b2b-apply::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Soft top-glow */
body.gp-b2b-apply::after {
    content: '';
    position: fixed;
    left: 50%; top: -160px;
    width: 800px; height: 800px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 229, 139, 0.08) 0%, transparent 50%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

body.gp-b2b-apply > * { position: relative; z-index: 2; }

/* Hide legacy chrome */
body.gp-b2b-apply .preloader,
body.gp-b2b-apply .header,
body.gp-b2b-apply .menu-fixed,
body.gp-b2b-apply .footer,
body.gp-b2b-apply .hero-section,
body.gp-b2b-apply .breadcrumb-section,
body.gp-b2b-apply .breadcrumb,
body.gp-b2b-apply .footer-section { display: none !important; }

/* Section padding reset */
body.gp-b2b-apply section[class*="pt-"],
body.gp-b2b-apply section[class*="pb-"],
body.gp-b2b-apply section[class*="py-"] { padding: 0 !important; background: transparent !important; }

body.gp-b2b-apply section { background: transparent !important; }

body.gp-b2b-apply .container,
body.gp-b2b-apply .container-fluid {
    max-width: 1180px !important;
    padding: 48px 24px !important;
}

/* Header reconstructed inside the page (since we hid the legacy one) */
body.gp-b2b-apply::before { z-index: 0; }

body.gp-b2b-apply .gp-apply-shell {
    max-width: 980px;
    margin: 0 auto;
}

body.gp-b2b-apply .gp-apply-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.gp-b2b-apply .gp-apply-logo {
    font-family: 'General Sans', 'DM Sans', sans-serif !important;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF !important;
    text-decoration: none !important;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.gp-b2b-apply .gp-apply-tag {
    font-size: 11px;
    color: #F4C341;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(244, 195, 65, 0.06);
    border: 1px solid rgba(244, 195, 65, 0.12);
}

body.gp-b2b-apply .gp-apply-back {
    color: #9CA1AE !important;
    font-size: 13px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.gp-b2b-apply .gp-apply-back:hover { color: #00E58B !important; }

/* Headings */
body.gp-b2b-apply h1,
body.gp-b2b-apply h2,
body.gp-b2b-apply h3,
body.gp-b2b-apply .section-title,
body.gp-b2b-apply .section__title,
body.gp-b2b-apply .hero-title {
    color: #FFFFFF !important;
    font-family: 'General Sans', 'DM Sans', sans-serif !important;
    letter-spacing: -0.025em !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin: 0 0 16px !important;
}

body.gp-b2b-apply .section__title,
body.gp-b2b-apply h1 { font-size: clamp(32px, 4.5vw, 48px) !important; line-height: 1.05 !important; }
body.gp-b2b-apply h2 { font-size: clamp(24px, 3vw, 32px) !important; }
body.gp-b2b-apply h3 { font-size: 20px !important; }

body.gp-b2b-apply p,
body.gp-b2b-apply .hero-subtitle,
body.gp-b2b-apply .section__lede,
body.gp-b2b-apply .section-text {
    color: #9CA1AE !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* Form card */
body.gp-b2b-apply form,
body.gp-b2b-apply .account-form,
body.gp-b2b-apply .agent-application-form,
body.gp-b2b-apply .form-section {
    background: #11131A !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    margin-top: 32px !important;
    box-shadow: 0 0 0 1px rgba(0, 229, 139, 0.04), 0 32px 80px rgba(0, 0, 0, 0.5);
}

/* Two-column form-grid */
body.gp-b2b-apply .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 0 !important;
}

body.gp-b2b-apply .form-group {
    margin-bottom: 0 !important;
}

body.gp-b2b-apply .form-group--full,
body.gp-b2b-apply .form-group[data-full="1"] {
    grid-column: 1 / -1;
}

/* Labels + inputs */
body.gp-b2b-apply label,
body.gp-b2b-apply .form-label {
    color: #D6D9E0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: block;
}

body.gp-b2b-apply input[type="text"],
body.gp-b2b-apply input[type="email"],
body.gp-b2b-apply input[type="password"],
body.gp-b2b-apply input[type="tel"],
body.gp-b2b-apply input[type="number"],
body.gp-b2b-apply input[type="url"],
body.gp-b2b-apply textarea,
body.gp-b2b-apply select,
body.gp-b2b-apply .form-control,
body.gp-b2b-apply .form--control {
    background: #181B26 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-family: 'DM Sans', sans-serif !important;
    width: 100% !important;
    height: auto !important;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
    box-shadow: none !important;
}

body.gp-b2b-apply textarea { min-height: 160px; resize: vertical; }

body.gp-b2b-apply input:focus,
body.gp-b2b-apply textarea:focus,
body.gp-b2b-apply select:focus,
body.gp-b2b-apply .form-control:focus,
body.gp-b2b-apply .form--control:focus {
    outline: none !important;
    border-color: #00E58B !important;
    background: #20242F !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 139, 0.18) !important;
}

body.gp-b2b-apply input::placeholder,
body.gp-b2b-apply textarea::placeholder { color: #6E7686 !important; }

/* Buttons */
body.gp-b2b-apply .cmn-btn,
body.gp-b2b-apply .btn-primary,
body.gp-b2b-apply button[type="submit"],
body.gp-b2b-apply .submit-btn {
    background: #00E58B !important;
    color: #053825 !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 16px 32px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 200ms ease !important;
    margin-top: 24px !important;
    box-shadow: 0 8px 32px rgba(0, 229, 139, 0.2) !important;
}

body.gp-b2b-apply .cmn-btn:hover,
body.gp-b2b-apply button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 36px rgba(0, 229, 139, 0.32) !important;
    color: #053825 !important;
}

/* Links */
body.gp-b2b-apply a { color: #00E58B !important; text-decoration: none !important; }
body.gp-b2b-apply a:hover { color: #7DD3FC !important; }

/* Alerts */
body.gp-b2b-apply .alert,
body.gp-b2b-apply .alert-danger,
body.gp-b2b-apply .invalid-feedback {
    background: rgba(255, 107, 107, 0.08) !important;
    border: 1px solid rgba(255, 107, 107, 0.25) !important;
    color: #FF8B8B !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}

body.gp-b2b-apply .alert-success {
    background: rgba(0, 229, 139, 0.08) !important;
    border-color: rgba(0, 229, 139, 0.25) !important;
    color: #00E58B !important;
}

/* Info blocks (left column when used) */
body.gp-b2b-apply .info-cards,
body.gp-b2b-apply .agent-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

body.gp-b2b-apply .info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
}

body.gp-b2b-apply .info-card-label {
    color: #6E7686;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

body.gp-b2b-apply .info-card-value {
    color: #FFFFFF;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 17px;
}

/* Mobile */
@media (max-width: 767px) {
    body.gp-b2b-apply .container,
    body.gp-b2b-apply .container-fluid { padding: 32px 16px !important; }
    body.gp-b2b-apply form,
    body.gp-b2b-apply .agent-application-form { padding: 28px 20px !important; }
    body.gp-b2b-apply .form-grid { grid-template-columns: 1fr !important; }
    body.gp-b2b-apply .info-cards { grid-template-columns: 1fr; }
    body.gp-b2b-apply .gp-apply-topbar { margin-bottom: 32px; }
}
