/**
 * Mehr Dentistry — shared contract & intro UI (desktop + mobile + admin)
 * Brand: --primary-500 (#008a4b), --primary-400 (#e5a812) from application.css
 */

html {
    scroll-behavior: smooth;
}

:root {
    --mehr-primary: var(--primary-500, #008a4b);
    --mehr-primary-dark: #006b3a;
    --mehr-primary-light: #00a65b;
    --mehr-primary-soft: rgba(0, 138, 75, 0.1);
    --mehr-primary-soft-subtle: rgba(0, 138, 75, 0.08);
    --mehr-primary-ring: rgba(0, 138, 75, 0.35);
    --mehr-secondary: var(--primary-400, #e5a812);
    --mehr-secondary-soft: rgba(229, 168, 18, 0.12);
    --mehr-teal: var(--mehr-primary);
    --mehr-teal-dark: var(--mehr-primary-dark);
    --mehr-teal-soft: var(--mehr-primary-soft-subtle);
    --mehr-teal-ring: var(--mehr-primary-ring);
    --mehr-accent: var(--mehr-secondary);
    --mehr-amber: var(--mehr-secondary);
    --mehr-amber-soft: var(--mehr-secondary-soft);
    --mehr-muted: #64748b;
    --mehr-border: #e2e8f0;
    --mehr-radius: 1rem;
    --mehr-radius-lg: 1.25rem;
    --mehr-surface: #f0fdf4;
    --mehr-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 10px 28px rgba(0, 138, 75, 0.08);
    --mehr-card-shadow: var(--mehr-shadow);
    --mehr-card-shadow-lg: 0 20px 50px rgba(0, 138, 75, 0.12);
}

.mehr-contract-wrap {
    --mehr-teal: var(--mehr-primary);
    --mehr-teal-dark: var(--mehr-primary-dark);
    --mehr-teal-soft: var(--mehr-primary-soft);
    --mehr-amber: var(--mehr-secondary);
    --mehr-amber-soft: var(--mehr-secondary-soft);
    --mehr-muted: #64748b;
    --mehr-border: #e2e8f0;
    --mehr-radius: 1rem;
    --mehr-radius-lg: 1.25rem;
    --mehr-shadow: var(--mehr-shadow);
}

/* —— Highlight stats —— */
.mehr-hl {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .mehr-hl {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.mehr-hl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1rem 0.65rem;
    border-radius: var(--mehr-radius);
    border: 1px solid var(--mehr-border);
    background: linear-gradient(160deg, #fff 0%, #f0fdfa 100%);
    box-shadow: var(--mehr-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mehr-contract-wrap--bootstrap .mehr-hl-card:hover,
.mehr-contract-wrap--v2 .mehr-hl-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 138, 75, 0.14);
}

.mehr-hl-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
}

.mehr-hl-icon--amber {
    background: var(--mehr-amber-soft);
    color: var(--mehr-secondary);
}

.mehr-hl-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--mehr-teal-dark);
    line-height: 1.2;
}

.mehr-hl-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--mehr-muted);
    line-height: 1.4;
}

/* —— Discount chips —— */
.mehr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.mehr-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--mehr-border);
    background: #fff;
    color: #334155;
}

.mehr-chip i {
    color: var(--mehr-teal);
    font-size: 0.875rem;
}

.mehr-chip--accent {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
    color: #92400e;
}

/* —— Section panels —— */
.mehr-panel {
    margin-bottom: 1rem;
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius-lg);
    background: #fff;
    box-shadow: var(--mehr-shadow);
    overflow: hidden;
}

.mehr-contract-wrap--bootstrap .mehr-panel,
.mehr-contract-wrap--admin .mehr-panel {
    background: #fff;
}

.mehr-panel-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mehr-teal-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.mehr-panel-summary::-webkit-details-marker {
    display: none;
}

.mehr-panel-summary::after {
    content: '';
    margin-right: auto;
    width: 0.5rem;
    height: 0.5rem;
    border-left: 2px solid var(--mehr-teal);
    border-bottom: 2px solid var(--mehr-teal);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mehr-panel[open] .mehr-panel-summary::after {
    transform: rotate(135deg);
}

.mehr-panel--open > .mehr-panel-summary::after {
    display: none;
}

.mehr-panel--open > .mehr-panel-summary {
    cursor: default;
}

.mehr-panel-body {
    padding: 0 1rem 1rem;
}

.mehr-panel--open .mehr-panel-body {
    padding: 0 1rem 1rem;
}

.mehr-panel--open > .mehr-panel-summary {
    padding-bottom: 0.5rem;
}

/* —— Benefit list —— */
.mehr-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.625rem;
}

.mehr-benefit {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.mehr-benefit-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
    font-size: 0.9375rem;
}

.mehr-benefit-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #475569;
    text-align: justify;
}

/* —— Locations —— */
.mehr-clinic-network {
    margin-top: 1.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mehr-border);
}

.mehr-clinic-network-header {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
}

.mehr-clinic-network-heading {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.mehr-clinic-network-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mehr-muted);
}

.mehr-clinic-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.mehr-clinic-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 138, 75, 0.18);
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 138, 75, 0.08);
}

.mehr-clinic-card--soon {
    border-style: dashed;
    border-color: #cbd5e1;
    box-shadow: none;
}

.mehr-clinic-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mehr-primary-soft);
}

.mehr-clinic-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mehr-clinic-card-photo.is-blurred {
    filter: blur(4px);
    transform: scale(1.05);
}

.mehr-clinic-card-photo--placeholder {
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--mehr-primary-light);
}

.mehr-clinic-card-body {
    margin: -1.75rem 1rem 1rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mehr-clinic-card-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.65rem;
}

.mehr-clinic-card-title i {
    color: var(--mehr-primary);
}

.mehr-clinic-card-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #475569;
}

.mehr-clinic-card-meta i {
    color: #64748b;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.mehr-clinic-card-meta a {
    color: var(--mehr-teal-dark);
    text-decoration: none;
    font-weight: 600;
}

.mehr-clinic-card-meta a:hover {
    text-decoration: underline;
}

.mehr-clinic-card-soon {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mehr-muted);
}

.mehr-clinic-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.mehr-clinic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 138, 75, 0.2);
    background: var(--mehr-primary-soft);
    color: var(--mehr-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mehr-clinic-btn:hover {
    background: rgba(0, 138, 75, 0.16);
    border-color: rgba(0, 138, 75, 0.35);
    color: var(--mehr-primary-dark);
}

.mehr-clinic-btn--soon {
    width: 100%;
    flex: 1 1 100%;
    cursor: default;
    opacity: 0.85;
}

.mehr-clinic-network-footer {
    margin-top: 1.75rem;
}

.mehr-clinic-network-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mehr-clinic-network-all:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
}

.mehr-v2 .mehr-clinic-network {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: 0;
}

/* —— Dental services grid —— */
.mehr-dental-services {
    margin: 0;
    padding: clamp(2rem, 5vw, 3rem) 0;
    border-radius: 0;
    background: linear-gradient(145deg, var(--mehr-primary-dark) 0%, var(--mehr-primary) 45%, var(--mehr-primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.mehr-dental-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

.mehr-dental-services .container {
    position: relative;
    z-index: 1;
}

.mehr-dental-services-header {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}

.mehr-dental-services-heading {
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.45rem;
}

.mehr-dental-services-subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
}

.mehr-dental-services-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .mehr-dental-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

@media (min-width: 992px) {
    .mehr-dental-services-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }
}

.mehr-dental-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 7.5rem;
    padding: 1rem 0.65rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mehr-dental-service-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mehr-dental-service-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ecfdf5;
    font-size: 1.25rem;
}

.mehr-dental-service-title {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}

@media (min-width: 768px) {
    .mehr-dental-service-card {
        min-height: 8.25rem;
        padding: 1.15rem 0.75rem;
    }

    .mehr-dental-service-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.35rem;
    }

    .mehr-dental-service-title {
        font-size: 0.8125rem;
    }
}

.mehr-v2 .mehr-dental-services {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 1rem;
}

/* Legacy compact locations (admin fallback) */
.mehr-locations {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .mehr-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mehr-location {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.875rem;
    border: 1px solid var(--mehr-border);
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    align-items: flex-start;
}

.mehr-location-photo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 138, 75, 0.15);
}

.mehr-location-pin {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
    font-size: 1.125rem;
}

.mehr-location-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mehr-teal-dark);
    margin: 0 0 0.25rem;
}

.mehr-location-address {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--mehr-muted);
}

/* —— Process timeline —— */
.mehr-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    position: relative;
}

.mehr-timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.mehr-timeline-step:last-child {
    padding-bottom: 0;
}

.mehr-timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 1.0625rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--mehr-teal) 0%, #99f6e4 100%);
    opacity: 0.45;
}

.mehr-timeline-marker {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--mehr-teal), var(--mehr-teal-dark));
    box-shadow: 0 4px 12px rgba(0, 138, 75, 0.35);
    z-index: 1;
}

.mehr-timeline-content {
    padding-top: 0.15rem;
}

.mehr-timeline-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.mehr-timeline-desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--mehr-muted);
}

.mehr-timeline-desc a {
    color: var(--mehr-teal-dark);
    font-weight: 600;
    text-decoration: none;
}

.mehr-timeline-desc a:hover {
    text-decoration: underline;
}

/* —— Notice —— */
.mehr-notice {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--mehr-radius-lg);
    background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
    border: 1px solid #fde68a;
    color: #92400e;
}

.mehr-notice-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.2);
    font-size: 1.125rem;
}

.mehr-notice-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.mehr-notice-body p,
.mehr-notice-body ol {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.65;
}

.mehr-notice-checklist {
    padding-right: 1.1rem;
    margin: 0 0 0.5rem !important;
}

.mehr-notice-checklist li {
    margin-bottom: 0.15rem;
}

.mehr-notice-body p:last-child {
    margin-bottom: 0;
}

.mehr-notice-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: #92400e;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #fcd34d;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mehr-notice-download:hover {
    background: #fff;
    border-color: var(--mehr-secondary);
    color: #78350f;
}

.mehr-notice-tariff-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem !important;
    margin-bottom: 0 !important;
    font-weight: 600;
}

/* —— Tariff notice (above locations) —— */
.mehr-tariff-notice {
    max-width: 52rem;
    margin: 2.25rem auto 0;
}

.mehr-tariff-notice--v2 {
    max-width: none;
    margin: 1.5rem 0 0;
}

.mehr-tariff-notice-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem 1.15rem 1.5rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 58%);
    border: 1px solid rgba(0, 138, 75, 0.14);
    box-shadow: 0 12px 32px rgba(0, 138, 75, 0.08);
    position: relative;
    overflow: hidden;
}

.mehr-tariff-notice-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--mehr-primary) 0%, var(--mehr-secondary) 100%);
}

.mehr-tariff-notice-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(145deg, var(--mehr-primary) 0%, var(--mehr-primary-light) 100%);
    box-shadow: 0 6px 16px rgba(0, 138, 75, 0.22);
}

.mehr-tariff-notice-body {
    min-width: 0;
    flex: 1;
}

.mehr-tariff-notice-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mehr-primary);
    margin-bottom: 0.25rem;
}

.mehr-tariff-notice-text {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.75;
    color: #334155;
}

.mehr-tariff-notice-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.12rem 0.55rem;
    margin: 0 0.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--mehr-primary-dark);
    background: var(--mehr-secondary-soft);
    border: 1px solid rgba(229, 168, 18, 0.35);
    text-decoration: none;
    vertical-align: baseline;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mehr-tariff-notice-link:hover {
    background: rgba(229, 168, 18, 0.22);
    border-color: var(--mehr-secondary);
    color: var(--mehr-primary-dark);
}

/* —— Section heading —— */
.mehr-contract-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--mehr-teal-dark);
    margin: 0 0 1rem;
}

.mehr-contract-heading i {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* —— Desktop intro enhancements —— */
.mehr-intro-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .mehr-intro-stat-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mehr-feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mehr-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 138, 75, 0.1);
    border-color: rgba(0, 138, 75, 0.25) !important;
}

.mehr-section-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mehr-section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--mehr-teal-dark);
    background: var(--mehr-teal-soft);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.mehr-section-nav a:hover {
    background: var(--mehr-primary-soft);
    border-color: rgba(0, 138, 75, 0.25);
}

/* —— Installment plan cards —— */
.mehr-plan-cards {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.mehr-plan-cards--v2 {
    display: grid;
    gap: 0.85rem;
    max-width: none;
    margin: 0 0 1.25rem;
}

.mehr-installment-plans--v2 {
    margin-bottom: 1.25rem;
}

.mehr-installment-plans-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mehr-teal-dark);
    margin: 0 0 0.35rem;
}

.mehr-installment-plans-subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: var(--mehr-muted);
    line-height: 1.55;
}

.mehr-plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 138, 75, 0.15);
    background: linear-gradient(160deg, #fff 0%, #f0fdf4 100%);
    box-shadow: var(--mehr-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mehr-plan-cards--v2 .mehr-plan-card {
    padding: 1.25rem 1rem;
}

.mehr-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mehr-card-shadow-lg);
}

.mehr-plan-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    background: var(--mehr-teal);
    margin-bottom: 1rem;
}

.mehr-plan-cards--v2 .mehr-plan-card-badge {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* —— Intro video (Aparat) —— */
.mehr-video-section {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
}

.mehr-video-section--v2 {
    max-width: none;
    margin: 0 0 1.25rem;
}

.mehr-video-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mehr-teal-dark);
    margin: 0 0 0.35rem;
}

.mehr-video-subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: var(--mehr-muted);
    line-height: 1.55;
}

.mehr-video-wrapper {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 138, 75, 0.15);
    background: #000;
    box-shadow: var(--mehr-shadow);
}

.mehr-video-wrapper .h_iframe-aparat_embed_frame {
    margin: 0;
}

.mehr-plan-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mehr-teal-dark);
    margin-bottom: 0.75rem;
}

.mehr-plan-card-term {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.mehr-plan-cards--v2 .mehr-plan-card-term {
    font-size: 1.2rem;
}

.mehr-plan-card-down {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mehr-teal-dark);
    background: var(--mehr-teal-soft);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    margin-top: auto;
}

/* —— Plan benefits carousel —— */
.mehr-plan-benefits {
    margin-bottom: 1.75rem;
}

.mehr-plan-benefits-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--mehr-teal-dark);
    margin: 0 0 1.25rem;
}

.mehr-plan-benefits-heading i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.mehr-plan-benefits-slider {
    overflow: hidden;
    padding-bottom: 0.25rem;
}

.mehr-plan-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 11.5rem;
    padding: 1.35rem 1rem 1.15rem;
    border-radius: var(--mehr-radius-lg);
    border: 1px solid var(--mehr-border);
    background: #fff;
    box-shadow: var(--mehr-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mehr-plan-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 138, 75, 0.14);
}

.mehr-plan-benefit-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.mehr-plan-benefit-icon--amber {
    background: var(--mehr-amber-soft);
    color: var(--mehr-secondary);
}

.mehr-plan-benefit-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--mehr-teal-dark);
    line-height: 1.35;
    margin: 0 0 0.45rem;
}

.mehr-plan-benefit-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mehr-muted);
    line-height: 1.55;
    margin: 0;
}

.mehr-plan-benefits-pagination {
    position: static !important;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.mehr-plan-benefits-pagination .swiper-pagination-bullet {
    width: 1.75rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    opacity: 1;
    margin: 0 !important;
    transition: background 0.2s ease, width 0.2s ease;
}

.mehr-plan-benefits-pagination .swiper-pagination-bullet-active {
    background: var(--mehr-amber);
    width: 2.25rem;
}

/* —— FAQ —— */
.mehr-faq {
    padding: clamp(3rem, 8vw, 4.5rem) 0;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.mehr-faq-header {
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.mehr-faq-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.mehr-faq-heading {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--mehr-teal-dark);
    margin: 0 0 0.5rem;
}

.mehr-faq-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--mehr-muted);
    line-height: 1.6;
}

.mehr-faq-list {
    max-width: 42rem;
    margin: 0 auto;
}

.mehr-faq-item {
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius-lg) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #fff;
    box-shadow: var(--mehr-shadow);
}

.mehr-faq-item:last-child {
    margin-bottom: 0;
}

.mehr-faq-item .accordion-button {
    padding: 1rem 1.15rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mehr-teal-dark);
    background: #fff;
    box-shadow: none;
}

.mehr-faq-item .accordion-button:not(.collapsed) {
    color: var(--mehr-teal-dark);
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.mehr-faq-item .accordion-button:focus {
    box-shadow: 0 0 0 3px var(--mehr-teal-ring);
    border-color: transparent;
}

.mehr-faq-item .accordion-body {
    padding: 0 1.15rem 1.1rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #334155;
}

.mehr-contract-wrap--v2 .mehr-faq,
.mehr-v2 .mehr-faq {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* —— V2 wrapper —— */
.mehr-contract-wrap--v2 {
    margin-top: 0.5rem;
}

.mehr-contract-wrap--v2 .mehr-panel {
    background: var(--mv2-card, #fff);
}

.mehr-contract-wrap--v2 .mehr-contract-heading {
    font-size: 0.9375rem;
}

/* —— Bootstrap wrapper —— */
.mehr-contract-wrap--bootstrap {
    padding: 0;
}

.mehr-contract-wrap--bootstrap .mehr-panel {
    background: #fff;
}

/* —— Admin —— */
.mehr-contract-wrap--admin .mehr-hl-card {
    box-shadow: none;
}

.mehr-contract-wrap--admin .mehr-panel {
    box-shadow: none;
    margin-bottom: 1.25rem;
}

.mehr-contract-wrap--admin .mehr-notice {
    margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .mehr-hl-card,
    .mehr-feature-card,
    .mehr-plan-benefit-card {
        transition: none;
    }
    .mehr-hl-card:hover,
    .mehr-feature-card:hover,
    .mehr-plan-benefit-card:hover {
        transform: none;
    }
}

/* Full-screen response overlay */
body.mehr-flash-open {
    overflow: hidden;
}

.mehr-response-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.mehr-response-overlay.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
}

.mehr-response-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mehr-response-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
    padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 42%, #f8fafc 100%);
    text-align: center;
}

.mehr-response-close {
    position: absolute;
    top: calc(1rem + env(safe-area-inset-top, 0px));
    inset-inline-end: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.mehr-response-close:hover {
    background: #fff;
    transform: scale(1.04);
}

.mehr-response-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.5rem;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 138, 75, 0.15);
}

.mehr-response-icon.is-success {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.mehr-response-icon.is-error {
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

.mehr-response-title {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.mehr-response-body {
    width: min(100%, 28rem);
    margin: 0 auto 2rem;
}

.mehr-response-message {
    font-size: 1rem;
    line-height: 1.85;
    color: #475569;
    margin: 0;
}

.mehr-response-errors {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: start;
}

.mehr-response-errors li {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.875rem;
    background: #fff;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.9375rem;
    line-height: 1.65;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.mehr-response-dismiss {
    min-width: min(100%, 16rem);
    min-height: 3.25rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mehr-primary-dark), var(--mehr-primary));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 138, 75, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.mehr-response-dismiss:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 138, 75, 0.34);
}

@media (min-width: 768px) {
    .mehr-response-panel {
        width: min(100%, 36rem);
        min-height: auto;
        margin: auto;
        border-radius: 1.5rem;
        box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
        padding: 2.5rem 2rem 2rem;
    }

    .mehr-response-overlay {
        align-items: center;
        padding: 2rem;
    }
}

.mehr-family-card input.is-invalid,
.mehr-family-card select.is-invalid {
    border-color: #f87171 !important;
    background: #fff5f5;
}

.mehr-family-card input.is-invalid:focus,
.mehr-family-card select.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15);
}
