/* ============================================================
   Avalaunch Address Services — GUI v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*
 * Reserve scrollbar gutter space ONLY on pages that contain this plugin.
 * This prevents the ~15px width shift when results load and the page grows.
 * Uses :has() — supported in Chrome 105+, Firefox 121+, Safari 15.4+.
 */
body:has(#avalaunch-address-search-wrapper) {
    scrollbar-gutter: stable;
}

/* --- Wrapper: locked width, single column --- */
#avalaunch-address-search-wrapper {
    width: 100%;
    max-width: 720px;
    min-width: 0;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    /* Prevent any child from ever expanding the container width */
    position: relative;
}

/* --- Shared Card: always full width --- */
.aas-card {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e4e9;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Remove grid-area assignments — back to plain flow */
#aas-search-card,
#aas-results-card,
#aas-map-card {
    grid-area: unset;
}

/* ============================================================
   ① SEARCH CARD
   ============================================================ */

.aas-section-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #374151;
}

/* Search card: overflow hidden so dropdown doesn't affect card size */
#aas-search-card {
    overflow: visible;
}

/* Row styling */
.aas-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Grouping the address and unit into one continuous visual block */
.aas-search-input-group {
    display: flex;
    align-items: center;
    flex: 1 1 100%;
    min-width: 0;
    height: 48px;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden; /* keeps corners rounded */
}
.aas-search-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Search icon inside the group */
.aas-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 16px;
    padding-right: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}
.aas-search-icon svg {
    width: 18px;
    height: 18px;
}

/* Address container & input */
#avalaunch-address-search-wrapper #avalaunch-place-container {
    flex: 1 1 100% !important;
    min-width: 100px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
#avalaunch-address-search-wrapper #avalaunch-address-input {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding: 0 12px 0 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    color: #111827 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
}
#avalaunch-address-input::placeholder {
    color: #9ca3af;
}

/* Divider line between Address and Unit */
.aas-input-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    flex-shrink: 0;
    margin: 0 4px;
}

/* Unit / Apt input */
#avalaunch-address-search-wrapper .aas-unit-input {
    flex: 0 0 110px !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding: 0 16px 0 12px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    color: #111827 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
}
.aas-unit-input::placeholder {
    color: #9ca3af;
}

/* Search button */
#aas-search-btn {
    flex-shrink: 0;
    height: 48px;
    /* matches input + select height */
    background: #1e4db7;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0 28px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, transform 0.1s;
    line-height: 1;
}

#aas-search-btn:hover {
    background: #1640a0;
}

#aas-search-btn:active {
    transform: scale(0.97);
}

/* ============================================================
   ② RESULTS CARD
   ============================================================ */

/* Header row: count left, clear-results link right */
.aas-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

#aas-results-count {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1f2937;
}

#aas-clear-results {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s;
}

#aas-clear-results:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Results card: always in flow, hidden via opacity until .aas-visible */
#aas-results-card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    /* Height: 0 when hidden so it doesn't push content */
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

#aas-results-card.aas-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 9999px;
    overflow: visible;
    padding: 24px 28px !important;
    margin: unset !important;
    border: 1px solid #e2e4e9 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#avalaunch-services-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aas-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e2e4e9;
    border-radius: 12px;
    padding: 14px 18px;
    background: #ffffff;
    transition: box-shadow 0.15s;
}

.aas-account-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Left: name + location */
.aas-account-info {
    flex: 1 1 auto;
    min-width: 0;
}

.aas-account-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.aas-account-name.aas-dim {
    font-weight: 600;
    color: #6b7280;
}

.aas-account-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.aas-account-loc svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    color: #6b7280;
}

/* Right: distance + details link */
.aas-account-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.aas-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #4f4b8a;
    background: rgba(99, 95, 196, 0.10);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
}

.aas-distance-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.aas-view-details {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
    /* reset button defaults */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.aas-view-details:hover {
    color: #1d4ed8;
}

/* Error / no-results / loading */
.aas-message {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    padding: 6px 0;
}

.aas-message.error {
    color: #dc2626;
}

/* ============================================================
   ③ MAP CARD
   ============================================================ */

.aas-map-card {
    background: #f0f0f5;
    border-color: #e2e4e9;
    height: 420px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Placeholder shown before map tiles load */
.aas-map-card .aas-map-icon,
.aas-map-card .aas-map-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.aas-map-card .aas-map-icon {
    width: 52px;
    height: 52px;
    color: #9ca3af;
    top: calc(50% - 40px);
    transform: translate(-50%, -50%);
}

.aas-map-card .aas-map-label {
    bottom: auto;
    top: calc(50% + 14px);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
}

/* ============================================================
   Google Autocomplete dropdown override
   ============================================================ */
.pac-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    margin-top: 6px !important;
    overflow: hidden !important;
    padding: 4px !important;
    background: #ffffff !important;
    /* Ensure dropdown is wide enough to show full addresses */
    min-width: 380px !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.pac-item {
    padding: 10px 12px !important;
    border-top: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #374151 !important;
    line-height: 1.4 !important;
    margin: 2px 0 !important;
    transition: background 0.12s !important;
    white-space: nowrap !important;
    /* Never truncate mid-address */
}

.pac-item:hover,
.pac-item-selected {
    background: #f3f4f6 !important;
}

.pac-item-query {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    padding-right: 4px !important;
}

.pac-matched {
    color: #2563eb !important;
    font-weight: 600 !important;
}

.pac-icon {
    display: none !important;
}

/* ============================================================
   ACCOUNT DETAILS MODAL
   ============================================================ */

/* Overlay */
#aas-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99999;
    display: none;
    /* shown via JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: aasOverlayIn 0.2s ease;
}

@keyframes aasOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal panel */
#aas-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    animation: aasModalIn 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes aasModalIn {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header */
#aas-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f0f0f5;
    flex-shrink: 0;
}

#aas-modal-type {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

#aas-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

#aas-modal-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

#aas-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Body */
#aas-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
    flex: 1;
}

/* Distance row */
#aas-modal-distance-row {
    margin-bottom: 18px;
}

#aas-modal-distance-row .aas-distance-badge {
    font-size: 13px;
}

/* Sections */
.aas-modal-section {
    margin-bottom: 20px;
}

.aas-modal-section:last-child {
    margin-bottom: 0;
}

.aas-modal-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* Field grid: 2 columns */
.aas-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.aas-modal-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.aas-modal-field-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.aas-modal-field-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    word-break: break-word;
}

a.aas-modal-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
}

a.aas-modal-link:hover {
    text-decoration: underline;
}

/* Modal responsive */
@media screen and (max-width: 480px) {
    #aas-modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    #aas-modal {
        border-radius: 18px 18px 0 0;
        max-height: 85vh;
    }

    .aas-modal-grid {
        grid-template-columns: 1fr;
    }

    #aas-modal-title {
        font-size: 16px;
    }
}



/* ============================================================
   RESPONSIVE — Desktop (≥ 769 px)
   Results + Map side by side — map never shifts when results appear
   ============================================================ */
/* ============================================================
   RESPONSIVE — Desktop
   Single column always — width never changes
   ============================================================ */
@media screen and (min-width: 769px) {

    /* Map card: fixed height on desktop */
    .aas-map-card {
        height: 380px !important;
    }
}

/* ============================================================
   RESPONSIVE — Tablet  (≤ 768 px)
   ============================================================ */
@media screen and (max-width: 768px) {

    #avalaunch-address-search-wrapper {
        gap: 14px !important;
    }

    .aas-card {
        border-radius: 12px !important;
        padding: 20px 16px !important;
    }

    /* Stack the search row vertically */
    .aas-search-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .aas-search-input-group {
        width: 100% !important;
        flex: none !important;
    }

    /* Search button full width */
    #aas-search-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 13px 20px !important;
        box-sizing: border-box !important;
    }

    /* Account card wraps on overflow */
    .aas-account-card {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Map */
    .aas-map-card {
        height: 300px !important;
    }
}

/* ============================================================
   RESPONSIVE — Mobile  (≤ 480 px)
   ============================================================ */
@media screen and (max-width: 480px) {

    .aas-card {
        border-radius: 10px !important;
        padding: 16px 12px !important;
    }

    .aas-section-label {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    /* Hide radius label, let select take full row */
    .aas-radius-label {
        display: none !important;
    }

    .aas-radius-group {
        width: 100% !important;
    }

    #avalaunch-radius {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Results header: count above, clear below */
    .aas-results-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    /* Account card: info stacked, then actions row below */
    .aas-account-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .aas-account-actions {
        width: 100% !important;
        justify-content: space-between !important;
        display: flex !important;
        align-items: center !important;
    }

    .aas-account-name {
        font-size: 14px !important;
    }

    /* Map */
    .aas-map-card {
        height: 250px !important;
    }

    .gm-style .gm-style-iw-c {
        max-width: 220px !important;
    }
}

/* ============================================================
   STATUS CARDS  (serviceable / coming soon)
   ============================================================ */

.aas-status-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 12px;
    border: 1.5px solid transparent;
}

.aas-status-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.aas-status-text strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.aas-status-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Available / serviceable */
.aas-status-available {
    background: #f0fdf4;
    border-color: #86efac;
    color: #14532d;
}

.aas-status-available .aas-status-icon {
    color: #16a34a;
}

/* Coming soon / not serviceable */
.aas-status-coming-soon {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.aas-status-coming-soon .aas-status-icon {
    color: #64748b;
}

/* No service at this address */
.aas-status-no-coverage {
    background: #fef9f0;
    border-color: #fcd34d;
    color: #78350f;
}

.aas-status-no-coverage .aas-status-icon {
    font-size: 22px;
    color: #d97706;
}

.aas-status-no-coverage .aas-status-text p {
    color: #92400e;
}

.aas-status-no-coverage .aas-status-text a {
    color: #92400e;
}

/* ============================================================
   NO COVERAGE BLOCK (Lead Capture Form)
   ============================================================ */
.aas-no-coverage-block {
    text-align: center;
    padding: 48px 24px;
    background: #eff4fa;
    border-radius: 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.aas-nc-title {
    font-size: 36px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.aas-nc-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #3c4043;
    margin: 0 0 36px;
}
.aas-nc-form-container {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.aas-nc-form-group {
    display: flex;
    width: 100%;
    background: #ffffff;
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid #e2e4e9;
}
.aas-nc-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    outline: none !important;
    color: #3c4043 !important;
    min-width: 0 !important;
    box-shadow: none !important;
    height: auto !important;
}
.aas-nc-input::placeholder {
    color: #9ca3af;
}
.aas-nc-submit {
    background: #1a73e8 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 0 36px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    flex-shrink: 0 !important;
    height: 48px !important;
    line-height: 48px !important;
}
.aas-nc-submit:hover {
    background: #1557b0 !important;
}
.aas-nc-disclaimer {
    font-size: 13px;
    color: #5f6368;
    margin: 0;
    text-align: left;
    padding-left: 12px;
}
.aas-nc-disclaimer a {
    color: #1a73e8;
    text-decoration: underline;
}

@media screen and (max-width: 520px) {
    .aas-nc-title { font-size: 28px; }
    .aas-nc-subtitle { font-size: 16px; }
    .aas-nc-form-group {
        flex-direction: column;
        border-radius: 16px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 12px;
        border: none;
    }
    .aas-nc-input {
        background: #ffffff !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
        border: 1px solid #e2e4e9 !important;
    }
    .aas-nc-submit {
        width: 100% !important;
        border-radius: 12px !important;
    }
    .aas-nc-disclaimer {
        padding-left: 0;
        text-align: center;
        width: 100%;
    }
}

/* ============================================================
   CONTACT MODAL — Premium Redesign
   ============================================================ */

/* Overlay */
#aas-contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 30, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal panel */
#aas-contact-modal {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: linear-gradient(160deg, #0d1e3a 0%, #0a1628 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 44px 40px 36px;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.55),
        0 0 0 1px rgba(59,130,246,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #ffffff;
    overflow: hidden;
    animation: aasCMIn 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes aasCMIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1)   translateY(0);     }
}

/* Decorative glow blob */
#aas-contact-modal::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Close button */
#aas-contact-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: rgba(255,255,255,0.65);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
#aas-contact-modal-close:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

/* Badge */
.aas-cm-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 40px;
    margin-bottom: 20px;
}

/* Title & subtitle */
.aas-cm-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.aas-cm-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Gradient divider */
.aas-cm-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
    margin-bottom: 28px;
}

/* Options grid */
.aas-cm-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Each option row */
.aas-cm-option {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px 20px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.aas-cm-option:hover {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.35);
    transform: translateY(-1px);
}

/* Icon circle */
.aas-cm-icon-wrap {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aas-cm-icon-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}
.aas-cm-icon-wrap svg {
    width: 24px; height: 24px;
    color: #ffffff;
}

/* Option text body */
.aas-cm-option-body {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.aas-cm-option-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.aas-cm-option-primary {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.3;
}
.aas-cm-option-primary:hover { color: #93c5fd; }

.aas-cm-option-secondary {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.aas-cm-option-secondary:hover { color: rgba(255,255,255,0.8); }

/* Inline tag pill */
.aas-cm-option-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(59,130,246,0.2);
    color: #93c5fd;
    border-radius: 20px;
    padding: 2px 8px;
}

/* CTA button */
.aas-cm-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e4db7, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 40px;
    padding: 10px 22px;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.aas-cm-cta-btn:hover {
    background: linear-gradient(135deg, #1640a0, #1e4db7);
    box-shadow: 0 6px 20px rgba(37,99,235,0.55);
    transform: scale(1.03);
    color: #ffffff;
}

/* Footer note */
.aas-cm-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.aas-cm-footer-note svg { flex-shrink: 0; }

/* ---- Responsive ---- */
@media screen and (max-width: 520px) {
    #aas-contact-modal {
        padding: 36px 20px 28px;
        border-radius: 18px;
    }
    .aas-cm-title { font-size: 24px; }
    .aas-cm-option { flex-wrap: wrap; gap: 12px; }
    .aas-cm-cta-btn { width: 100%; text-align: center; }
}