/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@300;400;600;700&display=swap');

/* --- Brand Variables --- */
:root {
    /* Legacy accent tokens mapped to the active brand palette */
    --cfn-green: #0663AF;
    --cfn-dk-green: #045293;
    --cfn-mute-green: #64ADD9;
    --cfn-light-green: #D9ECF8;
    
    /* Brand colors */
    --npt-blue: #0663AF;
    --npt-lt-blue: #64ADD9;
    --npt-blue-soft: #EAF4FB;
    --npt-gray: #4D4D4F;
    --npt-white: #F2F2F2;
    --npt-black: #141414;

    /* Modern Tokens */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --radius-pill: 50px;
    --radius-card: 24px;
}

* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    
    /* --- MODERNIZATION: Dark Hero Background --- */
    background: linear-gradient(135deg, #0F172A 0%, #0663AF 100%);
    color: var(--npt-black);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* --- Header --- */
.site-header {
    /* Transparent on dark bg or kept white? Keeping white for logo contrast */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    height: auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1100;
    width: 100%;
    overflow-x: hidden;
}

.highlight-green {
    color: var(--cfn-green);
    background: -webkit-linear-gradient(45deg, var(--cfn-green), var(--npt-lt-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-container {
    width: 100%;
    margin: 0; 
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 50px; 
    min-width: 0;
}

.logo-left,
.logo-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-left .logo-img { max-height: 40px; width: auto; max-width: 100%; display: block; }
.logo-right .logo-img { max-height: 34px; width: auto; max-width: 100%; display: block; }

/* --- Celebration Ribbon (Refined Heritage Panel) --- */
.celebration-ribbon {
    position: absolute;
    top: 96px;
    left: 24px;
    bottom: 28px;
    width: 244px;
    min-height: 520px;
    padding: 26px 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    color: var(--npt-gray);
    z-index: 1000;
    overflow: hidden;
    isolation: isolate;
    border-radius: 26px;
    border: 1px solid rgba(6, 99, 175, 0.34);
    background: linear-gradient(168deg, rgba(224, 238, 249, 0.98) 0%, rgba(173, 212, 237, 0.97) 50%, rgba(104, 167, 216, 0.95) 100%);
    box-shadow: 0 20px 46px rgba(6, 99, 175, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(6px);
}

.celebration-ribbon::before {
    content: "";
    position: absolute;
    inset: -35% -55% auto -55%;
    height: 260px;
    background: radial-gradient(circle, rgba(100, 173, 217, 0.44) 0%, rgba(100, 173, 217, 0.18) 34%, rgba(100, 173, 217, 0) 76%);
    pointer-events: none;
    z-index: 0;
}

.celebration-ribbon::after {
    content: none;
}

.ribbon-badge {
    position: relative;
    width: 100%;
    min-height: 116px;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
}

.ribbon-badge::before,
.ribbon-badge::after {
    content: none;
}

.ribbon-logo {
    width: 192px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    filter: none;
}

.ribbon-content {
    position: relative;
    z-index: 1;
    margin-top: -2px;
}

.ribbon-content::before {
    content: "Celebrating";
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(6, 99, 175, 0.78);
}

.celebration-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    line-height: 1;
    margin: 0 0 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    color: var(--npt-blue);
    text-shadow: none;
}

.celebration-title .year-number {
    display: inline-block;
    position: relative;
    font-size: 3.75rem;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: 0.03em;
    background: linear-gradient(182deg, #fff9e4 0%, #fce7aa 26%, #e8c76f 55%, #d0a448 76%, #b3862c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 1px 0 rgba(255, 248, 220, 0.92),
        0 10px 16px rgba(129, 91, 28, 0.24),
        0 0 0.8px rgba(146, 104, 32, 0.3),
        0.6px 0 0 rgba(146, 104, 32, 0.18),
        -0.6px 0 0 rgba(146, 104, 32, 0.18),
        0 0.6px 0 rgba(146, 104, 32, 0.14),
        0 -0.6px 0 rgba(146, 104, 32, 0.12);
    filter: drop-shadow(0 6px 9px rgba(122, 87, 24, 0.2));
}

.celebration-title .year-number::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 45%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 74%);
    z-index: -1;
    pointer-events: none;
}

.celebration-title .year-number::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -6px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(147, 96, 17, 0.24) 0%, rgba(147, 96, 17, 0) 72%);
    pointer-events: none;
}

.celebration-title .year-label {
    display: block;
    font-size: 1.04rem;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--npt-blue);
}

.ribbon-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 400;
    color: rgba(77, 77, 79, 0.92);
}

.ribbon-content strong {
    font-weight: 700;
    color: var(--npt-blue);
    text-decoration: none;
}

.heritage-timeline {
    width: 100%;
    flex: 1;
    min-height: 120px;
    margin-top: 8px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.heritage-year {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    color: rgba(6, 99, 175, 0.9);
}

.heritage-line {
    width: 2px;
    flex: 1;
    min-height: 72px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(6, 99, 175, 0.2) 0%, rgba(6, 99, 175, 0.78) 50%, rgba(6, 99, 175, 0.2) 100%);
}

.ribbon-footer {
    width: 100%;
    margin-top: 0;
    padding-top: 22px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(6, 99, 175, 0.24);
}

.ribbon-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 30%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, rgba(214, 158, 58, 0), rgba(214, 158, 58, 0.85), rgba(214, 158, 58, 0));
}

.ribbon-footer i {
    display: none;
}

.slogan {
    display: block;
    color: rgba(6, 99, 175, 0.84);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.55;
}

/* --- Main Content --- */
.main-wrapper {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    padding: 30px 20px; 
    position: relative; 
    width: 100%; 
    z-index: 10; /* Ensure content is above bg patterns */
}

@media (max-width: 1199px) {
    .celebration-ribbon { display: none; }
}

/* --- The Card (Modernized) --- */
.card {
    background-color: #ffffff;
    width: 100%;
    max-width: 800px; 
    padding: 60px 40px; 
    
    /* MODERNIZATION: High Rounding & Deep Shadow */
    border-radius: var(--radius-card); 
    text-align: center;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 900; 
}

/* Top Color Bar */
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px; 
    background: linear-gradient(90deg, var(--cfn-green), var(--cfn-light-green));
}

.card h1 {
    font-family: var(--font-heading);
    font-size: 3rem; 
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--npt-black); 
    letter-spacing: -1px;
    line-height: 1.1;
}

.card p {
    font-size: 1.15rem; 
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--npt-gray); 
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
}

/* --- Search Container (Pill Shaped) --- */
.search-container {
    display: flex;
    gap: 8px; 
    max-width: 700px; 
    margin: 0 auto;
    background-color: white; 
    
    /* MODERNIZATION: Pill Shape + Shadow */
    border-radius: var(--radius-pill); 
    padding: 6px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border: 1px solid #e5e7eb;
}

.input-group {
    flex-grow: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px; 
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem; 
}

#address-input {
    width: 100%;
    border: none;
    font-size: 1.1rem; 
    padding: 16px 20px 16px 55px; 
    
    /* MODERNIZATION: Pill Shape */
    border-radius: var(--radius-pill); 
    
    color: var(--npt-black);
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent; 
    font-family: var(--font-body);
}

#address-input:focus {
    background-color: transparent;
}

.search-container:focus-within {
    box-shadow: 0 15px 35px rgba(6, 99, 175, 0.16);
    border-color: var(--cfn-green);
    transform: translateY(-2px);
}

#check-btn {
    background-color: var(--cfn-green); 
    color: white;
    border: none;
    padding: 14px 35px; 
    font-size: 1rem; 
    font-weight: 700;
    
    /* MODERNIZATION: Pill Shape */
    border-radius: var(--radius-pill); 
    
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(6, 99, 175, 0.22);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#check-btn:hover {
    background-color: var(--cfn-dk-green);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(6, 99, 175, 0.32);
}

.polygon-loading-indicator {
    margin: 14px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 14px;
}

.polygon-loading-spinner {
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: polygon-loading-spin 1.05s linear infinite;
}

.polygon-loading-indicator.is-failed {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.polygon-loading-indicator.is-failed .polygon-loading-spinner {
    animation: none;
    opacity: 0.45;
}

@keyframes polygon-loading-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Lead Form Styles --- */
.contact-form {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--npt-gray);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--npt-black);
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-body);
    background: #f8fafc;
}

.form-group input:focus {
    border-color: var(--cfn-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(6, 99, 175, 0.12);
}

.form-group input:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    color: #9ca3af;
}

#submit-lead-btn {
    width: 100%;
    background-color: var(--cfn-green);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem; 
    font-weight: 700;
    border-radius: var(--radius-pill); 
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(6, 99, 175, 0.22);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#submit-lead-btn:hover:not(:disabled) {
    background-color: var(--cfn-dk-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 99, 175, 0.32);
}

#submit-lead-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.g-recaptcha { margin-bottom: 20px; display: flex; justify-content: center; }

/* --- Business Inquiry Section --- */
.business-inquiry {
    margin-top: 35px; 
    padding-top: 25px; 
    border-top: 1px dashed #e5e7eb;
    color: #64748b;
    font-family: var(--font-body);
}

.business-inquiry p { font-size: 0.95rem; margin-bottom: 0; line-height: 1.4; }
.business-inquiry i { color: #9ca3af; margin-right: 6px; }

.business-inquiry a {
    color: var(--cfn-green);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.business-inquiry a:hover {
    color: var(--cfn-dk-green);
    border-bottom-color: var(--cfn-dk-green);
}

/* --- Unavailable State Overrides --- */
.card.unavailable { border-top: none; }
.card.unavailable::before { background: linear-gradient(90deg, #dc2626, #ef4444); }

.card.unavailable #check-btn { 
    background-color: #dc2626; 
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
}
.card.unavailable #check-btn:hover {
    background-color: #b91c1c;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

/* --- Footer --- */
.footer-container {
    background-color: transparent; /* Transparent on dark body */
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px; 
    text-align: center;
    position: relative;
    z-index: 900; 
}

.footer-container p { margin: 8px 0; color: rgba(255,255,255,0.4); font-size: 0.9rem; }
.footer-container a { color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 500; margin: 0 12px; transition: color 0.2s; }
.footer-container a:hover { color: var(--cfn-green); }

/* --- Result Area --- */
.hidden { display: none !important; }

#result-container {
    margin-top: 40px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 30px;
    border-top: 1px dashed #e5e7eb;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#result-icon-wrapper { font-size: 3.5rem; margin-bottom: 15px; }
#result-status { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 10px; font-weight: 800; }
#result-detail { font-size: 1.1rem; }

#reset-btn {
    margin-top: 25px;
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--npt-gray);
    padding: 12px 30px; 
    font-size: 1rem; 
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#reset-btn:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
    color: var(--npt-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* --- Autocomplete --- */
.pac-container {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid #f1f5f9;
    margin-top: 8px;
    font-family: var(--font-body);
    overflow: hidden; 
}
.pac-item { padding: 12px 20px; font-size: 1rem; cursor: pointer; border-top: 1px solid #f9fafb; }
.pac-item:hover { background-color: var(--npt-blue-soft); }
.pac-item-query { font-size: 1rem; color: var(--npt-black); font-weight: 600; }

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .site-header {
        height: auto;
        min-height: 60px;
        padding: 10px 14px;
    }
    .logo-container {
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }
    .logo-left .logo-img {
        max-height: 28px;
        max-width: 58vw;
    }
    .logo-right .logo-img {
        max-height: 24px;
        max-width: 34vw;
    }
    .card h1 { font-size: 2.4rem; } 
    .search-container { flex-direction: column; border-radius: 20px; padding: 12px; }
    #address-input { padding: 14px 20px 14px 50px; }
    #check-btn { width: 100%; padding: 15px; }
}

@media (max-width: 768px) {
    .site-header {
        min-height: 54px;
        padding: 8px 10px;
    }
    .logo-container { gap: 8px; }
    .logo-left .logo-img {
        max-height: 24px;
        max-width: 56vw;
    }
    .logo-right .logo-img {
        max-height: 20px;
        max-width: 34vw;
    }
    .main-wrapper { padding: 25px 15px; }
    .card { padding: 30px 20px; }
    .card h1 { font-size: 2rem; margin-bottom: 15px; }
    .card p { font-size: 1rem; margin-bottom: 25px; }
    
    .pac-container { width: 100% !important; left: 0 !important; position: absolute !important; }
}

