:root {
    --az-blue: #0052ff;
    --az-blue-dark: #003ec7;
    --az-navy: #0f172a;
    --az-text: #111827;
    --az-muted: #64748b;
    --az-border: #e5eaf2;
    --az-soft: #f5f7fb;
    --az-soft-blue: #eff6ff;
    --az-white: #ffffff;
    --az-shadow-sm: 0 10px 26px rgba(15, 23, 42, .055);
    --az-shadow-md: 0 18px 44px rgba(15, 23, 42, .08);
    --az-shadow-lg: 0 30px 80px rgba(15, 23, 42, .11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--az-text);
    background-color: #f8fafc;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.az-flash-container {
    margin-top: 18px;
}

/* Home */

.az-home {
    padding-bottom: 80px;
}

.az-hero {
    padding: 44px 0 22px;
}

.az-hero .container-xxl {
    background: white;
    border: 1px solid var(--az-border);
    border-radius: 42px;
    padding: 54px;
    box-shadow: var(--az-shadow-lg);
}

.az-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    background: var(--az-soft-blue);
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
}

.az-hero h1 {
    max-width: 780px;
    margin: 24px 0 0;
    color: var(--az-navy);
    font-size: clamp(48px, 7vw, 92px);
    line-height: .88;
    letter-spacing: -.085em;
    font-weight: 950;
}

.az-hero-copy {
    max-width: 720px;
    margin: 24px 0 0;
    color: #596579;
    font-size: 19px;
    line-height: 1.72;
}

.az-hero-search {
    max-width: 880px;
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 155px;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--az-border);
    border-radius: 24px;
    padding: 10px;
}

.az-search-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--az-border);
    border-radius: 17px;
    padding: 0 15px;
}

.az-search-main i {
    color: var(--az-muted);
}

.az-search-main input,
.az-search-state {
    width: 100%;
    height: 58px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.az-search-state {
    background: white;
    border: 1px solid var(--az-border);
    border-radius: 17px;
    text-align: center;
    text-transform: uppercase;
}

.az-hero-search button {
    height: 58px;
    border: 0;
    border-radius: 17px;
    background: var(--az-navy);
    color: white;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.az-hero-search button:hover {
    background: var(--az-blue);
}

.az-hero-tabs {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.az-hero-tabs a {
    color: var(--az-navy);
    background: white;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    text-decoration: none;
    padding: 10px 13px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .035);
}

.az-hero-tabs a:hover {
    color: var(--az-blue);
    border-color: #bfd4ff;
}

.az-sell-panel {
    display: grid;
    gap: 16px;
}

.az-sell-card {
    background: var(--az-navy);
    color: white;
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
}

.az-label {
    display: inline-block;
    color: var(--az-blue);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.az-sell-card .az-label {
    color: #93c5fd;
}

.az-sell-card h2 {
    margin: 8px 0 12px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 950;
}

.az-sell-card p {
    color: rgba(255,255,255,.76);
    line-height: 1.65;
    margin-bottom: 22px;
}

.az-sell-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--az-navy);
    background: white;
    border-radius: 999px;
    padding: 12px 15px;
    font-weight: 900;
    text-decoration: none;
}

.az-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.az-mini-grid a {
    background: white;
    border: 1px solid var(--az-border);
    border-radius: 24px;
    padding: 22px;
    color: var(--az-navy);
    text-decoration: none;
    box-shadow: var(--az-shadow-sm);
    transition: .18s ease;
}

.az-mini-grid a:hover,
.az-action-card:hover,
.az-feature-card:hover,
.az-category-card:hover {
    transform: translateY(-4px);
    border-color: #cfe0ff;
    box-shadow: var(--az-shadow-md);
}

.az-mini-grid i {
    color: var(--az-blue);
    font-size: 24px;
    margin-bottom: 16px;
}

.az-mini-grid strong {
    display: block;
    margin-bottom: 6px;
}

.az-mini-grid span {
    color: var(--az-muted);
    font-size: 14px;
}

/* Cards */

.az-quick-actions,
.az-business-strip,
.az-feature-section,
.az-directory {
    margin-top: 42px;
}

.az-action-card,
.az-feature-card,
.az-category-card {
    height: 100%;
    background: white;
    border: 1px solid var(--az-border);
    border-radius: 30px;
    padding: 26px;
    color: var(--az-navy);
    text-decoration: none;
    box-shadow: var(--az-shadow-sm);
    transition: .18s ease;
}

.az-action-card {
    display: grid;
    align-content: start;
    gap: 13px;
    min-height: 205px;
}

.az-action-card i,
.az-feature-icon,
.az-category-icon,
.az-business-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: var(--az-blue);
    background: var(--az-soft-blue);
    display: grid;
    place-items: center;
    font-size: 24px;
}

.az-action-card strong {
    font-size: 21px;
    font-weight: 950;
}

.az-action-card span {
    color: var(--az-muted);
    line-height: 1.55;
}

.az-business-inner {
    background: var(--az-navy);
    color: white;
    border-radius: 32px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.az-business-copy {
    display: flex;
    align-items: center;
    gap: 18px;
}

.az-business-inner h2 {
    margin: 6px 0 8px;
    font-size: 34px;
    letter-spacing: -.045em;
    font-weight: 950;
}

.az-business-inner p {
    margin: 0;
    color: rgba(255,255,255,.75);
}

.az-business-inner .az-label {
    color: #93c5fd;
}

.az-business-inner > a {
    white-space: nowrap;
    color: var(--az-navy);
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    text-decoration: none;
    font-weight: 900;
}

.az-section-head {
    max-width: 820px;
    margin-bottom: 24px;
}

.az-section-head h2 {
    margin: 8px 0;
    color: var(--az-navy);
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 950;
}

.az-section-head p {
    margin: 0;
    color: var(--az-muted);
    font-size: 17px;
    line-height: 1.6;
}

.az-feature-card h3,
.az-category-card h3 {
    color: var(--az-navy);
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.az-feature-card h3 {
    margin: 18px 0 8px;
}

.az-feature-card p,
.az-category-card p {
    color: var(--az-muted);
    line-height: 1.62;
}

.az-category-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 16px;
}

.az-category-card h3 {
    margin: 0 0 6px;
}

.az-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.az-chip-list a {
    color: #1d4ed8;
    background: #f4f8ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
}

.az-chip-list a:hover {
    background: var(--az-blue);
    color: white;
}

.az-more {
    margin-top: 14px;
}

.az-more summary {
    cursor: pointer;
    color: var(--az-navy);
    font-size: 14px;
    font-weight: 900;
}

/* Existing internal pages */

.page-section {
    max-width: 1280px;
    margin: 34px auto;
    padding: 0 24px;
    display: grid;
    gap: 22px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 120px auto;
    gap: 10px;
    background: white;
    border: 1px solid var(--az-border);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--az-shadow-sm);
}

.listing-grid,
.dashboard-grid,
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.listing-card,
.business-card,
.card {
    background: white;
    border: 1px solid var(--az-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--az-shadow-sm);
}

.form-card {
    max-width: 560px;
    margin: 42px auto;
}

.form-card.wide {
    max-width: 820px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--az-blue);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, .11);
}

.button,
button[type="submit"] {
    background: var(--az-navy);
    color: white;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 900;
}

.button:hover,
button[type="submit"]:hover {
    background: var(--az-blue);
}



/* Responsive */

@media (max-width: 991px) {
    .az-hero {
        padding-top: 24px;
    }

    .az-hero .container-xxl {
        padding: 32px;
        border-radius: 30px;
    }

    .az-hero-search {
        grid-template-columns: 1fr;
    }

    .az-search-state {
        text-align: left;
        padding-left: 14px;
    }

    .az-business-inner,
    .az-business-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .az-hero .container-xxl {
        padding: 24px;
        border-radius: 24px;
    }

    .az-hero h1 {
        font-size: 48px;
    }

    .az-hero-copy {
        font-size: 16px;
    }

    .az-mini-grid {
        grid-template-columns: 1fr;
    }

    .az-section-head h2 {
        font-size: 34px;
    }

    .az-business-inner h2 {
        font-size: 30px;
    }

    .page-section {
        padding: 0 16px;
    }

    .az-error-page {
        padding: 42px 0 70px;
    }

    .az-error-card {
        padding: 34px 20px;
        border-radius: 26px;
    }

    .az-error-actions {
        flex-direction: column;
    }

    .az-error-btn {
        width: 100%;
    }
}