/* ==========================================================================
   mbs-pages.css - styles for pages ported from the Manjeet_Singh project
   (Download Application, Risk Profiling, Online Investor Services, Portfolio
   Management, Retirement & Pension, Tax & Estate, Terms, Policy, Refund,
   Disclaimer, Disclosure, Privacy Policy, Important Links).
   Manjeet's purple "brand" variables are mapped to Akshat's blue theme here.
   ========================================================================== */
:root {
    --brand-gold: #0a5c3d;
    --brand-gold-light: #7cc242;
    --brand-gold-dark: #063a2a;
    --brand-charcoal: #063a2a;
    --brand-charcoal-soft: #0d4a34;
    --brand-cream: #eef6f0;
    --brand-gold-gradient: linear-gradient(135deg, #063a2a 0%, #0a5c3d 55%, #157a4f 100%);
    --brand-shadow: 0 10px 30px rgba(4, 40, 28, 0.12);
}

.about-section { padding: 60px 0; position: relative; }

.section-title-border {
    display: inline-block;
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: var(--brand-gold-gradient);
    margin-bottom: 18px;
}

.section-title-border.border-center { display: block; margin-left: auto; margin-right: auto; }

.about-section h2.title { font-size: 30px; font-weight: 700; color: #063a2a; margin: 0 0 14px; }

/* ---- legal / text pages (Terms, Policy, Refund, Disclaimer, Disclosure, Privacy) ---- */
.mbs-legal {
    background: #ffffff;
    border: 1px solid #e1ede4;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(4, 40, 28, 0.08);
    padding: 36px 42px;
    margin: 0 15px;
    font-size: 15px;
    line-height: 1.9;
    color: #333333;
    text-align: justify;
}

    .mbs-legal strong { color: #063a2a; }
    .mbs-legal strong.u-text-5, .mbs-legal .u-text-palette-2-base { display: inline-block; font-size: 18px; margin-top: 14px; }
    .mbs-legal a { color: #0a5c3d; font-weight: 600; }
    .mbs-legal p { margin-bottom: 14px; }
    .mbs-legal ul, .mbs-legal ol { padding-left: 22px; }

/* ---- Important Links ---- */
.mbs-legal .fa-check-square { color: #0a5c3d; margin-right: 6px; }

/* ---- shared button used by the ported pages ---- */
.btn-theme.btn-circle {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: #0a5c3d;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    text-decoration: none !important;
    transition: background 0.25s ease;
}

    .btn-theme.btn-circle:hover { background: #063a2a; }

@media only screen and (max-width: 767px) {
    .about-section { padding: 36px 0; }
    .about-section h2.title { font-size: 23px; }
    .mbs-legal { padding: 22px 16px; margin: 0; text-align: left; font-size: 14.5px; }
}

/* ---- Download Application page ------------------------------------------ */
.download-app-subtitle {
    font-size: 18px;
    color: #444444;
}

.app-store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 26px;
}

.app-store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 220px;
    max-width: 250px;
    gap: 10px;
    padding: 22px 20px;
    border: 2px solid var(--brand-charcoal);
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-store-card:hover {
    border-color: var(--brand-gold);
    box-shadow: var(--brand-shadow);
    transform: translateY(-3px);
}

.app-store-card i {
    font-size: 26px;
    color: var(--brand-charcoal);
}

.app-store-card > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.app-store-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
}

.app-store-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--brand-charcoal);
}

/* the QR <img> tags are unconstrained in markup (render at native pixel
   size otherwise - hundreds of px) - pin them below the icon/label at a
   size big enough to actually scan comfortably. */
.app-store-card .qr-img,
.app-store-card img.qr-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px;
    margin: 4px 0 0;
    flex-shrink: 0;
}

/* Right-side "phone mockup" visual - the source <img> is a large square
   illustration (811x811) with no size constraint in markup, so it was
   rendering near full native size and overflowing its column. */
.download-app-visual { display: flex; justify-content: center; }
.phone-mockup { max-width: 100%; }

.phone-app-header img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--brand-shadow);
}

.phone-app-header span {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-weight: 700;
    color: var(--brand-charcoal);
}

@media only screen and (max-width: 991px) {
    .phone-app-header img { max-width: 280px; }
}

.download-app-note {
    font-size: 14px;
    color: #666666;
}

.download-app-visual i {
    font-size: 200px;
    color: var(--brand-cream);
    -webkit-text-stroke: 3px var(--brand-gold);
}

@media only screen and (max-width: 991px) {
    .download-app-visual { margin-top: 30px; }
    .download-app-visual i { font-size: 120px; }
}

@media only screen and (max-width: 767px) {
    .market-ticker .ticker-track { gap: 10px; }
    .about-us-panel { padding: 22px; }
}

/* ---- Risk Profiling questionnaire ---------------------------------------- */
.risk-profiling-title {
    white-space: nowrap;
    font-size: clamp(20px, 3.4vw, 34px) !important;
}

@media only screen and (max-width: 480px) {
    .risk-profiling-title {
        white-space: normal;
        font-size: 22px !important;
    }
}

.risk-question-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 16px;
}

.risk-question-card h5 {
    font-weight: 700;
    color: var(--brand-charcoal);
    margin-bottom: 14px;
}

.risk-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.risk-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    margin-bottom: 0;
}

.risk-option input[type="radio"] {
    accent-color: var(--brand-gold-dark);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.risk-result-panel {
    background: var(--brand-cream);
    border: 2px solid var(--brand-gold);
    border-radius: 10px;
    padding: 28px 30px;
    margin-top: 30px;
    text-align: center;
}

.risk-result-panel h4 {
    color: var(--brand-charcoal);
    margin-bottom: 8px;
}

.risk-result-panel h5 {
    color: var(--brand-gold-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.risk-result-note {
    font-size: 13px;
    color: #666666;
    margin-top: 10px;
    margin-bottom: 0;
}

.risk-result-warning {
    background: #fdecea;
    border-color: #d9534f;
    color: #d9534f;
}

.risk-pagination-status {
    max-width: 420px;
    margin: 0 auto 26px;
    text-align: center;
}

.risk-pagination-status span {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--brand-charcoal);
    letter-spacing: 0.5px;
}

.risk-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #e2e2e2;
    overflow: hidden;
}

.risk-progress-fill {
    height: 100%;
    background: var(--brand-gold-dark);
    transition: width 0.3s ease;
}

.risk-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ---- Online Investor Services page --------------------------------------- */
.ois-intro {
    max-width: 680px;
    margin: 0 auto 10px;
    color: #666666;
}

/* Plain CSS Grid instead of the Bootstrap row/col here - this project's
   .row/.col-* are display:block with floats (not flexbox), so they don't
   equalize row height; a taller 3-line card would throw off every card
   after it in the float flow. Grid rows size to their tallest item and
   align items to a shared top edge automatically, so this doesn't. */
.ois-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

@media only screen and (max-width: 991px) {
    .ois-grid { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 575px) {
    .ois-grid { grid-template-columns: 1fr; }
}

.ois-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 22px 20px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(32, 26, 77, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ois-card:hover {
    border-color: var(--brand-gold);
    box-shadow: var(--brand-shadow);
    transform: translateY(-4px);
}

.ois-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background: var(--brand-cream);
    color: var(--brand-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ois-card h5 {
    font-weight: 700;
    color: var(--brand-charcoal);
    margin-bottom: 4px;
}

.ois-provider {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-gold-dark);
}

.ois-external {
    margin-left: auto;
    color: #cccccc;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.ois-card:hover .ois-external { color: var(--brand-gold-dark); }


/* SIP legal pages use a .container as the card */
.container.mbs-legal { margin: 50px auto; }
.mbs-legal .cstclcsection, .mbs-legal .row { margin-left: 0; margin-right: 0; }
@media only screen and (max-width: 767px) { .container.mbs-legal { margin: 24px 12px; width: auto; } }

/* phones: keep long page titles inside the banner, avoid gappy justified text */
@media only screen and (max-width: 767px) {
    .breadcrumb-area .breadcrumbs h1 { font-size: 24px !important; line-height: 1.25 !important; padding: 0 10px; word-wrap: break-word; }
    .about-section p, .cfp-body p { text-align: left !important; }
}
