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

:root {
    --angaza-primary: #063544;
    --angaza-secondary: #082f3a;
    --angaza-deep: #041f29;
    --angaza-gold: #d79a2b;
    --angaza-gold-dark: #b97813;
    --angaza-soft: #f7f9fb;
    --angaza-text: #102a43;
    --angaza-muted: #6b7280;
    --angaza-border: #e5e7eb;
    --angaza-shadow: 0 24px 70px rgba(4, 31, 41, 0.16);
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.angaza-public-body {
    min-height: 100vh;
    color: var(--angaza-text);
    background:
        radial-gradient(circle at top left, rgba(215, 154, 43, 0.18), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(6, 53, 68, 0.18), transparent 30rem),
        linear-gradient(180deg, #f7f9fb 0%, #ffffff 62%);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.angaza-public-shell {
    min-height: 100vh;
    width: 100%;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.angaza-public-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(6, 53, 68, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 53, 68, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.angaza-public-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.angaza-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 12px clamp(16px, 4vw, 48px);
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, var(--angaza-primary), var(--angaza-deep));
    box-shadow: 0 14px 35px rgba(4, 31, 41, 0.16);
    backdrop-filter: blur(18px);
}

.angaza-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.angaza-public-brand:hover,
.angaza-public-brand:focus {
    color: #fff;
    text-decoration: none;
}

.angaza-public-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(4, 31, 41, 0.1);
}

.angaza-public-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.angaza-public-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.angaza-public-nav a:hover,
.angaza-public-nav a:focus,
.angaza-public-nav .is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}

.angaza-public-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 66px);
    border-radius: 0;
    color: #fff;
    background:
        radial-gradient(circle at 18% 10%, rgba(215, 154, 43, 0.34), transparent 18rem),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12), transparent 20rem),
        linear-gradient(145deg, var(--angaza-primary), var(--angaza-deep));
    box-shadow: var(--angaza-shadow);
}

.angaza-public-container > .angaza-section,
.angaza-public-container > .angaza-public-footer {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.angaza-public-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 58px 58px;
}

.angaza-public-hero > * {
    position: relative;
    z-index: 1;
}

.angaza-public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #ffe5ad;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.17);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.angaza-public-title {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.35rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.angaza-public-title span {
    color: var(--angaza-gold);
}

.angaza-public-copy {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.45vw, 1.16rem);
    line-height: 1.75;
}

.angaza-section {
    padding: clamp(34px, 5vw, 70px) 0;
}

.angaza-section-title {
    margin: 0 0 14px;
    color: var(--angaza-primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
}

.angaza-section-lead {
    max-width: 720px;
    margin: 0;
    color: var(--angaza-muted);
    line-height: 1.75;
}

.angaza-card {
    height: 100%;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(4, 31, 41, 0.07);
}

.angaza-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--angaza-gold), var(--angaza-gold-dark));
    box-shadow: 0 14px 32px rgba(199, 126, 23, 0.24);
}

.angaza-card h3,
.angaza-card h4 {
    color: var(--angaza-primary);
    font-weight: 800;
}

.angaza-card p {
    color: var(--angaza-muted);
    line-height: 1.7;
}

.angaza-gold-link,
.angaza-public-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--angaza-gold), var(--angaza-gold-dark));
    box-shadow: 0 18px 38px rgba(199, 126, 23, 0.28);
    font-weight: 800;
    text-decoration: none;
}

.angaza-gold-link:hover,
.angaza-gold-link:focus,
.angaza-public-btn:hover,
.angaza-public-btn:focus {
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.angaza-public-footer {
    margin-top: 28px;
    padding: 28px 0 6px;
    color: var(--angaza-muted);
    border-top: 1px solid var(--angaza-border);
}

.angaza-public-footer a {
    color: var(--angaza-primary);
    font-weight: 700;
    text-decoration: none;
}

.angaza-public-footer a:hover,
.angaza-public-footer a:focus {
    color: var(--angaza-gold-dark);
}

.angaza-company-show {
    background:
        radial-gradient(circle at top left, rgba(215, 154, 43, 0.14), transparent 25rem),
        linear-gradient(180deg, #f7f9fb 0%, #ffffff 76%);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.angaza-company-show .container.py-4 {
    max-width: 1180px;
}

.angaza-company-show .header-section {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 42px rgba(4, 31, 41, 0.08);
}

.angaza-company-show .header-section h3,
.angaza-company-show h4,
.angaza-company-show h5 {
    color: var(--angaza-primary);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    letter-spacing: 0;
}

.angaza-company-show .company-details {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 30px;
    box-shadow: var(--angaza-shadow);
}

.angaza-company-show .business-ads,
.angaza-company-show .card,
.angaza-company-show .modal-content {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(4, 31, 41, 0.07);
}

.angaza-company-show .card {
    overflow: hidden;
}

.angaza-company-show .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(4, 31, 41, 0.12);
}

.angaza-company-show .btn-primary,
.angaza-company-show .btn-success,
.angaza-company-show .btn-info {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--angaza-gold), var(--angaza-gold-dark));
    box-shadow: 0 12px 28px rgba(199, 126, 23, 0.22);
    font-weight: 800;
}

.angaza-company-show .btn-outline-primary,
.angaza-company-show .btn-outline-secondary {
    color: var(--angaza-primary);
    border-color: rgba(6, 53, 68, 0.22);
    font-weight: 800;
}

.angaza-company-show .btn-outline-primary:hover,
.angaza-company-show .btn-outline-secondary:hover {
    color: #fff;
    background: var(--angaza-primary);
    border-color: var(--angaza-primary);
}

.angaza-company-show .badge,
.angaza-company-show .badge-price {
    border-radius: 999px;
}

.angaza-popup-form label {
    color: var(--angaza-primary);
    font-weight: 800;
}

.angaza-popup-form .form-control {
    min-height: 50px;
    border: 1px solid var(--angaza-border);
    border-radius: 14px;
}

.angaza-popup-form .btn-success {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--angaza-gold), var(--angaza-gold-dark));
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(199, 126, 23, 0.24);
}

.angaza-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(6, 53, 68, 0.1);
    border-radius: 16px;
    background: rgba(247, 249, 251, 0.92);
}

.angaza-terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--angaza-gold-dark);
    flex: 0 0 18px;
}

.angaza-terms-check label {
    margin: 0;
    color: var(--angaza-muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
}

.angaza-terms-link {
    color: var(--angaza-primary);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(215, 154, 43, 0.55);
}

.angaza-terms-link:hover,
.angaza-terms-link:focus {
    color: var(--angaza-gold-dark);
    text-decoration: none;
}

.angaza-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.angaza-terms-modal.is-open {
    display: flex;
}

.angaza-terms-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 31, 41, 0.72);
    backdrop-filter: blur(8px);
}

.angaza-terms-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(84dvh, 720px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at top right, rgba(215, 154, 43, 0.16), transparent 16rem),
        #ffffff;
    box-shadow: 0 30px 90px rgba(4, 31, 41, 0.34);
    word-break: normal;
    overflow-wrap: anywhere;
}

.angaza-terms-dialog h2 {
    margin: 0 0 12px;
    color: var(--angaza-primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
}

.angaza-terms-dialog p,
.angaza-terms-dialog li {
    color: var(--angaza-muted);
    line-height: 1.7;
}

.angaza-terms-dialog ul {
    padding-left: 1.25rem;
}

.angaza-terms-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6, 53, 68, 0.12);
    border-radius: 999px;
    color: var(--angaza-primary);
    background: #fff;
    font-weight: 800;
}

.angaza-terms-close:hover,
.angaza-terms-close:focus {
    color: #fff;
    background: var(--angaza-primary);
}

.angaza-terms-lock {
    overflow: hidden;
}

.angaza-error-card {
    width: min(620px, 100%);
    margin: 9vh auto 0;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--angaza-shadow);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.angaza-error-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 18px;
}

.angaza-error-card h1 {
    margin: 0 0 12px;
    color: var(--angaza-primary);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
}

.angaza-error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

@media (max-width: 767.98px) {
    .angaza-public-shell {
        padding: 0;
    }

    .angaza-public-header {
        align-items: stretch;
        flex-direction: column;
        border-radius: 0;
    }

    .angaza-public-brand {
        justify-content: center;
    }

    .angaza-public-nav {
        justify-content: center;
        width: 100%;
    }

    .angaza-public-nav a {
        flex: 1 1 auto;
        min-width: 112px;
    }

    .angaza-public-hero,
    .angaza-card {
        border-radius: 22px;
    }
}

@media (max-width: 575.98px) {
    .angaza-terms-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .angaza-terms-dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .angaza-terms-dialog .angaza-gold-btn,
    .angaza-terms-dialog .angaza-public-btn,
    .angaza-terms-dialog .btn {
        width: 100%;
    }
}
