/* ============================================
   CSS Fonts — local fallback face (kept as a
   fallback if Inter fails to load from Google Fonts)
   ============================================ */
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Design tokens
   ============================================ */
:root {
    /* Colour — deep navy ink, muted brass accent, cool stone ground.
       Brass is spent in exactly two places: the price tag and the
       primary CTA — everything else stays quiet. */
    --ink:          #16233a;
    --ink-soft:     #2a3a56;
    --ink-muted:    #5b6b80;
    --ink-faint:    #8b98a8;

    --brass:        #9c6b30;
    --brass-light:  #c99b5f;
    --brass-wash:   #f3ead9;

    --stone:        #eef1f4;
    --stone-deep:   #e3e8ed;
    --paper:        #ffffff;
    --line:         #dde3e9;

    --success-bg:   #eaf5ee;
    --success-ink:  #1f7a45;
    --error-bg:     #fdf0ee;
    --error-ink:    #a4402f;

    /* Type */
    --font-display: 'Fraunces', 'Myriad Pro', serif;
    --font-body:    'Inter', 'Myriad Pro', -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--stone);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global focus style */
:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
    border-radius: 3px;
}

/* dl / dt / dd resets */
dl, dt, dd {
    margin: 0;
    padding: 0;
}

/* ul resets where list-style is unwanted */
ul.project-advantage {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Header
   ============================================ */
.vpsf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(238, 241, 244, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: var(--transition-smooth);
    padding: 0.85rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vpsf-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vpsf-logo-img {
    height: 46px;
    width: auto;
}

.auth-partner-text {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brass);
    border-left: 1px solid var(--line);
    padding-left: 1rem;
    line-height: 1.3;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
}

.vpsf-brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.vpsf-tagline {
    font-size: 0.75rem;
    color: var(--brass);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Hero Banner (kept for future use — hidden on
   most breakpoints per existing behaviour)
   ============================================ */
.builder-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--ink);
}

.carousel-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(22,35,58,0.35), rgba(22,35,58,0.75));
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: var(--brass-light);
    transform: scale(1.2);
}

.builder-hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    display: none;
}

.builder-hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: #ffffff;
}

.builder-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brass-light);
}

/* ============================================
   Builder Info Section
   ============================================ */
.builder-info {
    padding: 3.5rem 0 3.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.builder-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.builder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .builder-layout {
        grid-template-columns: 200px 1fr;
        gap: 3.5rem;
        align-items: flex-start;
    }
    .builder-logo {
        justify-content: flex-start;
    }
    .builder-hero-content {
        display: block;
    }
}

.builder-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.builder-logo-img {
    max-width: 180px;
    height: auto;
}

.builder-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.builder-blurb {
    font-size: 1.05rem;
    color: var(--ink-muted);
    font-weight: 400;
    line-height: 1.7;
    text-align: left;
}

.builder-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .builder-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .stat-label {
        font-size: 0.85rem;
    }
}

.stat-item {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ============================================
   Controls Section — city switcher
   ============================================ */
.controls-section {
    padding: 3.5rem 0 2.5rem;
    display: flex;
    justify-content: flex-start;
}

.city-filter-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.city-switcher-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--ink);
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    min-width: 190px;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.custom-select-trigger:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.custom-select-trigger:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

.custom-select-trigger .caret {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--brass);
    color: var(--brass);
}

.custom-select-wrapper.open .caret {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--paper);
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(22, 35, 58, 0.12);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.custom-option:hover {
    background: var(--stone);
    color: var(--brass);
}

.custom-option.selected {
    background: var(--ink);
    color: #ffffff;
    font-weight: 600;
}

/* ============================================
   Projects Grid
   ============================================ */
.projects-section {
    padding: 0 0 7rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 2.5rem;
    }
}

.project-card {
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(22, 35, 58, 0.04);
}

.project-card:hover {
    box-shadow: 0 20px 40px -8px rgba(22, 35, 58, 0.14);
    border-color: var(--brass-light);
    transform: translateY(-4px);
}

.project-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Signature element: a brass hang-tag pinned to the image corner,
   in the spirit of a property price tag / blueprint annotation. */
.card-price-tag {
    position: absolute;
    top: 14px;
    left: -6px;
    background: var(--brass);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.7rem 0.35rem 0.85rem;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 4px 10px rgba(22, 35, 58, 0.25);
    transform: rotate(-2deg);
    z-index: 1;
}

.card-price-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    border-width: 5px 0 0 6px;
    border-style: solid;
    border-color: transparent transparent transparent #6e4c20;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--ink);
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: '';
    display: block;
    width: 26px;
    height: 3px;
    margin-top: 0.5rem;
    background: var(--brass);
    border-radius: 2px;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.project-title a:hover {
    color: var(--brass);
}

.project-locality {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1.4rem;
    font-weight: 400;
}

.project-locality .spec-icon {
    color: var(--brass);
    width: 14px;
    height: 14px;
    margin-right: 0;
}

/* Specs Rows — set in mono, like dimension figures on a floor plan */
.project-specs {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
    padding: 0.9rem 1rem;
    background: var(--stone);
    border-radius: 2px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    padding: 0.1rem 0;
    transition: var(--transition-smooth);
}

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

.spec-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.spec-icon {
    color: var(--ink-faint);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.spec-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Key Advantage highlight container */
.project-advantage {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--brass-wash);
    border-left: 3px solid var(--brass);
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

.advantage-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */
.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    border-radius: 3px;
}

.btn-primary {
    background-color: var(--brass);
    color: #ffffff;
    border: 1px solid var(--brass);
    box-shadow: 0 4px 12px rgba(156, 107, 48, 0.25);
}

.btn-primary:hover {
    background-color: #7f5624;
    border-color: #7f5624;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(156, 107, 48, 0.32);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-secondary:hover {
    background-color: var(--ink);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   Utility
   ============================================ */
.hidden {
    display: none !important;
}

.no-js-msg {
    padding: 1rem;
    background: var(--paper);
    color: var(--ink-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 0.9rem;
    border: 1px solid var(--line);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--ink);
    color: #ffffff;
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
        gap: 2rem;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-brand .auth-partner-text {
    color: var(--brass-light);
    border-left: 1px solid rgba(255,255,255,0.2);
}

.footer-copy-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-copy-wrapper {
        align-items: flex-end;
    }
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-subcopy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

/* ============================================
   MOBILE (max-width: 639px)
   2 x 2 card grid, compact spacing, tokens intact
   ============================================ */
@media (max-width: 639px) {
    .container { padding: 0 1rem; }

    .vpsf-brand, .footer-brand {
        gap: 0.5rem;
    }
    .vpsf-logo-img, .footer-logo {
        height: 36px;
    }
    .auth-partner-text {
        font-size: 0.6rem;
        padding-left: 0.5rem;
        line-height: 1.2;
    }

    .builder-hero { height: 280px; }
    .builder-hero-title { font-size: 2.2rem; }
    .builder-hero-subtitle { font-size: 0.95rem; }

    .stat-number { font-size: 1.75rem; }
    .builder-logo-img { max-width: 110px; }

    /* Controls */
    .controls-section { padding: 1.75rem 0 1.25rem; }
    .city-switcher-label { font-size: 1.05rem; }
    .custom-select-wrapper { min-width: 0; flex: 1 1 auto; }
    .custom-select-trigger { font-size: 0.85rem; padding: 0.5rem 0.9rem; }

    /* 2 x 2 card grid on mobile */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-card:hover {
        transform: none;
    }

    .card-image-wrapper { height: 108px; }

    .card-price-tag {
        top: 8px;
        left: -4px;
        font-size: 0.55rem;
        padding: 0.24rem 0.5rem 0.24rem 0.6rem;
    }

    .card-content {
        padding: 0.75rem 0.7rem 0.85rem;
    }

    .project-title {
        font-size: 0.88rem;
        line-height: 1.25;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .project-title::after {
        width: 18px;
        height: 2px;
        margin-top: 0.35rem;
    }

    .project-locality {
        font-size: 0.66rem;
        gap: 0.25rem;
        margin-top: 0.5rem;
        margin-bottom: 0.55rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .project-locality .spec-icon {
        width: 10px;
        height: 10px;
    }

    .project-specs {
        gap: 0.3rem;
        margin-bottom: 0.55rem;
        padding: 0.5rem 0.6rem;
        border-radius: 2px;
    }

    .spec-item { gap: 0.3rem; padding: 0.05rem 0; }

    .spec-icon { width: 10px; height: 10px; }

    .spec-value { font-size: 0.68rem; }

    .project-advantage {
        padding: 0.4rem 0.55rem;
        margin-bottom: 0.6rem;
        border-radius: 0 5px 5px 0;
    }

    .advantage-text {
        font-size: 0.62rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .card-actions {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.6rem;
        letter-spacing: 0.03em;
        border-radius: 5px;
    }
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 35, 58, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 24px 60px rgba(22, 35, 58, 0.3);
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-muted);
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--ink);
}

.modal-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink);
    text-align: center;
}

.modal-subheading {
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-highlight {
    color: var(--brass);
    font-weight: 600;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(156, 107, 48, 0.15);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}

.form-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--brass);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.5;
    cursor: pointer;
}

.modal-alert {
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.modal-alert-error {
    color: var(--error-ink);
    background: var(--error-bg);
    border: 1px solid #f4cec6;
}

.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0 0.5rem;
    gap: 0.75rem;
}

.modal-success[hidden] {
    display: none !important;
}

.modal-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success-ink);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.modal-success-heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.modal-success-text {
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.6;
}

.modal-submit {
    width: 100%;
    margin-top: 0.25rem;
    justify-content: center;
}

.modal-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.modal-call-btn {
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
    justify-content: center;
    background-color: var(--success-ink);
    border-color: var(--success-ink);
    text-decoration: none;
    color: #ffffff;
}

.modal-call-btn:hover {
    background-color: #175c34;
    border-color: #175c34;
    color: #ffffff;
}

@media (max-width: 639px) {
    .modal-box {
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
    }
}