/* Business Directory — rich profile layout (replaces kbmarketplace's dull seller view) */

.ms-profile {
    --ms-primary: #253237;
    --ms-accent:  #80b435;
    --ms-warning: #f39c12;
    --ms-success: #27ae60;
    --ms-info:    #3498db;
    --ms-muted:   #6c757d;
    --ms-bg-soft: #f6f8f6;
    --ms-border:  #e4e7ea;
    --ms-radius:  10px;
    font-family: inherit;
    color: #2a3439;
    margin: 0 0 40px;
}

.ms-profile * { box-sizing: border-box; }

/* ========== HERO ========== */
.ms-profile__hero {
    position: relative;
    color: #fff;
    margin-bottom: 20px;
    background: #253237;
    overflow: hidden;
    border-radius: 0 0 var(--ms-radius) var(--ms-radius);
}

.ms-profile__banner {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transform: scale(1.02);
}
.ms-profile__banner--placeholder {
    background: linear-gradient(135deg, #253237 0%, #4a6572 100%);
    filter: none;
}
.ms-profile__hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(37,50,55,0.1) 0%, rgba(37,50,55,0.85) 100%);
}
.ms-profile__hero-inner {
    position: relative;
    padding: 60px 40px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 300px;
}
@media (max-width: 768px) {
    .ms-profile__hero-inner { padding: 40px 20px 20px; min-height: 260px; }
}

.ms-profile__identity {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.ms-profile__logo {
    width: 120px; height: 120px;
    border-radius: 14px;
    border: 4px solid #fff;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.ms-profile__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-profile__logo--fallback {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 700; color: #fff; text-transform: uppercase;
    border-color: rgba(255,255,255,0.8);
}
@media (max-width: 576px) {
    .ms-profile__logo { width: 80px; height: 80px; font-size: 2rem; }
}

.ms-profile__title-block { min-width: 0; flex: 1; }

.ms-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.ms-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.18);
    color: #fff;
    backdrop-filter: blur(4px);
}
.ms-badge--featured { background: var(--ms-warning); }
.ms-badge--verified { background: var(--ms-success); }
.ms-badge--directory { background: var(--ms-info); }
.ms-badge--claim    { background: #e67e22; }
.ms-badge--active   { background: rgba(0,0,0,0.5); }
.ms-badge--open     { background: var(--ms-accent); }

.ms-profile__name {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
@media (max-width: 576px) {
    .ms-profile__name { font-size: 1.4rem; }
}

.ms-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255,255,255,0.92);
    font-size: 0.9rem;
}
.ms-profile__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ms-profile__meta-item .material-icons { font-size: 16px; }
.ms-profile__meta-item--soft { opacity: 0.75; font-size: 0.82rem; }

.ms-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.ms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform .1s, background .2s;
    backdrop-filter: blur(4px);
}
.ms-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); color: #fff; }
.ms-btn--primary { background: var(--ms-accent); border-color: var(--ms-accent); }
.ms-btn--primary:hover { background: #6ea02d; border-color: #6ea02d; }
.ms-btn--warning { background: var(--ms-warning); border-color: var(--ms-warning); color: #fff; }
.ms-btn--warning:hover { background: #dd8a09; border-color: #dd8a09; color: #fff; }
.ms-btn--block { display: flex; justify-content: center; width: 100%; background: #253237; border-color: #253237; }
.ms-btn--block:hover { background: #0d1315; border-color: #0d1315; }
.ms-btn .material-icons { font-size: 18px; }

/* ========== CLAIM BAR ========== */
.ms-profile__claim-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff7e6 0%, #ffe8c4 100%);
    border: 1px solid #f39c12;
    border-radius: var(--ms-radius);
}
.ms-profile__claim-text strong { display: block; color: var(--ms-primary); margin-bottom: 2px; }
.ms-profile__claim-text span { color: #6b5a30; font-size: 0.9rem; }
.ms-profile__claim-bar .ms-btn--warning { border-color: #dd8a09; }

/* ========== LAYOUT ========== */
.ms-profile__body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
@media (max-width: 992px) {
    .ms-profile__body { grid-template-columns: 1fr; }
}
.ms-profile__main  { min-width: 0; }
.ms-profile__sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ========== TABS ========== */
.ms-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 1px solid var(--ms-border);
    margin-bottom: 20px;
}
.ms-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: var(--ms-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.ms-tab:hover { color: var(--ms-primary); }
.ms-tab.is-active {
    color: var(--ms-primary);
    border-bottom-color: var(--ms-accent);
}
.ms-tab .material-icons { font-size: 18px; }

.ms-tab-panel { display: none; }
.ms-tab-panel.is-active { display: block; animation: msFade .2s ease-out; }
@keyframes msFade { from {opacity: 0; transform: translateY(4px);} to {opacity: 1; transform: none;} }

/* ========== SECTIONS ========== */
.ms-section__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ms-primary);
}
.ms-section__title--spaced { margin-top: 28px; }
.ms-section__subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--ms-primary);
}
.ms-section__content { color: #4a5459; line-height: 1.6; }
.ms-section__content p { margin-bottom: 10px; }
.ms-section__content .text-muted { color: var(--ms-muted); font-style: italic; }

/* ========== CHIPS ========== */
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 16px;
    background: var(--ms-bg-soft);
    color: var(--ms-primary);
    font-size: 0.82rem;
    text-decoration: none;
    border: 1px solid var(--ms-border);
    transition: background .15s, color .15s;
}
.ms-chip:hover { background: var(--ms-accent); color: #fff; border-color: var(--ms-accent); }
.ms-chip--sm { font-size: 0.78rem; padding: 3px 10px; }

/* ========== HOURS ========== */
.ms-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}
.ms-hours-table th, .ms-hours-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ms-border);
    text-align: left;
}
.ms-hours-table th { width: 140px; font-weight: 600; color: var(--ms-primary); }
.ms-hours-table tr.is-today {
    background: rgba(128,180,53,0.08);
}
.ms-hours-table tr.is-today th { color: var(--ms-accent); }
.ms-today-label {
    margin-left: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ms-accent);
}
.ms-closed { color: #c0392b; font-style: italic; }

.ms-address {
    background: var(--ms-bg-soft);
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--ms-border);
    font-style: normal;
    margin-bottom: 16px;
    color: var(--ms-primary);
    line-height: 1.5;
}
.ms-map { border-radius: 8px; overflow: hidden; border: 1px solid var(--ms-border); }
.ms-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ========== EXTRA FIELDS ========== */
.ms-extra-fields {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
    margin: 0;
}
.ms-extra-fields dt { font-weight: 600; color: var(--ms-primary); }
.ms-extra-fields dd { margin: 0; color: #4a5459; }
@media (max-width: 576px) { .ms-extra-fields { grid-template-columns: 1fr; gap: 4px; } .ms-extra-fields dt { margin-top: 8px; } }

/* ========== FEED ========== */
.ms-feed-item {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--ms-bg-soft);
    border-radius: 8px;
    border-left: 3px solid var(--ms-accent);
}
.ms-feed-item small { display: block; margin-top: 6px; }

/* ========== SIDEBAR ========== */
.ms-card-box {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 18px;
}
.ms-card-box__title {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ms-muted);
    margin: 0 0 12px;
    font-weight: 600;
}

.ms-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ms-contact-list li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--ms-border);
    font-size: 0.9rem;
    align-items: flex-start;
}
.ms-contact-list li:last-child { border-bottom: 0; }
.ms-contact-list .material-icons { color: var(--ms-accent); font-size: 18px; margin-top: 2px; }
.ms-contact-list a { color: var(--ms-primary); text-decoration: none; }
.ms-contact-list a:hover { color: var(--ms-accent); }

.ms-social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ms-border);
}
.ms-social a {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--ms-bg-soft);
    color: var(--ms-primary);
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
    transition: background .15s, color .15s;
}
.ms-social a:hover { background: var(--ms-accent); color: #fff; }
.ms-social .material-icons { font-size: 18px; }

.ms-today-summary {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ms-primary);
}
.ms-open-dot { color: var(--ms-accent); font-weight: 600; margin-left: 6px; font-size: 0.85rem; }

.ms-products-placeholder {
    text-align: center;
    padding: 20px;
}

/* ========== PRODUCTS SECTION ========== */
.ms-profile__products {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--ms-border);
}
.ms-profile__products-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.ms-profile__products-count {
    font-size: 0.85rem;
    color: var(--ms-muted);
}
.ms-profile__products-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--ms-bg-soft);
    border-radius: 8px;
    margin-bottom: 20px;
}
.ms-profile__products-filter label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ms-primary);
}
.ms-profile__products-filter select {
    padding: 6px 10px;
    border: 1px solid var(--ms-border);
    border-radius: 4px;
    background: #fff;
    font-weight: 400;
    min-width: 180px;
}
.ms-profile__products-grid { margin: 0 -8px; }
.ms-profile__products-pagination { margin-top: 20px; }
.ms-profile__products-empty {
    padding: 32px 20px;
    background: var(--ms-bg-soft);
    border-radius: 8px;
    text-align: center;
    color: var(--ms-muted);
}

/* =========================================================================
   Application form — "list your business"
   ========================================================================= */

.ms-apply { max-width: 820px; margin: 0 auto; }

.ms-apply__section {
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 20px 22px;
    margin: 0 0 20px;
    background: #fff;
}
.ms-apply__section legend {
    width: auto;
    padding: 0 10px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ms-primary);
    border: 0;
}

.ms-field { margin-bottom: 16px; }

/* The theme right-aligns form labels globally and stacks them at the far
   edge of the field. Say left explicitly rather than inheriting that. */
.ms-apply label {
    display: block;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ms-primary);
    margin-bottom: 5px;
}
/* --ms-border (#e4e7ea) is the right weight for a panel edge and too faint
   for a form field: on white it reads as no box at all, and a text input the
   user cannot see the edge of looks like a broken page. Fields get the darker
   grey the browse filters already use. */
.ms-apply input[type="text"],
.ms-apply input[type="email"],
.ms-apply input[type="tel"],
.ms-apply input[type="number"],
.ms-apply select,
.ms-apply textarea {
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid #c9cfd4;
    border-radius: 5px;
    background: #fff;
    font-size: 0.95rem;
    color: #253237;
}
.ms-apply input:focus,
.ms-apply select:focus,
.ms-apply textarea:focus {
    outline: 0;
    border-color: var(--ms-accent);
    box-shadow: 0 0 0 3px rgba(128, 180, 53, 0.18);
}
.ms-apply textarea { resize: vertical; }
.ms-apply small {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ms-muted);
    font-weight: 400;
}
.ms-req { color: #c0392b; }

.ms-field-row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ms-field-row .ms-field { flex: 1 1 220px; }

.ms-apply__services,
.ms-apply__destinations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.ms-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400 !important;
    font-size: 0.9rem;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--ms-border);
    border-radius: 20px;
    cursor: pointer;
    background: #fff;
}
.ms-check input { margin: 0; }
.ms-check--regulated { border-color: #f0d9a8; background: #fffaf0; }
.ms-check__flag {
    font-size: 0.7rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ms-warning);
}

.ms-apply__note {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ms-muted);
    background: var(--ms-bg-soft);
    border-left: 3px solid var(--ms-border);
    padding: 10px 14px;
    margin: 0 0 16px;
    border-radius: 0 5px 5px 0;
}
.ms-apply__note--active {
    color: #8a5b00;
    background: #fff8e8;
    border-left-color: var(--ms-warning);
}
.ms-field--needed { border-color: var(--ms-warning) !important; background: #fffaf0 !important; }

/* Never rendered to a person; only a bot fills it in. Kept out of the
   accessibility tree as well as out of sight. */
.ms-apply__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ms-apply__submit { margin: 22px 0 40px; }
.ms-apply__privacy {
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ms-muted);
}

/* The theme styles <button class="btn"> but leaves <a class="btn"> bare, so
   both are stated here rather than trusting the inherited one. */
.ms-apply .btn.btn-primary,
.ms-apply a.btn.btn-primary {
    display: inline-block;
    background: var(--ms-accent);
    border: 1px solid var(--ms-accent);
    color: #fff;
    padding: 11px 26px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.ms-apply .btn.btn-primary:hover,
.ms-apply a.btn.btn-primary:hover { background: #6f9d2d; border-color: #6f9d2d; color: #fff; }

.ms-apply__done { padding: 26px; }
.ms-apply__done h2 { font-size: 1.25rem; margin-top: 0; }

@media (max-width: 720px) {
    .ms-field-row { display: block; }
    .ms-apply__section { padding: 16px 14px; }
    .ms-apply__services, .ms-apply__destinations { gap: 8px; }
}

/* =========================================================================
   Consultancy details, MARN compliance block, enquiry panel
   ========================================================================= */

.ms-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 20px;
    margin: 0 0 22px;
    font-size: 0.92rem;
}
.ms-facts dt { color: var(--ms-muted); font-weight: 600; }
.ms-facts dd { margin: 0; }

/* The registration panel is deliberately plain and legible rather than
   decorative: it carries a legal caveat, and a reader skimming for the
   number should find it without hunting. */
.ms-marn {
    margin: 24px 0 8px;
    padding: 18px 20px;
    border: 1px solid #cfe0ee;
    border-left: 4px solid var(--ms-info);
    border-radius: 0 var(--ms-radius) var(--ms-radius) 0;
    background: #f4f9fd;
}
.ms-marn--missing { border-color: #f0d9a8; border-left-color: var(--ms-warning); background: #fffaf0; }
.ms-marn__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ms-primary);
}
.ms-marn__title .material-icons { font-size: 1.15rem; color: var(--ms-info); }
.ms-marn--missing .ms-marn__title .material-icons { color: var(--ms-warning); }
.ms-marn__number { margin: 0 0 6px; font-size: 1.02rem; }
.ms-marn__number strong { letter-spacing: .02em; }
.ms-marn__qeac { margin: 0 0 6px; font-size: 0.92rem; }
.ms-marn__note {
    margin: 10px 0 8px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--ms-muted);
}
.ms-marn__link { margin: 0; font-size: 0.88rem; }
.ms-marn__link a { color: var(--ms-info); font-weight: 600; }

/* --- Enquiry panel ---------------------------------------------------- */

.ms-btn--accent { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }
.ms-btn--accent:hover { background: #6f9d2d; border-color: #6f9d2d; color: #fff; }

/* Without JavaScript the panel is simply a section further down the page,
   reachable by the anchor and fully usable. The overlay treatment is applied
   only once the script has a chance to open and close it. */
.ms-enquiry { margin: 28px 0; }
.ms-enquiry__backdrop { display: none; }
.ms-enquiry__close { display: none; }
.ms-enquiry__dialog {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 24px;
    max-width: 620px;
}
.ms-enquiry__title { margin: 0 0 18px; font-size: 1.2rem; }

.ms-enquiry label {
    display: block;
    text-align: left;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--ms-primary);
    margin-bottom: 5px;
}
.ms-enquiry input[type="text"],
.ms-enquiry input[type="tel"],
.ms-enquiry input[type="email"],
.ms-enquiry select,
.ms-enquiry textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c9cfd4;
    border-radius: 5px;
    font-size: 0.95rem;
    background: #fff;
    color: #253237;
}
.ms-enquiry input:focus,
.ms-enquiry select:focus,
.ms-enquiry textarea:focus {
    outline: 0;
    border-color: var(--ms-accent);
    box-shadow: 0 0 0 3px rgba(128, 180, 53, 0.18);
}
.ms-enquiry textarea { resize: vertical; }
.ms-enquiry__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ms-enquiry__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ms-enquiry__privacy { margin-top: 14px; font-size: 0.8rem; line-height: 1.5; color: var(--ms-muted); }
.ms-enquiry__result { margin-top: 12px; font-size: 0.9rem; }
.ms-enquiry__result--ok { color: var(--ms-success); font-weight: 600; }
.ms-enquiry__result--error { color: #c0392b; font-weight: 600; }

/* Overlay behaviour, applied only when the script is driving. */
body.ms-enquiry-open { overflow: hidden; }
.ms-enquiry.is-open {
    position: fixed;
    inset: 0;
    z-index: 1050;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}
.ms-enquiry.is-open .ms-enquiry__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 32, 0.55);
}
.ms-enquiry.is-open .ms-enquiry__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}
.ms-enquiry.is-open .ms-enquiry__close {
    display: block;
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--ms-muted);
    cursor: pointer;
}

/* The hero action row was built for three buttons and is flex-shrink: 0, so
   once the consultancy buttons (WhatsApp, Website, Send an enquiry) join it,
   its natural width exceeds a phone and it overflows the viewport instead of
   wrapping — the last button ends up off the right edge. Letting it take the
   full row and shrink lets its own flex-wrap do the work. */
@media (max-width: 768px) {
    .ms-profile__actions {
        flex: 1 1 100%;
        min-width: 0;
        flex-shrink: 1;
        width: 100%;
    }
    .ms-profile__actions .ms-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .ms-facts { grid-template-columns: 1fr; gap: 2px 0; }
    .ms-facts dd { margin-bottom: 10px; }
    .ms-marn { padding: 14px 15px; }
    .ms-enquiry__dialog { padding: 18px 15px; }
    .ms-enquiry__actions { flex-direction: column; }
    .ms-enquiry__actions .ms-btn { width: 100%; text-align: center; }
    .ms-enquiry.is-open { padding: 0; }
    .ms-enquiry.is-open .ms-enquiry__dialog { min-height: 100vh; border-radius: 0; }
}

/* =========================================================================
   Advertised services — what the business actually sells
   ========================================================================= */

.ms-offers { display: grid; gap: 14px; margin: 0 0 26px; }

.ms-offer {
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 16px 18px;
    background: #fff;
}
.ms-offer--highlight {
    border-color: var(--ms-accent);
    box-shadow: 0 0 0 1px var(--ms-accent) inset;
}

.ms-offer__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}
.ms-offer__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ms-primary);
}
/* The number is the thing a student is scanning for, so it gets the weight
   and sits on the same line as the title rather than below the description. */
.ms-offer__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ms-accent);
    white-space: nowrap;
}
.ms-offer__price--quote {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ms-muted);
}

.ms-offer__cat {
    margin: 4px 0 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ms-muted);
}
.ms-offer__desc { margin: 10px 0 0; font-size: 0.93rem; line-height: 1.55; }

.ms-offer__incl {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.ms-offer__incl li { margin: 0; }

.ms-offer__meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--ms-border);
    font-size: 0.86rem;
}
.ms-offer__meta dt { color: var(--ms-muted); font-weight: 600; }
.ms-offer__meta dd { margin: 0; }

.ms-offer__cta { margin-top: 14px; }

@media (max-width: 720px) {
    .ms-offer { padding: 14px 14px; }
    .ms-offer__head { flex-direction: column; align-items: flex-start; }
    .ms-offer__meta { grid-template-columns: 1fr; gap: 1px 0; }
    .ms-offer__meta dd { margin-bottom: 8px; }
    .ms-offer__cta { width: 100%; justify-content: center; }
}

/* The theme title-cases headings, which turns an authored service name like
   "Course and admission counselling" into "Course And Admission Counselling".
   These are sentences a business wrote, not section labels, so they render as
   typed. Scoped to this module's own blocks — the theme's own headings keep
   their styling. */
.ms-offer__title,
.ms-marn__title,
.ms-profile .ms-section__subtitle,
.ms-enquiry__title {
    text-transform: none;
}
