/* Extracted from resources/views/become-ib.blade.php */

/* ── Page wrapper safety ── */
html, body { overflow-x: hidden; }
#fx-dashboard, #fx-dashboard main { min-width: 0; max-width: 100%; }
#fx-dashboard main { overflow-x: hidden; }

/* ── Banner ── */
.bib-banner {
    position: relative;
    background: url("../images/banner%20bg.png") center center / 100% 100% no-repeat;
    border-radius: 22px;
    margin-bottom: 36px;
    aspect-ratio: 1459 / 362;
    min-height: 200px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.bib-banner-body {
    position: relative; z-index: 2;
    padding: 56px 64px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 60%;
}
.bib-badge {
    display: inline-flex;
    background: #2563eb;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    width: fit-content;
}
.bib-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
}
.bib-sub {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 22px;
    max-width: 520px;
    line-height: 1.5;
}
.bib-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.bib-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.bib-btn-primary:hover { background: #1d4ed8; }
.bib-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.bib-btn-outline:hover { background: rgba(255,255,255,0.08); }
.bib-checks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bib-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.92);
    font-size: 0.92rem;
    font-weight: 500;
}
.bib-check-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid #22c55e;
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Why Join section ── */
.bib-why-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
}
.bib-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.bib-why-card {
    background: #292041;
    border: 1px solid #DBE9FF;
    border-radius: 18px;
    padding: 22px 22px 26px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bib-why-icon-box {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}
.bib-why-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.bib-why-card-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0;
}

/* ── Bottom 3 cards ── */
.bib-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 18px;
    margin-bottom: 32px;
}
.bib-card {
    background: linear-gradient(180deg, rgba(63,49,99,0.92) 0%, rgba(43,35,70,0.88) 50%, rgba(23,18,36,0.96) 100%);
    border: 1px solid #43444B;
    border-radius: 18px;
    padding: 24px 26px;
}
.bib-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.bib-card-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 22px;
    line-height: 1.5;
}

/* How it works steps */
.bib-steps { display: flex; flex-direction: column; }
.bib-step {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 22px;
}
.bib-step:last-child { padding-bottom: 0; }
.bib-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.20);
}
.bib-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    background: #fff;
    z-index: 1;
}
.bib-step-body { flex: 1; min-width: 0; }
.bib-step-title { font-size: 0.95rem; font-weight: 500; color: #fff; margin-bottom: 2px; }
.bib-step-desc { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* FAQ */
.bib-faq-list { display: flex; flex-direction: column; gap: 8px; }
.bib-faq-item {
    background: #28323C;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.bib-faq-item.open { border-color: #43444B; }
.bib-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    gap: 12px;
}
.bib-faq-toggle {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.30);
    color: rgba(255,255,255,0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.bib-faq-a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 12px;
    display: none;
}
.bib-faq-item.open .bib-faq-a { display: block; }

/* Help card */
.bib-help-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.bib-help-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: #DBE9FF;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-bottom: 18px;
}
.bib-help-title { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.bib-help-desc { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 18px; max-width: 280px; }
.bib-help-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.bib-help-btn:hover { background: #1d4ed8; }

/* ── Responsive (Bootstrap-aligned breakpoints) ── */

/* ≤1599px — full HD laptops */
@media (max-width: 1599px) {
    .bib-banner-body { padding: 44px 48px; max-width: 60%; }
    .bib-title { font-size: 2.2rem; line-height: 1.15; margin-bottom: 12px; }
    .bib-sub { font-size: 0.88rem; max-width: 480px; margin-bottom: 18px; }
    .bib-btn-primary, .bib-btn-outline { padding: 8px 20px; font-size: 0.85rem; }
    .bib-cta-row { gap: 18px; }
    .bib-checks { gap: 16px; }
    .bib-check { font-size: 0.85rem; }
}

/* ≤1399px (xxl down) — standard laptops (1366px etc.) */
@media (max-width: 1399px) {
    .bib-banner-body { padding: 22px 26px; max-width: 56%; }
    .bib-title { font-size: 1.4rem; margin-bottom: 8px; line-height: 1.15; }
    .bib-title br { display: none; }
    .bib-sub { font-size: 0.74rem; max-width: 360px; margin-bottom: 12px; line-height: 1.4; }
    .bib-btn-primary, .bib-btn-outline { padding: 6px 14px; font-size: 0.74rem; border-radius: 6px; }
    .bib-cta-row { gap: 10px; }
    .bib-checks { gap: 10px; }
    .bib-check { font-size: 0.72rem; gap: 5px; }
    .bib-check-icon { width: 16px; height: 16px; font-size: 0.55rem; }
    .bib-badge { margin-bottom: 10px; padding: 4px 10px; font-size: 0.66rem; }
}

/* ≤1199px (xl down) — iPad Pro / small laptops */
@media (max-width: 1199px) {
    .bib-banner-body { padding: 18px 22px; max-width: 54%; }
    .bib-badge { margin-bottom: 8px; padding: 3px 10px; font-size: 0.62rem; }
    .bib-title { font-size: 1.25rem; margin-bottom: 6px; line-height: 1.15; }
    .bib-title br { display: none; }
    .bib-sub { font-size: 0.7rem; margin-bottom: 10px; max-width: 320px; line-height: 1.4; }
    .bib-btn-primary, .bib-btn-outline { padding: 5px 12px; font-size: 0.7rem; border-radius: 6px; }
    .bib-cta-row { gap: 8px; }
    .bib-checks { gap: 8px; }
    .bib-check { font-size: 0.68rem; gap: 5px; }
    .bib-check-icon { width: 14px; height: 14px; font-size: 0.5rem; border-width: 1px; }

    .bib-why-grid { grid-template-columns: repeat(2, 1fr); }
    .bib-bottom-grid { grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; }
    .bib-card { padding: 20px 22px; }
}

/* ≤991px (lg down) — tablet (sidebar collapses) */
@media (max-width: 991px) {
    .bib-banner { aspect-ratio: auto; min-height: auto; }
    .bib-banner-body { max-width: 100%; padding: 22px 36px 22px 20px; }
    .bib-title { font-size: 1.6rem; }
    .bib-sub { font-size: 0.82rem; max-width: 100%; }
    .bib-btn-primary, .bib-btn-outline { padding: 7px 18px; font-size: 0.82rem; }
    .bib-bottom-grid { grid-template-columns: 1fr; }
    .bib-help-card { padding: 28px 24px; }
}

/* ≤767px (md down) — large mobile */
@media (max-width: 767px) {
    .bib-banner { background-size: cover; }
    .bib-title { font-size: 1.4rem; }
    .bib-why-title { font-size: 1.45rem; }
    .bib-why-grid { gap: 14px; }
    .bib-cta-row { gap: 12px; }
    .bib-checks { gap: 10px; }
    .bib-card { padding: 18px 18px; }
}

/* ≤575px (sm down) — mobile */
@media (max-width: 575px) {
    .bib-banner-body { padding: 18px 32px 18px 16px; }
    .bib-badge { margin-bottom: 10px; padding: 4px 10px; font-size: 0.68rem; }
    .bib-title { font-size: 1.2rem; margin-bottom: 8px; }
    .bib-sub { font-size: 0.76rem; margin-bottom: 14px; }
    .bib-btn-primary, .bib-btn-outline { padding: 7px 14px; font-size: 0.76rem; }
    .bib-checks { gap: 8px; }
    .bib-check { font-size: 0.72rem; }
    .bib-why-grid { grid-template-columns: 1fr; }
    .bib-why-card { min-height: auto; padding: 18px 18px 22px; }
    .bib-why-title { font-size: 1.2rem; margin-bottom: 14px; }
    .bib-help-icon { width: 70px; height: 70px; font-size: 1.9rem; }
}

.ib-label {
    color: #7b8fc7;
}

.ib-input,
.ib-input-group .form-control,
.ib-input-group .input-group-text {
    border-color: #dde2ef;
    border-radius: 8px !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.ib-input:focus {
    border-color: #7b8fc7;
    box-shadow: 0 0 0 3px rgba(123,143,199,0.12);
}

.ib-input-group .input-group-text {
    border-color: #dde2ef;
}

.ib-input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
}

.fx-radio-accent:checked,
.fx-check-accent:checked {
    background-color: #ffbf2f;
    border-color: #ffbf2f;
}

.fx-region-btn {
    border: 1.5px solid #dde2ef;
    color: #555;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
}

.fx-region-btn.active {
    background: #ffbf2f;
    border-color: #ffbf2f;
    color: #111;
    font-weight: 600;
}

.fx-region-btn:hover:not(.active) {
    background: #f8f9ff;
    border-color: #b0bcdd;
}

.ib-select-btn {
    text-align: left;
    background: #fff;
    border-color: #dde2ef;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.ib-select-btn:hover,
.ib-select-btn:focus,
.ib-select-btn.show {
    background: #fff;
    border-color: #7b8fc7;
    color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(123,143,199,0.12);
}

.ib-select-btn::after {
    flex-shrink: 0;
}

.ib-dropdown-menu {
    font-size: 0.9rem;
    border-color: #dde2ef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: 220px;
    overflow-y: auto;
}

.ib-select-item.active,
.ib-select-item:active {
    background-color: #ffbf2f;
    color: #111;
}

.ib-submit-btn {
    background: #ffbf2f;
    color: #111;
    border-radius: 8px;
    min-width: 280px;
    border: none;
}

.ib-submit-btn:hover,
.ib-submit-btn:focus,
.ib-submit-btn:active {
    background: #e6ac1a !important;
    color: #111 !important;
    border: none;
}

/* Success Modal */
.success-illus-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.success-illus-img {
    width: 280px;
    height: auto;
    object-fit: contain;
}

.ib-success-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}
.ib-success-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.ib-success-body {
    padding: 1.75rem 1.75rem 1.5rem;
    background: #fff;
}
.ib-success-sub {
    color: #666;
    font-size: 0.92rem;
}

.ib-modal-btn {
    background: #ffbf2f;
    color: #111;
    border-radius: 10px;
    font-size: 1rem;
}

.ib-modal-btn:hover {
    background: #e6ac1a;
    color: #111;
}

#ibSuccessModal .modal-content {
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

@media (max-width: 575.98px) {
    .ib-submit-btn {
        min-width: unset;
        width: 100%;
    }

    .ib-input,
    .ib-input-group .form-control,
    .ib-input-group .input-group-text {
        font-size: 0.85rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}
