/*
Theme Name: Tapri AI Blog
Author: Aadil  Zaman
Version: 1.3
*/

/* Reset & Variables */
:root {
    --red: #ff2b39;
    --red-dark: #d91e2a;
    --red-light: rgba(255, 43, 57, .10);
    --bg: #ffffff;
    --surface: #f7f7f7;
    --border: #e8e8e8;
    --text: #111111;
    --body-text: #2a2a2a;
    --muted: #767676;
    --nav-h: 68px;
    --article-w: 720px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Responsive Grid & Layout */
.article-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 991px) {
    .article-wrap {
        grid-template-columns: 1fr;
    }
}



/* Container Responsive Fix */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (width >=40rem) {
    .container {
        max-width: 40rem;
    }
}

@media (width >=48rem) {
    .container {
        max-width: 48rem;
    }
}

@media (width >=64rem) {
    .container {
        max-width: 64rem;
    }
}

@media (width >=80rem) {
    .container {
        max-width: 80rem;
    }
}

@media (width >=96rem) {
    .container {
        max-width: 96rem;
    }
}

/* Table Responsive Fix */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.zone-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    font-size: 0.9rem;
}

.zone-table th {
    background: var(--surface);
    padding: 12px;
    text-align: left;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.zone-table td {
    padding: 15px 12px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   PROSE  — Single Post Content Typography
   ============================================================ */

/* Base prose wrapper */
.prose {
    color: var(--body-text);
    font-size: 1.05rem;
    line-height: 1.85;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Headings ---------- */
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-family: 'Lora', serif;
    color: var(--text);
    line-height: 1.3;
    font-weight: 700;
    margin-top: 2.4em;
    margin-bottom: 0.75em;
    letter-spacing: -0.3px;
}

.prose h2 {
    font-size: 1.75rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

/* Red accent bar on h2 */
.prose h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.prose h3 {
    font-size: 1.35rem;
    color: var(--text);
}

.prose h4 {
    font-size: 1.1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text);
}

.prose h5 {
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
}

.prose h6 {
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: var(--muted);
}

/* ---------- Paragraphs ---------- */
.prose p {
    margin-bottom: 1.4em;
    color: var(--body-text);
}

.prose p:last-child {
    margin-bottom: 0;
}

/* ---------- Links ---------- */
.prose a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-color: rgba(255, 43, 57, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s, color 0.2s;
    font-weight: 600;
}

.prose a:hover {
    color: var(--red-dark);
    text-decoration-color: var(--red);
}

/* ---------- Bold / Italic ---------- */
.prose strong,
.prose b {
    font-weight: 700;
    color: var(--text);
}

.prose em,
.prose i {
    font-style: italic;
}

/* ---------- Unordered & Ordered Lists ---------- */
.prose ul,
.prose ol {
    margin: 1.2em 0 1.5em 0;
    padding-left: 0;
    list-style: none;
}

.prose ul li,
.prose ol li {
    position: relative;
    padding: 0.5em 0.5em 0.5em 2em;
    margin-bottom: 0.4em;
    border-radius: 8px;
    line-height: 1.7;
    color: var(--body-text);
    background: transparent;
    transition: background 0.15s;
}

.prose ul li:hover,
.prose ol li:hover {
    background: var(--surface);
}

/* Bullet for ul */
.prose ul li::before {
    content: '';
    position: absolute;
    left: 0.65em;
    top: 1.05em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

/* Counter for ol */
.prose ol {
    counter-reset: prose-count;
}

.prose ol li {
    counter-increment: prose-count;
}

.prose ol li::before {
    content: counter(prose-count);
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin: 0.3em 0 0.3em 1.2em;
}

.prose ul ul li::before {
    width: 5px;
    height: 5px;
    background: transparent;
    border: 2px solid var(--red);
}

/* ---------- Tables ---------- */
.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    font-size: 0.92rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.prose thead {
    background: linear-gradient(135deg, var(--red) 0%, #c41826 100%);
}

.prose thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    border: none;
}

.prose thead th:first-child {
    border-radius: 0;
}

.prose tbody tr {
    transition: background 0.15s;
}

.prose tbody tr:nth-child(odd) {
    background: #ffffff;
}

.prose tbody tr:nth-child(even) {
    background: #fdf5f5;
}

.prose tbody tr:hover {
    background: rgba(255, 43, 57, 0.06);
}

.prose tbody td {
    padding: 13px 18px;
    border-top: 1px solid var(--border);
    vertical-align: top;
    color: var(--body-text);
    line-height: 1.6;
}

.prose tbody td strong {
    color: var(--text);
}

/* Wrap table in a scroll container automatically */
.prose table {
    display: table;
    /* keep */
    min-width: 480px;
}

/* Outer wrapper for scrollable tables – applied via JS below */
.prose .table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2em 0;
    border-radius: 12px;
}

.prose .table-scroll-wrapper table {
    margin: 0;
}

/* ---------- Blockquotes ---------- */
.prose blockquote {
    margin: 2em 0;
    padding: 1.2em 1.5em;
    border-left: 4px solid var(--red);
    background: linear-gradient(to right, rgba(255, 43, 57, 0.06), transparent 80%);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.prose blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.1em;
    left: 1rem;
    font-size: 4rem;
    color: var(--red);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.prose blockquote p {
    margin: 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 500;
}

.prose blockquote cite {
    display: block;
    margin-top: 0.75em;
    font-size: 0.82rem;
    font-style: normal;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- Inline Code ---------- */
.prose code {
    background: #fdf5f5;
    color: var(--red-dark);
    padding: 0.18em 0.5em;
    border-radius: 5px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.87em;
    font-weight: 600;
    border: 1px solid rgba(255, 43, 57, 0.15);
}

/* ---------- Code Blocks ---------- */
.prose pre {
    background: #0f1117;
    color: #e2e8f0;
    padding: 1.4em 1.6em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2em 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    border: 1px solid #1e2430;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
    border-radius: 0;
    font-weight: 400;
}

/* ---------- Horizontal Rule ---------- */
.prose hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2.5em 0;
    position: relative;
}

.prose hr::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: var(--red);
    padding: 0 10px;
    font-size: 0.8rem;
}

/* ---------- Images ---------- */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 1.8em auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.prose figure {
    margin: 2em 0;
}

.prose figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.75em;
    font-style: italic;
}

/* ---------- TOC Container ---------- */
.toc-container {
    background: linear-gradient(135deg, #fff5f5 0%, #fff9f9 100%);
    border: 1.5px solid rgba(255, 43, 57, 0.18);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 2em 0;
}

.toc-container h4 {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    font-size: 1rem !important;
    border-bottom: none !important;
    color: var(--text) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
}

/* Override any prose h2::before on TOC h4 */
.toc-container h4::before {
    display: none !important;
}

.toc-container ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.toc-container ul li {
    padding: 0.3em 0.4em 0.3em 1.4em !important;
    margin-bottom: 0.25em !important;
    background: transparent !important;
}

.toc-container ul li::before {
    display: none !important;
}

.toc-container ul li a {
    font-size: 0.93rem;
    color: var(--muted) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s;
    display: block;
    padding: 3px 0;
    border-radius: 4px;
}

.toc-container ul li a:hover {
    color: var(--red) !important;
    padding-left: 4px;
}

/* ---------- Callout / Notice boxes (if used in posts) ---------- */
.prose .wp-block-notice,
.prose .notice,
.prose .callout {
    padding: 1em 1.2em;
    border-radius: 10px;
    border-left: 4px solid var(--red);
    background: var(--red-light);
    margin: 1.8em 0;
    font-size: 0.95rem;
}

/* ---------- First paragraph lead text ---------- */
.prose>p:first-of-type {
    font-size: 1.12rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.9;
}

/* ============================================================
   SHARE BAR — Social sharing strip
   ============================================================ */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 2.5em 0 1.5em;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff9f9 100%);
    border: 1.5px solid rgba(255, 43, 57, 0.14);
    border-radius: 16px;
}

.share-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.share-label i {
    color: var(--red);
    font-size: 0.9rem;
}

.share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease,
        filter 0.22s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Shine sweep on hover */
.share-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.22);
    transform: skewX(-20deg);
    transition: left 0.4s ease;
    pointer-events: none;
}

.share-btn:hover::after {
    left: 130%;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    filter: brightness(1.08);
}

.share-btn:active {
    transform: translateY(0) scale(0.97);
}

/* Force icons white inside all share buttons */
.share-btn i {
    color: #ffffff !important;
    text-shadow: none;
    filter: none;
    opacity: 1;
}

/* Make share button text white */
.share-btn span {
    color: #ffffff !important;
}

/* Facebook */
.share-fb {
    background: #1877f2;
    color: #ffffff;
}

.share-fb:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Twitter / X */
.share-tw {
    background: #0f0f0f;
    color: #ffffff;
}

.share-tw:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* LinkedIn */
.share-li {
    background: #0a66c2;
    color: #ffffff;
}

.share-li:hover {
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}

/* WhatsApp */
.share-wa {
    background: #25d366;
    color: #ffffff;
}

.share-wa:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 600px) {
    .share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }

    .share-btn span {
        display: none;
        /* icon-only on mobile */
    }

    .share-btn {
        padding: 10px 14px;
        border-radius: 50%;
        gap: 0;
    }

    .share-btn i {
        font-size: 1rem;
    }

    .share-btns {
        gap: 8px;
    }
}

.article-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
}

/* --- Article Navigation Fine-tuning --- */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.article-nav-item {
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-nav-item.next {
    text-align: right;
    align-items: flex-end;
}

.article-nav-item:not(.empty):hover {
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.article-nav-item .nav-dir {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.article-nav-item:not(.empty):hover .nav-dir {
    color: var(--red);
}

.article-nav-item h5 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 700;
}

@media (max-width: 768px) {
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }

    .article-nav-item {
        width: 100%;
    }

    .article-nav-item.next {
        text-align: left;
        align-items: flex-start;
    }
}

/* Pagination Settings */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--red);
    color: #fff;
}

/* --- Footer Styling --- */
.tapri-footer {
    background-color: var(--red);
    color: #ffffff;
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 3.5rem;
}

.footer-cta {
    background-color: #dda509;
    /* Deep Golden yellow matching image */
    border-radius: 1.25rem;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-cta {
        flex-direction: row;
        padding: 3rem;
    }
}

.cta-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 10;
    color: #ffffff;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-content {
        text-align: left;
    }
}

.cta-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 2rem;
    }
}

.cta-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.cta-btn {
    position: relative;
    z-index: 10;
    background-color: #0d121c;
    /* Very dark navy blue */
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    transition: opacity 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cta-btn:hover {
    opacity: 0.85;
}

.footer-bottom {
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-logo img {
    height: 28px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copyright {
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    padding-bottom: 2rem;
    opacity: 0.8;
    color: #ffffff;
}

/* --- Modal Styling --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    color: #111;
}

.modal-accent {
    display: none;
    /* Removed accent bar completely */
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.85rem;
}

.modal-close:hover {
    background-color: #e2e8f0;
}

.modal-body {
    padding: 2.2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.8rem;
    margin-top: 0.5rem;
}

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    color: var(--red);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1.5px solid #ffccd0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.modal-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.tapri-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border-radius: 0.6rem;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
    color: #0f172a;
}

.tapri-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.tapri-input.pl-prefix {
    padding-left: 2.8rem;
}

.tapri-input:focus {
    border-color: var(--red);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 43, 57, 0.1);
}

.city-suggestions {
    position: absolute;
    z-index: 50;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 0.4rem;
    max-height: 12rem;
    overflow-y: auto;
    list-style: none;
    padding: 0;
}


.city-suggestion-item {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.city-suggestion-item:last-child {
    border-bottom: none;
}

.city-suggestion-item:hover {
    background-color: #f8fafc;
    color: var(--red);
}

.city-suggestion-item .highlight {
    font-weight: 700;
    color: var(--red);
}

.submit-btn {
    width: 100%;
    background-color: #ff2a39;
    color: #ffffff;
    padding: 0.9rem;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(255, 42, 57, 0.3);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: #e61c2b;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 42, 57, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-secure {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1.25rem;
}

.modal-success {
    padding: 2.2rem;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #f0fdf4;
    color: #22c55e;
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-success h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.modal-success p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.success-next {
    background-color: #fef2f2;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fee2e2;
}

.success-next strong {
    display: block;
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.success-next span {
    font-size: 0.8rem;
    color: #4b5563;
}

.got-it-btn {
    width: 100%;
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.8rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.got-it-btn:hover {
    background-color: #000000;
}

.hidden {
    display: none !important;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}