/* institute-software — Figma page styles. Loaded after assets/css/style.css (see panacea_enqueue_assets). Scope every selector to this page/section. */

/* Sections covered (template-parts/institute-software/*):
   .bfd-section  — "Powerful Institute Software" + Book a Free Demo form (CF7)
   .ise-section  — "Everything You Get" tabbed features (tabs driven by .feat-tab/.feat-panel in common.js)
   .ran-section  — "Run Your Institute Anytime, Anywhere" list + monitor mockup */

.bfd-section,
.ise-section,
.ran-section {
    --isw-blue: var(--primary-color, #1A4DA1);
    --isw-orange: #F1921F;
    --isw-ink: #101828;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* Shared section heading (45px / 600, blue with orange highlight) */
.bfd-section .bfd-heading,
.ise-section .ise-heading,
.ran-section .ran-heading {
    font-size: 45px;
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: -0.2px;
    color: var(--isw-blue);
    margin: 0;
}

.bfd-section .bfd-heading .text-accent,
.ise-section .ise-heading .text-accent,
.ran-section .ran-heading .text-accent,
.ise-section .ise-feat-title .text-accent {
    color: var(--isw-orange) !important;
}

/* Decorative rotated squares (same idea as .mv-diamond; rotation lives in float-box) */
.bfd-section .isw-deco,
.ise-section .isw-deco,
.ran-section .isw-deco {
    position: absolute;
    z-index: 0;
    width: 46px;
    height: 46px;
    border: 5px solid #F5B12A;
    border-radius: 11px;
    transform: rotate(45deg);
    pointer-events: none;
    animation: float-box 4s ease-in-out infinite;
}

.ise-section .isw-deco--blue,
.ran-section .isw-deco--blue {
    width: 44px;
    height: 44px;
    border-color: #0084FF;
    border-radius: 10px;
}

.ise-section .isw-deco--blue-lg {
    width: 74px;
    height: 74px;
    border: 7px solid #0084FF;
    border-radius: 15px;
}

/* =====================================================================
   1. BOOK A FREE DEMO
   ===================================================================== */

.bfd-section {
    padding: 90px 0 0;
}

.bfd-section .container {
    position: relative;
    z-index: 1;
}

.bfd-section .bfd-diamond {
    left: max(10px, calc(50% - 816px));
    top: 745px;
    animation-delay: .4s;
}

.bfd-section .bfd-inner {
    display: grid;
    grid-template-columns: minmax(0, 698fr) minmax(0, 676fr);
    column-gap: 49px;
    align-items: start;
}

.bfd-section .bfd-left {
    padding-top: 50px;
}

.bfd-section .bfd-heading {
    max-width: 640px;
}

.bfd-section .bfd-heading::after {
    content: "";
    display: block;
    width: 96px;
    height: 6px;
    margin-top: 25px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--isw-blue) 0 33%, #DBE4F8 33% 100%);
}

.bfd-section .bfd-sub {
    font-size: 16px;
    line-height: 29px;
    color: #424751;
    max-width: 560px;
    margin: 28px 0 42px;
}

/* Feature tiles */
.bfd-section .bfd-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.bfd-section .bfd-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 124px;
    padding: 16px 12px;
    background: #ffffff;
    border: 1px solid #C3C6D3;
    border-radius: 16px;
    box-shadow: 0 2px 2px rgba(16, 24, 40, 0.04);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.bfd-section .bfd-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 77, 161, 0.10);
}

.bfd-section .bfd-pill-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
}

.bfd-section .bfd-pill-ico img {
    width: auto;
    height: 27px;
    max-width: 36px;
    object-fit: contain;
}

.bfd-section .bfd-pill-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.2px;
    color: #1E2433;
}

/* Talk to our expert */
.bfd-section .bfd-expert {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 53px;
    padding: 30px 32px;
    min-height: 169px;
    background: #F0F3FF;
    border: 1px solid #C3C6D3;
    border-radius: 24px;
}

.bfd-section .bfd-expert-ico {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--isw-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(26, 77, 161, 0.22);
}

/* the CMS icon is a mono glyph — render it white on the blue disc */
.bfd-section .bfd-expert-ico img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bfd-section .bfd-expert-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bfd-section .bfd-expert-label {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #111C2D;
}

.bfd-section .bfd-expert-text {
    font-size: 16px;
    line-height: 1.5;
    color: #424751;
    margin-top: 6px;
}

.bfd-section .bfd-expert-phone {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--isw-blue);
    text-decoration: none;
    margin-top: 10px;
}

.bfd-section .bfd-expert-phone:hover {
    color: var(--isw-orange);
}

/* Form card */
.bfd-section .bfd-card {
    background: #ffffff;
    border: 1px solid #C3C6D3;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
}

.bfd-section .bfd-card-head {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    min-height: 164px;
    padding: 46px 40px 30px;
    background: var(--isw-blue);
}

.bfd-section .bfd-card-ico {
    flex: 0 0 50px;
    width: 50px;
    height: 63px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 22px;
}

.bfd-section .bfd-card-ico img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bfd-section .bfd-card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 6px;
}

.bfd-section .bfd-card-sub {
    font-size: 16px;
    line-height: 25px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 330px;
    margin: 0;
}

.bfd-section .bfd-form {
    padding: 40px 40px 56px;
}

/* ---- Contact Form 7 output (form #886): layout ----
   The form's own .bfd-row wrappers are flattened so every field becomes a
   grid item; data-name picks which fields span the full width (Figma order:
   Name | Institute, Email, Phone, Students | Website, Message, Submit). */
.bfd-section .bfd-form .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
    margin: 0;
}

.bfd-section .bfd-form .wpcf7-form > *,
.bfd-section .bfd-form .wpcf7-form .bfd-row > * {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
}

.bfd-section .bfd-form .wpcf7-form .bfd-row {
    display: contents;
}

.bfd-section .bfd-form .wpcf7-form .hidden-fields-container,
.bfd-section .bfd-form .wpcf7-form > br {
    display: none;
}

.bfd-section .bfd-form .bfd-field:has([data-name="full-name"]),
.bfd-section .bfd-form .bfd-field:has([data-name="institute-name"]),
.bfd-section .bfd-form .bfd-field:has([data-name="number-of-students"]),
.bfd-section .bfd-form .bfd-field:has([data-name="website"]) {
    grid-column: span 1;
}

.bfd-section .bfd-form .bfd-field:has([data-name="full-name"]) { order: 1; }
.bfd-section .bfd-form .bfd-field:has([data-name="institute-name"]) { order: 2; }
.bfd-section .bfd-form .bfd-field:has([data-name="email-id"]) { order: 3; }
.bfd-section .bfd-form .bfd-field:has([data-name="phone-number"]) { order: 4; }
.bfd-section .bfd-form .bfd-field:has([data-name="number-of-students"]) { order: 5; }
.bfd-section .bfd-form .bfd-field:has([data-name="website"]) { order: 6; }
.bfd-section .bfd-form .bfd-field:has([data-name="message"]) { order: 7; }
.bfd-section .bfd-form .wpcf7-form > div:has(.wpcf7-submit) { order: 8; margin-top: 16px; }
.bfd-section .bfd-form .bfd-legal { order: 9; }
.bfd-section .bfd-form .wpcf7-response-output { order: 10; }

.bfd-section .bfd-form .bfd-field p,
.bfd-section .bfd-form .wpcf7-form > div:has(.wpcf7-submit) p {
    margin: 0;
}

.bfd-section .bfd-form .bfd-field br {
    display: none;
}

/* Figma shows the field name inside the input (icon + placeholder), so the
   visible labels are kept for screen readers only. */
.bfd-section .bfd-form .bfd-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- inputs ---- */
.bfd-section .bfd-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

.bfd-section .bfd-form .wpcf7-form-control-wrap::before {
    font-family: "bootstrap-icons";
    font-size: 18px;
    line-height: 1;
    color: #6B7280;
    position: absolute;
    left: 16px;
    top: 21px;
    z-index: 1;
    pointer-events: none;
}

.bfd-section .bfd-form [data-name="full-name"]::before { content: "\f4e1"; }
.bfd-section .bfd-form [data-name="institute-name"]::before { content: "\f87d"; }
.bfd-section .bfd-form [data-name="email-id"]::before { content: "\f32f"; }
.bfd-section .bfd-form [data-name="phone-number"]::before { content: "\f5c1"; }
.bfd-section .bfd-form [data-name="number-of-students"]::before { content: "\f4d0"; }
.bfd-section .bfd-form [data-name="website"]::before { content: "\f3ee"; }
.bfd-section .bfd-form [data-name="message"]::before { content: "\f264"; top: 20px; }

.bfd-section .bfd-form .wpcf7-form-control.bfd-input,
.bfd-section .bfd-form input.bfd-input[type="text"],
.bfd-section .bfd-form input.bfd-input[type="email"],
.bfd-section .bfd-form input.bfd-input[type="tel"],
.bfd-section .bfd-form input.bfd-input[type="url"],
.bfd-section .bfd-form select.bfd-input,
.bfd-section .bfd-form textarea.bfd-input {
    display: block;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 16px 0 46px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #1E1F1F;
    background-color: #F8F8FA;
    border: 1px solid #CBCDD8;
    border-radius: 10px;
    box-shadow: none;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.bfd-section .bfd-form textarea.bfd-input {
    height: 94px;
    min-height: 94px;
    padding-top: 17px;
    padding-bottom: 12px;
    resize: vertical;
}

.bfd-section .bfd-form select.bfd-input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
}

.bfd-section .bfd-form .bfd-input::placeholder {
    color: #6B7280;
    opacity: 1;
}

.bfd-section .bfd-form .bfd-input:focus {
    background-color: #ffffff;
    border-color: var(--isw-blue);
    box-shadow: 0 0 0 3px rgba(26, 77, 161, 0.12);
}

/* validation (CF7 adds .wpcf7-not-valid + a tip span) */
.bfd-section .bfd-form .bfd-input.wpcf7-not-valid {
    border-color: #DC3232;
}

.bfd-section .bfd-form .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 6px;
}

/* ---- submit ---- */
.bfd-section .bfd-form input.wpcf7-submit.bfd-submit,
.bfd-section .bfd-form input.wpcf7-submit.bfd-submit[type="submit"] {
    display: block;
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 0 24px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #ffffff;
    background: var(--isw-blue);
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(26, 77, 161, 0.22);
    cursor: pointer;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.bfd-section .bfd-form input.wpcf7-submit.bfd-submit:hover,
.bfd-section .bfd-form input.wpcf7-submit.bfd-submit:focus-visible {
    background: #153F86;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(26, 77, 161, 0.28);
}

.bfd-section .bfd-form .wpcf7-form > div:has(.wpcf7-submit) p {
    position: relative;
}

.bfd-section .bfd-form .wpcf7-spinner {
    position: absolute;
    right: 18px;
    top: 50%;
    margin: -12px 0 0;
    background-color: rgba(255, 255, 255, 0.6);
}

.bfd-section .bfd-form .bfd-legal {
    margin: -6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6B6875;
    text-align: center;
}

.bfd-section .bfd-form .bfd-legal br {
    display: none;
}

.bfd-section .bfd-form .bfd-legal a {
    color: var(--isw-blue);
}

.bfd-section .bfd-form .wpcf7-response-output {
    margin: 0;
    border-radius: 10px;
    font-size: 14px;
}

.bfd-section .bfd-form .wpcf7-response-output:empty,
.bfd-section .bfd-form .wpcf7-form.init .wpcf7-response-output {
    display: none;
}

/* =====================================================================
   2. EVERYTHING YOU GET (tabs)
   ===================================================================== */

.ise-section {
    padding: 80px 0 0;
}

.ise-section .container {
    position: relative;
    z-index: 1;
}

.ise-section .ise-diamond-1 {
    right: max(24px, calc(50% - 834px));
    top: 133px;
    animation-delay: .2s;
}

.ise-section .ise-diamond-2 {
    right: -42px;
    bottom: 40px;
    animation-delay: .6s;
}

.ise-section .ise-diamond-3 {
    left: 37px;
    bottom: -10px;
    animation-delay: 1s;
}

.ise-section .ise-heading {
    max-width: 900px;
    margin: 0 auto;
    line-height: 57px;
}

.ise-section .ise-sub {
    font-size: 16px;
    line-height: 28px;
    color: #64748B;
    max-width: 640px;
    margin: 20px auto 0;
}

/* pill tab bar */
.ise-section .ise-tabs {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    min-width: min(991px, 100%);
    margin: 36px auto 40px;
    padding: 9px;
    background: #ffffff;
    border: 1px solid #F1F5F9;
    border-radius: 100px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ise-section .ise-tabs .ise-tab.feat-tab {
    flex: 0 1 auto;
    min-height: 72px;
    padding: 0 30px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    color: #1E293B;
    background: transparent;
    border: none;
    border-radius: 100px;
    box-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease;
}

.ise-section .ise-tabs .ise-tab.feat-tab:hover {
    color: #004795;
}

.ise-section .ise-tabs .ise-tab.feat-tab.active {
    color: #004795;
    background: #EFF6FF;
    box-shadow: none;
}

.ise-section .ise-tabs .ise-tab.feat-tab:focus-visible {
    outline: 2px solid var(--isw-blue);
    outline-offset: 2px;
}

/* panel */
.ise-section .ise-panel.feat-panel {
    display: none;
    grid-template-columns: minmax(0, 590fr) minmax(0, 790fr);
    column-gap: 20px;
    align-items: center;
    min-height: 637px;
    padding: 44px 0 44px 50px;
    background: #EFF6FF;
    border-radius: 40px;
}

.ise-section .ise-panel.feat-panel.active {
    display: grid;
}

.ise-section .ise-panel-left {
    max-width: 560px;
}

.ise-section .ise-feat-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(26, 77, 161, 0.10);
    margin-bottom: 38px;
}

.ise-section .ise-feat-badge img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.ise-section .ise-feat-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.2px;
    color: var(--isw-blue);
    margin: 0 0 26px;
}

.ise-section .ise-feat-desc {
    font-size: 16px;
    line-height: 26px;
    color: #475569;
    margin: 0 0 30px;
}

.ise-section .ise-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ise-section .ise-checklist li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #001B44;
    margin: 0;
}

/* blue disc with white tick (Bootstrap's check-circle-fill is a cut-out glyph) */
.ise-section .ise-checklist li .bi {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--isw-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.ise-section .ise-checklist li .bi::before {
    content: "\f633";
    font-size: 14px;
    color: #ffffff;
    -webkit-text-stroke: 0.4px #ffffff;
}

.ise-section .ise-panel-right {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

/* dotted ornament top-right of the mockup */
.ise-section .ise-panel-right::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 22px;
    width: 46px;
    height: 22px;
    background-image: radial-gradient(circle, #C9D6EA 2.6px, transparent 3px);
    background-size: 13px 13px;
    pointer-events: none;
}

.ise-section .ise-panel-right-img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    position: relative;
}

/* =====================================================================
   3. RUN YOUR INSTITUTE ANYTIME, ANYWHERE
   ===================================================================== */

.ran-section {
    padding: 83px 0 57px;
}

.ran-section .container {
    position: relative;
    z-index: 1;
}

.ran-section .ran-diamond {
    left: calc(50% - 577px);
    top: 120px;
    animation-delay: .8s;
}

.ran-section .ran-sub {
    font-size: 16px;
    line-height: 28px;
    color: #64748B;
    max-width: 660px;
    margin: 22px auto 0;
}

.ran-section .ran-inner {
    display: grid;
    grid-template-columns: minmax(0, 536fr) minmax(0, 860fr);
    column-gap: 40px;
    align-items: start;
    margin-top: 76px;
}

.ran-section .ran-list {
    padding-top: 15px;
}

.ran-section .ran-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 8px 40px;
    border-bottom: 1px solid #F1F5F9;
}

.ran-section .ran-item:first-child {
    padding-top: 0;
}

.ran-section .ran-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ran-section .ran-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #DBEAFE;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease;
}

.ran-section .ran-item:hover .ran-icon {
    transform: translateY(-2px);
}

.ran-section .ran-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ran-section .ran-icon--blue   { background: #DBEAFE; }
.ran-section .ran-icon--green  { background: #DCFCE7; }
.ran-section .ran-icon--orange { background: #FFEDD5; }
.ran-section .ran-icon--purple { background: #F3E8FF; }
.ran-section .ran-icon--red    { background: #FEE2E2; }

.ran-section .ran-text {
    min-width: 0;
    padding-top: 3px;
}

.ran-section .ran-text strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #0F172A;
}

.ran-section .ran-text p {
    font-size: 14px;
    line-height: 1.5;
    color: #64748B;
    margin: 4px 0 0;
}

/* mockup (the CMS gif already contains the floating stat cards) */
.ran-section .ran-mockup {
    position: relative;
    margin-top: -84px;
}

.ran-section .ran-mockup::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 72px;
    width: 92%;
    aspect-ratio: 1 / 0.76;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, #F4F7FE 0%, #F6F8FF 88%, rgba(248, 250, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.ran-section .ran-mockup img {
    display: block;
    width: 100%;
    max-width: 811px;
    height: auto;
    margin: 0 0 -19% auto;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1559px) {
    .bfd-section .bfd-diamond { left: 4px; width: 34px; height: 34px; border-width: 4px; border-radius: 9px; }
}

@media (max-width: 1399px) {
    .ise-section .ise-tabs .ise-tab.feat-tab { padding: 0 22px; font-size: 16px; }
}

@media (max-width: 1199px) {
    .bfd-section .bfd-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ise-section .ise-tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .ise-section .ise-tabs::-webkit-scrollbar { display: none; }
    .ise-section .ise-tabs .ise-tab.feat-tab { flex-shrink: 0; }
    .ise-section .ise-tabs .ise-tab.feat-tab { padding: 0 18px; min-height: 60px; font-size: 15px; }
    .ise-section .ise-feat-title { font-size: 30px; }
}

@media (max-width: 991px) {
    .bfd-section .bfd-heading,
    .ise-section .ise-heading,
    .ran-section .ran-heading {
        font-size: 30px;
        line-height: 1.3;
    }

    .bfd-section { padding-top: 60px; }
    .ise-section { padding-top: 60px; }
    .ran-section { padding: 60px 0 50px; }

    .bfd-section .bfd-inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }

    .bfd-section .bfd-left { padding-top: 0; }
    .bfd-section .bfd-heading,
    .bfd-section .bfd-sub { max-width: none; }
    .bfd-section .bfd-pills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bfd-section .bfd-expert { margin-top: 32px; min-height: 0; }

    .bfd-section .bfd-card { max-width: 676px; margin: 0 auto; }

    /* tab bar scrolls horizontally instead of wrapping */
    .ise-section .ise-tabs {
        justify-content: flex-start;
        width: auto;
        overflow-x: auto;
        scrollbar-width: none;
        border-radius: 22px;
        margin: 28px 0 28px;
    }
    .ise-section .ise-tabs::-webkit-scrollbar { display: none; }
    .ise-section .ise-tabs .ise-tab.feat-tab { flex: 0 0 auto; border-radius: 16px; }

    .ise-section .ise-panel.feat-panel {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
        min-height: 0;
        padding: 36px 28px;
        border-radius: 28px;
    }
    .ise-section .ise-panel-left { max-width: none; }
    .ise-section .ise-feat-badge { margin-bottom: 24px; }
    .ise-section .ise-panel-right { justify-content: center; }
    .ise-section .ise-diamond-2 { width: 52px; height: 52px; border-width: 5px; right: -26px; }

    .ran-section .ran-inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 30px;
        margin-top: 44px;
    }
    .ran-section .ran-mockup { margin-top: 0; max-width: 700px; width: 100%; justify-self: center; }
    .ran-section .ran-mockup img { margin: 0 auto -19%; }
    .ran-section .ran-diamond { left: 24px; top: 40px; }
}

@media (max-width: 767px) {
    .bfd-section .bfd-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .bfd-section .bfd-pill { min-height: 108px; }
    .bfd-section .bfd-card { border-radius: 28px; }
    .bfd-section .bfd-card-head { padding: 28px 22px 24px; gap: 16px; min-height: 0; }
    .bfd-section .bfd-card-ico { flex-basis: 44px; width: 44px; height: 52px; margin-top: 2px; }
    .bfd-section .bfd-card-title { font-size: 22px; }
    .bfd-section .bfd-card-sub { font-size: 15px; line-height: 23px; }
    .bfd-section .bfd-form { padding: 26px 22px 32px; }
    .bfd-section .bfd-form .wpcf7-form { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
    .bfd-section .bfd-form .bfd-field:has([data-name]) { grid-column: 1 / -1; }
    .bfd-section .bfd-form .wpcf7-form-control.bfd-input,
    .bfd-section .bfd-form input.bfd-input[type="text"],
    .bfd-section .bfd-form input.bfd-input[type="email"],
    .bfd-section .bfd-form input.bfd-input[type="tel"],
    .bfd-section .bfd-form input.bfd-input[type="url"],
    .bfd-section .bfd-form select.bfd-input { height: 54px; }
    .bfd-section .bfd-form .wpcf7-form-control-wrap::before { top: 18px; }
    .bfd-section .bfd-form [data-name="message"]::before { top: 18px; }
    .bfd-section .bfd-form input.wpcf7-submit.bfd-submit { height: 56px; font-size: 16px; }
    .bfd-section .bfd-form .wpcf7-form > div:has(.wpcf7-submit) { margin-top: 6px; }
    .bfd-section .bfd-expert { padding: 22px 20px; gap: 16px; border-radius: 20px; }
    .bfd-section .bfd-expert-ico { flex-basis: 52px; width: 52px; height: 52px; }
    .bfd-section .bfd-expert-ico img { width: 24px; height: 24px; }
    .bfd-section .bfd-expert-label,
    .bfd-section .bfd-expert-phone { font-size: 20px; }
    .bfd-section .bfd-expert-text { font-size: 15px; }
    .bfd-section .bfd-diamond { display: none; }

    .ise-section .ise-sub br { display: none; }
    .ise-section .ise-tabs .ise-tab.feat-tab { min-height: 48px; padding: 0 16px; font-size: 14px; border-radius: 14px; }
    .ise-section .ise-tabs { padding: 6px; border-radius: 20px; gap: 4px; }
    .ise-section .ise-panel.feat-panel { padding: 28px 20px; border-radius: 24px; }
    .ise-section .ise-feat-badge { width: 54px; height: 54px; margin-bottom: 18px; }
    .ise-section .ise-feat-title { font-size: 26px; margin-bottom: 16px; }
    .ise-section .ise-feat-desc,
    .ise-section .ise-checklist li { font-size: 15px; }
    .ise-section .ise-feat-desc { line-height: 24px; margin-bottom: 22px; }
    .ise-section .ise-checklist { gap: 12px; }
    .ise-section .ise-checklist li { align-items: flex-start; line-height: 22px; }
    .ise-section .ise-checklist li .bi { flex-basis: 22px; width: 22px; height: 22px; }
    .ise-section .ise-diamond-1 { width: 32px; height: 32px; border-width: 4px; border-radius: 8px; top: 18px; right: 14px; }
    .ise-section .ise-diamond-2,
    .ise-section .ise-diamond-3 { display: none; }

    .ran-section .ran-sub br { display: none; }
    .ran-section .ran-item { padding: 14px 0 22px; gap: 14px; }
    .ran-section .ran-text strong { font-size: 17px; }
    .ran-section .ran-diamond { width: 26px; height: 26px; border-width: 4px; border-radius: 7px; top: 14px; left: 14px; }
}

@media (max-width: 575px) {
    .bfd-section .bfd-heading,
    .ise-section .ise-heading,
    .ran-section .ran-heading {
        font-size: 27px;
    }

    .bfd-section .bfd-sub { font-size: 16px; line-height: 26px; margin: 22px 0 28px; }
    .bfd-section .bfd-pill-label { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .bfd-section .isw-deco,
    .ise-section .isw-deco,
    .ran-section .isw-deco {
        animation: none;
    }
}
