:root {
    --primary-color: #1B5E20;  
    --secondary-color: #322D78; 
    --pressed-color: #D19914; 
    --accent-color: #D31919; 
    --text-color: #333333;      
    --bg-color: #F4F7F6;      
    --card-bg: #FFFFFF;     
    
    /* Logo Palette Additions */
    --logo-red: #D31919;
    --logo-yellow: #FFD700;
    --logo-blue: #3A86FF;
    --logo-brown: #795548;
    --logo-green: #2E7D32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    padding-top: 0;
    padding-bottom: 0;
    overflow-x: hidden;
}

.fixed-header-wrapper {
    position: relative;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.site-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--bg-color);
}

.header-logo-left, .header-logo-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-header img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: var(--bg-color);
    padding: 2px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.header-center {
    text-align: center;
}

.header-center h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.header-center p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-bar {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.nav-bar a {
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    border: none;
}

.nav-bar a:hover {
    background-color: var(--secondary-color);
    color: #FFFFFF;
}

.nav-bar a:active,
.nav-bar a.active {
    background-color: var(--pressed-color) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

footer {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-align: center;
    line-height: 50px;
    font-weight: 600;
    font-size: 0.70rem;
    border: none;
    outline: none;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    margin-top: auto;
}

footer p {
    margin: 0;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 25px 20px;
    flex: 1;
    width: 100%;
}

.container h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.8rem;
}

.container h3 {
    color: var(--primary-color);
    margin: 10px 0 14px 0;
    text-align: center;
    font-size: 1.2rem;
}

.container p {
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 15px;
    font-size: 1rem;
}

.card-box, 
.table-container, 
.gallery-item, 
.media-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none !important;
    outline: none !important;
    overflow: hidden;
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: stretch;
}

.reg-card-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
    height: 100%;
    margin-bottom: 0;
}

.master-content-card {
    padding: 25px;
}

.master-content-card .content-section {
    margin-bottom: 25px;
}

.master-content-card .content-section:last-child {
    margin-bottom: 0;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}

.product-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.50);
}

.card-box img {
    background-color: var(--pressed-color);
    display: block;
}

.table-container {
    padding: 0;
    overflow-x: auto;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    border: 1px solid #CCCCCC;
}

.feature-table th {
    background-color: var(--primary-color);
    color: var(--card-bg);
    padding: 14px 18px;
    font-weight: 600;
    border: 1px solid #CCCCCC;
}

.feature-table td {
    padding: 14px 18px;
    border: 1px solid #E0E0E0;
}

.feature-table td i {
    color: var(--secondary-color); 
    margin-right: 8px;
}

.feature-table tbody tr:last-child td {
    border-bottom: 1px solid #E0E0E0;
}

.feature-table tbody tr:nth-child(even) {
    background-color: rgba(244, 247, 246, 0.6);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item img, 
.media-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: var(--pressed-color);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.clickable-input {
    cursor: pointer;
    background-color: #FAFAFA !important;
}

.form-help-text {
    display: block;
    font-size: 0.8rem;
    color: #666666;
    margin-top: 5px;
}

.form-group input.input-error {
    border: 2px solid var(--accent-color) !important;
    background-color: #FFF5F5 !important;
    outline: none;
}

.form-group input.input-error::placeholder {
    color: #D31919;
    opacity: 0.7;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

.btn-submit:active {
    background-color: var(--pressed-color);
    transform: scale(0.99);
}

.btn-inquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-inquire:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-inquire:active {
    background-color: var(--pressed-color);
    transform: scale(0.98);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 42px;
}

.toggle-password-icon {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: #666666;
    font-size: 1.05rem;
    transition: color 0.2s ease-in-out;
    user-select: none;
}

.toggle-password-icon:hover {
    color: var(--secondary-color);
}

hr {
    border: 0;
    height: 1px;
    background-color: #E0E0E0;
    margin: 20px 0;
}

hr.section-divider {
    border: 0;
    height: 1px;
    background-color: #E0E0E0;
    margin: 25px 0;
    width: 100%;
}

.divider-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px 0;
}

.divider-with-text .section-divider {
    width: 200px;
    border: none;
    border-top: 1px solid #CCCCCC;
    margin: 0;
}

.divider-with-text .divider-label {
    padding: 0 15px;
    font-weight: bold;
    color: var(--secondary-color, #666666);
    font-size: 1rem;
    text-transform: lowercase;
}

.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.custom-modal-box {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: none !important;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon-wrapper {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: pulseCheck 0.6s ease-in-out;
}

@keyframes pulseCheck {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 280px; 
    margin: 0 auto;
    border-radius: 8px;
    background-color: var(--pressed-color); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
}

.media-card .video-container video,
.video-container video {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 18;
    object-fit: cover;
    margin-bottom: 0;
    display: block;
    transition: transform 0.3s ease;
}

.video-container:hover video {
    transform: scale(1.05);
}

.mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.1s;
    z-index: 10;
}

.mute-btn:hover {
    background-color: var(--secondary-color);
}

.mute-btn:active {
    transform: scale(0.9);
}

.compact-gallery-card {
    padding: 0; 
    margin-bottom: 0;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.gallery-viewport {
    flex: 1;
    overflow: hidden; 
    border-radius: 8px;
    min-width: 0;
}

.gallery-slider {
    display: flex;
    gap: 12px; 
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.gallery-card-box {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
    border: none !important;
    overflow: hidden;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.50);
}

.gal-arrow {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.gal-arrow:hover {
    background-color: var(--primary-color);
}

.gal-arrow:active {
    background-color: var(--pressed-color);
    transform: scale(0.9);
}

#imageLightboxModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.6);
    object-fit: contain; 
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.2s ease;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--pressed-color);
    text-decoration: none;
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.img-loading-wrapper {
    position: relative;
    background-color: var(--pressed-color);
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.img-loading-wrapper:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.gallery-slider .img-loading-wrapper {
    display: inline-block;
}

.product-card-link .img-loading-wrapper {
    display: block;
    width: 100%;
    height: 140px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.img-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #1B5E20);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: spin 1s linear infinite;
}

.gallery-slider .img-spinner {
    width: 30px;
    height: 30px;
}

.product-card-link .img-spinner {
    width: 28px;
    height: 28px;
}

@keyframes spin { 
    0% { transform: translate(-50%, -50%) rotate(0deg); } 
    100% { transform: translate(-50%, -50%) rotate(360deg); } 
}

.lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
    width: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.img-loading-wrapper:hover .lazy-img {
    transform: scale(1.06);
}

.gallery-slider .lazy-img {
    height: 160px;
}

.product-card-link .lazy-img {
    height: 140px;
}

.lazy-img.loaded {
    opacity: 1;
}

.video-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #1B5E20);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: block;
}

#tutorialVideo {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#tutorialVideo.loaded {
    opacity: 1;
}

@media (min-width: 769px) {
    .gallery-slider .img-loading-wrapper {
        flex: 0 0 calc((100% - 36px) / 4); 
        width: calc((100% - 36px) / 4);
        height: 160px; 
    }
}

@media (max-width: 768px) {
    .gallery-slider .img-loading-wrapper {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: 135px; 
    }

    .gallery-slider .lazy-img {
        height: 135px;
    }

    body {
        padding-top: 0;
        padding-bottom: 0;
        transition: none;
    }

    .site-header {
        gap: 10px;
        padding: 8px 10px;
    }

    .site-header img {
        height: 48px;
        width: 48px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    }

    .header-center h1 {
        font-size: 1.15rem;
    }

    .header-center p {
        font-size: 0.75rem;
    }

    .nav-bar {
        gap: 4px;
        padding: 6px 4px;
    }

    .nav-bar a {
        padding: 6px 10px;
        font-size: 0.9rem;
        border-radius: 4px;
    }

    .reg-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 15px 12px;
    }

    .table-container {
        font-size: 0.8rem;
    }
}

/* Modals with Zero Borders */
.profile-modal-window {
    background-color: #1e1e1e;
    width: 90vw;
    max-width: 960px;
    height: 85vh;
    max-height: 720px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    border: none !important;
    outline: none !important;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-modal-header {
    background-color: #2d2d2d;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
    border: none !important;
    z-index: 10;
}

.profile-modal-header:active {
    cursor: grabbing;
}

.browser-tab-dots {
    display: flex;
    gap: 3px;
    align-items: center;
    flex: 0 0 auto;
}

.browser-tab-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

/* Matched Logo Colors & Wild Stagger Animations for Dots */
.dot-red { 
    background-color: var(--logo-red); 
    cursor: pointer; 
    animation: waveWild 1.8s infinite ease-in-out 0s;
}

.dot-yellow { 
    background-color: var(--logo-yellow); 
    animation: waveWild 1.8s infinite ease-in-out 0.3s;
}

.dot-green { 
    background-color: var(--logo-blue); /* Logo Blue substituted */
    animation: waveWild 1.8s infinite ease-in-out 0.6s;
}

.dot-brown { 
    background-color: var(--logo-brown); 
    animation: waveWild 1.8s infinite ease-in-out 0.9s;
}

@keyframes waveWild {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-6px) scale(1.2);
    }
    50% {
        transform: translateY(3px) scale(0.9);
    }
    75% {
        transform: translateY(-3px) scale(1.1);
    }
}

.browser-address-bar {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 480px;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none !important;
}

.profile-modal-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.zoom-ctrl-btn, .close-profile-modal {
    background-color: #3d3d3d;
    color: #ffffff;
    border: none !important;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s, transform 0.1s;
}

.map-open-link {
    text-decoration: none;
}

.zoom-ctrl-btn:hover, .close-profile-modal:hover {
    background-color: var(--secondary-color);
}

.close-profile-modal:hover {
    background-color: var(--accent-color);
}

.profile-modal-viewport {
    flex: 1;
    background-color: #121212;
    position: relative;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal-viewport:active {
    cursor: grabbing;
}

.profile-canvas-scaler {
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    position: absolute;
    will-change: transform;
}

.profile-canvas-scaler iframe {
    width: 100%;
    height: 100%;
    border: none !important;
    background-color: #ffffff;
    display: block;
}

.contact-page-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 950px;
    width: 100%;
}

.contact-master-card {
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    max-width: 600px;
}

/* Map Window Container without Borders */
.map-modal-window {
    background-color: #1e1e1e;
    width: 100%;
    max-width: 600px;
    height: 650px;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    border: none !important;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Desktop Split View Alignment & Gap Filling Pop-up Card */
.map-column-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 auto;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Message Summary Card Popup Container */
.sent-message-popup-card {
    display: none;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none !important;
    position: relative;
    overflow: hidden;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sent-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-review {
    background-color: #FFF3CD;
    color: #856404;
}

.status-received {
    background-color: #D4EDDA;
    color: #155724;
}

.message-preview-box {
    position: relative;
    background-color: #F8F9FA;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    border: none !important;
}

/* Red Semi-circle Badge */
.red-semicircle-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 18px;
    background-color: var(--logo-red);
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(211, 25, 25, 0.4);
}

.red-semicircle-indicator i {
    color: #ffffff;
    font-size: 0.65rem;
    margin-top: -4px;
}

.btn-edit-message {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.btn-edit-message:hover {
    background-color: var(--primary-color);
}

@media (min-width: 992px) {
    .contact-page-container.split-active {
        max-width: 1240px;
        flex-direction: row;
        align-items: stretch;
        gap: 25px;
    }

    .contact-page-container.split-active .contact-master-card {
        margin: 0 !important;
        flex: 0 0 580px;
    }

    .contact-page-container.split-active .map-column-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        flex: 0 0 600px;
        margin: 0;
    }

    /* The map takes whatever height is left, so there is no empty gap between it, the ad and the status card */
    .contact-page-container.split-active .map-modal-window {
        display: flex;
        height: auto;
        min-height: 420px;
        flex: 1 1 420px;
    }
}

@media (max-width: 991px) {
    .map-modal-window.mobile-popup-active {
        display: flex;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3000;
        width: 92vw;
        max-width: 450px;
        height: 65vh;
        box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    }

    .sent-message-popup-card.mobile-active {
        margin-top: 0;
    }
}

/* ===== Fifth wave dot: logo green (added; the original four dots are untouched) ===== */
.dot-logo-green {
    background-color: var(--logo-green);
    animation: waveWild 1.8s infinite ease-in-out 1.2s;
}

/* ===== Reserved ad space (sits between the map and the message status) ===== */
.sponsor-slot {
    position: relative;
    width: 100%;
    min-height: 110px;               /* reserved up front so the page never jumps when an ad loads */
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 22px 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sponsor-slot-label {
    position: absolute;
    top: 6px;
    left: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #8A8A8A;
}

.sponsor-slot-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.sponsor-slot-content:empty {
    display: none;
}

.sponsor-slot-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9AA3A0;
    font-size: 0.85rem;
    font-weight: 600;
}

.sponsor-slot.has-ad .sponsor-slot-placeholder {
    display: none;
}

/* ===== Message status card: [big envelope + "View message"] / status / Edit above Delete =====
   Desktop = icon + words. Phones (600px and under) = icons only. */
.sent-message-popup-card {
    display: none;                       /* script.js shows it as a grid */
    grid-template-columns: 1fr;
    grid-template-areas:
        "view"
        "status"
        "actions";
    row-gap: 14px;
    align-items: center;
    justify-items: start;
}

.envelope-trigger {
    grid-area: view;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px 0 0;
    border: none;
    border-radius: 44px;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.envelope-trigger-icon {
    position: relative;
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(209, 153, 20, 0.16);
    color: var(--pressed-color);
    font-size: 2.6rem;
    transition: transform 0.15s ease, background-color 0.2s ease;
    animation: envelopeBreathe 2.2s ease-in-out infinite;
}

/* the circle pulses with light: a soft gold ring that spreads out and fades */
.envelope-trigger-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    animation: envelopeGlow 2.2s ease-out infinite;
}

@keyframes envelopeGlow {
    0%   { box-shadow: 0 0 0 0 rgba(209, 153, 20, 0.55), 0 0 12px 3px rgba(255, 215, 0, 0.40); }
    70%  { box-shadow: 0 0 0 14px rgba(209, 153, 20, 0), 0 0 26px 8px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(209, 153, 20, 0), 0 0 12px 3px rgba(255, 215, 0, 0); }
}

@keyframes envelopeBreathe {
    0%, 100% { scale: 1; }
    50% { scale: 1.06; }
}

.envelope-trigger:hover .envelope-trigger-icon {
    background-color: rgba(209, 153, 20, 0.28);
}

.envelope-trigger:hover .btn-label {
    text-decoration: underline;
}

.envelope-trigger:active .envelope-trigger-icon {
    transform: scale(0.92);
}

.envelope-trigger:focus-visible,
.btn-edit-message:focus-visible,
.btn-delete-message:focus-visible,
.envelope:focus-visible {
    outline: 2px solid var(--secondary-color) !important;
    outline-offset: 3px;
}

.envelope-trigger-icon i {
    animation: envelopeNudge 2.4s ease-in-out infinite;
}

@keyframes envelopeNudge {
    0%, 70%, 100% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    85% { transform: rotate(10deg); }
    95% { transform: rotate(-5deg); }
}

.sent-message-popup-card .sent-message-header {
    grid-area: status;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.status-lead {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444444;
}

.sent-message-popup-card .status-badge,
.envelope-modal-box .status-badge {
    text-transform: none;
}

.status-rejected {
    background-color: #F8D7DA;
    color: #721C24;
}

.sent-message-actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;              /* Edit on top, Delete under it */
    align-items: stretch;
    gap: 8px;
    width: min(100%, 210px);
}

.btn-edit-message,
.btn-delete-message {
    color: #FFFFFF;
    border: none !important;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.btn-edit-message i,
.btn-delete-message i {
    width: 1.2em;
    text-align: center;
}

.btn-edit-message {
    background-color: var(--secondary-color);
}

.btn-edit-message:hover {
    background-color: var(--primary-color);
}

.btn-delete-message,
.btn-danger {
    background-color: var(--accent-color);
}

.btn-delete-message:hover,
.btn-danger:hover {
    background-color: #A81212;
}

.btn-edit-message:active {
    background-color: var(--pressed-color);
}

.btn-delete-message:active,
.btn-danger:active {
    background-color: #7F0D0D;
}

/* ===== Envelope pop-up (same centered pop-in as the "Tada!" modal) ===== */
.envelope-modal-box {
    position: relative;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
}

.envelope-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: #F1F1F1;
    color: #555555;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.envelope-close:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

/* The closed envelope. Opening it: flap lifts, the letter rises, then the whole envelope folds away and the paper takes its place.
   Closing is the reverse and starts at once (the delays below belong to the opening only). */
.envelope-stage {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 0.3s ease, opacity 0.2s ease;
}

.envelope-stage-clip {
    min-height: 0;
    overflow: hidden;
}

.envelope-stage-pad {
    perspective: 800px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 70px 24px 28px;             /* room for the letter to rise and for the shadow */
}

.envelope-stage.is-open {
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s ease 0.5s, opacity 0.25s ease 0.5s;
}

.envelope {
    position: relative;
    display: block;
    width: 210px;
    height: 136px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.env-back {
    position: absolute;
    inset: 0;
    background-color: #B98310;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.env-letter {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 112px;
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    z-index: 2;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.12s;
}

.env-letter span {
    display: block;
    height: 6px;
    border-radius: 3px;
    background-color: #E3E6E5;
}

.env-letter span:nth-child(1) { width: 55%; background-color: #CFD8D3; }
.env-letter span:nth-child(3) { width: 85%; }
.env-letter span:nth-child(4) { width: 70%; }

.env-front {
    position: absolute;
    inset: 0;
    background-color: var(--pressed-color);
    border-radius: 6px;
    clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
    z-index: 3;
}

.env-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56%;
    background-color: #E2AC2B;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transform: perspective(700px) rotateX(0deg);
    z-index: 4;
    transition: transform 0.35s ease-in-out, z-index 0s linear 0.18s;
}

/* a small lift of the tip invites the tap */
.envelope-stage:not(.is-open) .envelope:hover .env-flap,
.envelope-stage:not(.is-open) .envelope:focus-visible .env-flap {
    transform: perspective(700px) rotateX(18deg);
}

.envelope-stage.is-open .env-flap {
    transform: perspective(700px) rotateX(180deg);
    z-index: 1;
    background-color: #B98310;
}

.envelope-stage.is-open .env-letter {
    transform: translateY(-62px);
}

.envelope-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.env-hint {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: #8A8A8A;
}

.letter-reader {
    position: relative;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    text-align: left;
    background-color: #FBFAF4;
    border-radius: 8px;
    /* top-right corner is cut away: the folded tip sits there */
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.2s ease;
}

.envelope-stage.is-open ~ .letter-reader {
    max-height: 290px;
    opacity: 1;
    margin-top: 42px;                    /* keeps the folded corner clear of the close button */
    margin-bottom: 10px;
    transition: max-height 0.4s ease 0.6s, opacity 0.35s ease 0.6s, margin 0.3s ease 0.6s;
}

.letter-scroll {
    max-height: 250px;
    overflow-y: auto;
}

.letter-fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    background: linear-gradient(to bottom left, transparent 50%, var(--pressed-color) 50%);
    filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, 0.25));
    transition: transform 0.15s ease;
    transform-origin: top right;
}

.letter-fold:hover {
    transform: scale(1.18);
}

.letter-fold:active {
    transform: scale(0.94);
}

.letter-fold:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.letter-subject {
    margin: 0;
    padding: 12px 44px 4px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.letter-text {
    margin: 0;
    padding: 4px 16px 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #333333;
    white-space: pre-wrap;
    word-break: break-word;
}

.envelope-actions {
    display: flex;
    flex-direction: column;              /* Edit on top, Delete under it */
    gap: 10px;
}

.envelope-actions .btn-submit {
    padding: 12px 10px;
    font-size: 0.95rem;
}

/* ===== "Delete your message?" confirmation ===== */
.delete-confirm-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-actions .btn-submit {
    flex: 1 1 0;
    padding: 11px 10px;
    font-size: 0.95rem;
}

/* ===== Phones: big pulsing envelope on the left; status, Edit and Delete stacked on the right (same words as desktop) ===== */
@media (max-width: 600px) {
    .sent-message-popup-card {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "view status"
            "view actions";
        column-gap: 18px;
        row-gap: 12px;
        padding: 18px 16px;
        align-items: start;
    }

    .envelope-trigger {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        align-self: center;
        text-align: center;
        font-size: 0.95rem;
    }

    .envelope-trigger-icon {
        width: 112px;
        height: 112px;
        font-size: 3.4rem;
    }

    .sent-message-actions {
        width: 100%;
    }

    .btn-edit-message,
    .btn-delete-message {
        padding: 11px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .envelope-stage-pad {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .envelope-trigger-icon,
    .envelope-trigger-icon::before,
    .envelope-trigger-icon i {
        animation: none;
    }

    .envelope-stage,
    .envelope-stage.is-open,
    .env-flap,
    .env-letter,
    .letter-reader,
    .envelope-stage.is-open ~ .letter-reader {
        transition-duration: 0.01s;
        transition-delay: 0s;
    }
}


/* ===== Notification dot on the envelope (the SLP Admin answered and you have not opened it yet) ===== */
.envelope-trigger.has-update .envelope-trigger-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid #FFFFFF;
}

/* ===== Image lightbox: swipe / arrow keys, tap to close ===== */
#imageLightboxModal,
#imageLightboxModal * {
    touch-action: pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox-content {
    cursor: zoom-out;
    -webkit-user-drag: none;
}

.lightbox-content.lb-from-right {
    animation: lbFromRight 0.28s ease-out;
}

.lightbox-content.lb-from-left {
    animation: lbFromLeft 0.28s ease-out;
}

@keyframes lbFromRight {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes lbFromLeft {
    from { transform: translateX(-60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

/* ===== News & articles (cards share the Product Gallery look) ===== */
.news-section h3 {
    margin-bottom: 4px;
}

.news-grid.news-more {
    margin-top: 20px;
    animation: newsReveal 0.35s ease-out;
}

.news-grid.news-more[hidden] {
    display: none;
}

@keyframes newsReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card .news-title {
    margin: 0 0 6px;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--primary-color);
}

.news-card .news-excerpt {
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E8ECEA;
}

.news-date {
    font-size: 0.8rem;
    color: #666666;
    white-space: nowrap;
}

.news-date i {
    margin-right: 4px;
    color: var(--secondary-color);
}

.btn-news-read {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.news-card:hover .btn-news-read {
    background-color: var(--primary-color);
}

.news-card:active .btn-news-read {
    background-color: var(--pressed-color);
    transform: scale(0.97);
}

.news-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.news-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.news-toggle i {
    transition: transform 0.3s ease;
}

.news-toggle.is-open i {
    transform: rotate(180deg);
}

.news-toggle:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.news-toggle:active {
    background-color: var(--pressed-color);
    border-color: var(--pressed-color);
    color: #FFFFFF;
    transform: scale(0.98);
}

.news-toggle:focus-visible,
.news-all-link:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.news-all-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;
    padding-bottom: 2px;
    transition: background-size 0.25s ease, color 0.2s ease;
}

.news-all-link:hover {
    color: var(--primary-color);
    background-size: 0 2px;
}

.news-all-link:active {
    color: var(--pressed-color);
}

@media (prefers-reduced-motion: reduce) {
    .news-grid.news-more,
    .lightbox-content.lb-from-right,
    .lightbox-content.lb-from-left,
    .envelope-trigger.has-update .envelope-trigger-icon::after {
        animation: none;
    }
}


/* ===== Contact status card, revision: two columns on desktop AND phones =====
   Left: a bigger envelope with "View message" under it.
   Right (upper right): "Your message is for [Review]" on top, Edit & Resend above Delete Message under it.
   Added after the earlier rules on purpose, so nothing above had to be changed. */
.sent-message-popup-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "view status"
        "view actions";
    grid-template-rows: max-content 1fr;   /* status on top, Edit/Delete right under it (no gap in between) */
    column-gap: 22px;
    row-gap: 12px;
    padding: 20px 22px;
    align-items: start;
    justify-items: stretch;
}

.sent-message-popup-card .envelope-trigger {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    align-self: center;
    justify-self: center;
    text-align: center;
    font-size: 1rem;
}

.sent-message-popup-card .envelope-trigger-icon {
    width: 124px;
    height: 124px;
    font-size: 3.8rem;
}

.sent-message-popup-card .sent-message-header {
    justify-content: flex-end;
    text-align: right;
    align-self: start;
}

.sent-message-popup-card .sent-message-actions {
    width: 100%;
    max-width: 210px;
    justify-self: end;
    align-self: start;
}

@media (max-width: 600px) {
    .sent-message-popup-card {
        column-gap: 14px;
        padding: 16px 14px;
    }

    .sent-message-popup-card .envelope-trigger-icon {
        width: 108px;
        height: 108px;
        font-size: 3.3rem;
    }

    .sent-message-popup-card .envelope-trigger {
        font-size: 0.9rem;
    }

    .sent-message-popup-card .status-lead {
        font-size: 0.82rem;
    }

    .sent-message-popup-card .btn-edit-message,
    .sent-message-popup-card .btn-delete-message {
        padding: 10px 10px;
        font-size: 0.82rem;
        gap: 8px;
    }
}


/* ===================================================================================
   AUTH SIMULATION START (CSS) - styles for the quick sign-up (Google / Facebook / SMS) on register.html.
   SAFE TO REMOVE: delete everything from "AUTH SIMULATION START (CSS)" to "AUTH SIMULATION END (CSS)".
   Nothing outside this block uses these .authsim-* / .cf-* classes.
   =================================================================================== */

/* ----- "or" divider (reuses .divider-with-text from the contact form) ----- */
.authsim-divider {
    margin: 26px 0 16px;
}

.authsim-divider .section-divider {
    flex: 1 1 0;
    width: auto;
    max-width: 200px;
}

/* ----- the sign-up group (same heading look as "Send Us a Direct Message") ----- */
.authsim {
    max-width: 360px;
    margin: 0 auto 6px;
    text-align: center;
}

.authsim p,
.authsim-box p {
    text-align: center;
}

.authsim-title {
    margin: 0 0 18px;
    color: var(--primary-color);
    text-align: center;
}

.authsim-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.authsim-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.authsim-btn:hover {
    border-color: var(--secondary-color);
    background-color: #F6F5FB;
}

.authsim-btn:active {
    transform: scale(0.99);
}

.authsim-btn i,
.authsim-btn .authsim-g {
    width: 1.2em;
    text-align: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.authsim-btn-facebook i { color: #1877F2; }
.authsim-btn-sms i { color: var(--primary-color); }

.authsim-btn:focus-visible,
.authsim-primary:focus-visible,
.authsim-secondary:focus-visible,
.authsim-account:focus-visible,
.authsim-link:focus-visible,
.authsim-close:focus-visible,
.authsim-legal a:focus-visible,
.authsim-login a:focus-visible,
.cf-links a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ----- the human check (Cloudflare-style) ----- */
.authsim-human {
    margin-top: 20px;
    text-align: left;
}

.authsim-box p.authsim-human-label,
.authsim p.authsim-human-label {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: #666666;
    text-align: left;
}

.cf-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 66px;
    padding: 0 12px;
    background-color: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
}

.cf-state {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #333333;
}

.cf-spin,
.cf-tick {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.cf-spin {
    border: 3px solid #E3E3E3;
    border-top-color: var(--logo-blue);
    animation: authsimSpin 0.8s linear infinite;
}

.cf-tick {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--logo-green);
    color: #FFFFFF;
    font-size: 0.85rem;
}

.cf-widget.is-success .cf-spin { display: none; }
.cf-widget.is-success .cf-tick { display: flex; animation: popIn 0.3s ease-out; }

.cf-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.1;
}

.cf-wordmark {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #333333;
}

.cf-links {
    font-size: 0.55rem;
    color: #666666;
}

.cf-links a {
    color: #666666;
    text-decoration: underline;
}

/* ----- legal lines ----- */
.authsim-box p.authsim-legal,
.authsim p.authsim-legal {
    margin: 16px 0 10px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #666666;
}

.authsim-legal a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.authsim p.authsim-login {
    margin: 0;
    font-size: 0.85rem;
    color: #666666;
}

.authsim-login a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.authsim-login a:hover {
    text-decoration: underline;
}

/* ----- the pop-up: centered dialog on desktop ----- */
.authsim-overlay {
    z-index: 2500;
    overflow-y: auto;
}

.authsim-box {
    --authsim-accent: var(--secondary-color);
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 28px 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.authsim-box[data-provider="google"] { --authsim-accent: #1A73E8; }
.authsim-box[data-provider="facebook"] { --authsim-accent: #1877F2; }
.authsim-box[data-provider="sms"] { --authsim-accent: var(--primary-color); }

.authsim-grab {
    display: none;
}

.authsim-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background-color: #F0F0F0;
    color: #555555;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.authsim-close:hover {
    background-color: #E0E0E0;
}

.authsim-step[hidden],
.authsim-box [hidden] {
    display: none !important;
}

.authsim-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.authsim-center {
    align-items: center;
    justify-content: center;
    min-height: 220px;
    gap: 16px;
}

.authsim-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444444;
}

.authsim-brand-fb,
.authsim-brand-fb i { color: #1877F2; }
.authsim-brand-sms,
.authsim-brand-sms i { color: var(--primary-color); }

.authsim-h {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.authsim-box p.authsim-sub {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #555555;
}

.authsim-box p.authsim-fine {
    margin: 18px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #777777;
}

.authsim-accounts {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
}

.authsim-account {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid #EEEEEE;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.authsim-account:last-child {
    border-bottom: none;
}

.authsim-account:hover {
    background-color: #F5F7FA;
}

.authsim-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #FFFFFF;
    font-weight: 700;
}

.authsim-avatar-alt { background-color: var(--pressed-color); }
.authsim-avatar-plain { background: none; color: #666666; font-size: 1.7rem; }

.authsim-account-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.authsim-account-text b {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.authsim-account-text small {
    font-size: 0.8rem;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
}

.authsim-primary,
.authsim-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 11px 16px;
    border-radius: 5px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.authsim-primary {
    border: none;
    background-color: var(--authsim-accent);
    color: #FFFFFF;
}

.authsim-primary:hover:not(:disabled) {
    filter: brightness(0.92);
}

.authsim-primary:disabled {
    background-color: #E6E6E6;
    color: #9A9A9A;
    cursor: not-allowed;
}

.authsim-secondary {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    color: var(--text-color);
}

.authsim-secondary:hover {
    background-color: #F5F5F5;
}

.authsim-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.authsim-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.authsim-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.authsim-field input:focus {
    outline: none;
    border-color: var(--authsim-accent);
}

.authsim-field small {
    font-size: 0.75rem;
    color: #777777;
}

.authsim-otp-input {
    letter-spacing: 0.3em;
    font-size: 1.15rem !important;
}

.authsim-otp-input.is-autofilled {
    background-color: #FFF9C4;
    border-color: #E6DC8A;
}

.authsim-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.authsim-box p.authsim-error {
    min-height: 1.2em;
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--accent-color);
    text-align: left;
}

.authsim-box p.authsim-resend {
    margin: 14px 0 4px;
}

.authsim-link {
    background: none;
    border: none;
    padding: 6px 8px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--authsim-accent);
    cursor: pointer;
}

.authsim-link:disabled {
    color: #777777;
    font-weight: 400;
    cursor: default;
}

.authsim-spinner {
    width: 54px;
    height: 54px;
    border: 5px solid #E3E3E3;
    border-top-color: var(--authsim-accent);
    border-radius: 50%;
    animation: authsimSpin 0.8s linear infinite;
}

@keyframes authsimSpin {
    to { transform: rotate(360deg); }
}

.authsim-box p.authsim-demo {
    margin: 18px 0 0;
    font-size: 0.72rem;
    color: #8A8A8A;
}

/* ----- phones: a big bottom-sheet pop-up ----- */
@media (max-width: 600px) {
    .authsim-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .authsim-box {
        max-width: none;
        min-height: 72vh;
        max-height: 94vh;
        display: flex;
        flex-direction: column;
        padding: 12px 22px 28px;
        border-radius: 22px 22px 0 0;
        animation: authsimSheet 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    @supports (height: 100dvh) {
        .authsim-box { min-height: 72dvh; max-height: 94dvh; }
    }

    .authsim-grab {
        display: block;
        flex: 0 0 auto;
        width: 44px;
        height: 5px;
        margin: 0 auto 22px;
        border-radius: 3px;
        background-color: #D0D0D0;
    }

    .authsim-close {
        top: 22px;
    }

    .authsim-step {
        flex: 1 1 auto;
    }

    .authsim-center {
        min-height: 0;
    }

    .authsim-h {
        font-size: 1.45rem;
    }

    .authsim-box p.authsim-demo {
        margin-top: auto;
        padding-top: 18px;
    }
}

@keyframes authsimSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .authsim-box,
    .authsim-spinner,
    .cf-spin,
    .cf-tick {
        animation-duration: 0.01s;
        animation-iteration-count: 1;
    }
}

/* AUTH SIMULATION END (CSS)
   =================================================================================== */

/* ===== Quick sign-up buttons are links now (login.html does the real sign-in) ===== */
a.authsim-btn { text-decoration: none; }
a.authsim-btn:visited { color: var(--text-color); }

/* ===== Login + Dashboard pages ===== */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 6px; margin: 14px 0 18px; border-bottom: 2px solid #E3E3E3; }
.auth-tab { flex: 1; background: none; border: none; padding: 10px 6px; font: inherit; font-weight: 700; color: #666; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth-tab[aria-selected="true"] { color: var(--secondary-color); border-bottom-color: var(--pressed-color); }
.auth-msg { display: none; padding: 10px 12px; border-radius: 6px; margin: 10px 0; font-size: .92rem; }
.auth-msg.is-error { display: block; background: #FDECEC; color: #9C1212; border: 1px solid #F3B9B9; }
.auth-msg.is-ok { display: block; background: #EAF5EA; color: #1B5E20; border: 1px solid #B9DDB9; }
.auth-sep { text-align: center; color: #777; margin: 16px 0 10px; font-size: .9rem; }
.auth-provider-row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.otp-input-big { letter-spacing: .5em; text-align: center; font-size: 1.4rem; }
.btn-secondary { background: #FFFFFF; color: var(--secondary-color); border: 1px solid var(--secondary-color); padding: 10px 16px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger { background: var(--accent-color); color: #fff; border: none; padding: 8px 12px; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }

.dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dash-top h2 { margin: 0; }
.dash-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dash-tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--secondary-color); background: #fff; color: var(--secondary-color); font: inherit; font-weight: 700; cursor: pointer; }
.dash-tab[aria-selected="true"] { background: var(--secondary-color); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--bg-color); border-left: 5px solid var(--pressed-color); border-radius: 8px; padding: 12px; }
.stat b { display: block; font-size: 1.25rem; color: var(--primary-color); }
.stat span { font-size: .82rem; color: #555; }
.table-scroll { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dash-table th, .dash-table td { padding: 8px 10px; border-bottom: 1px solid #E6E6E6; text-align: left; vertical-align: top; }
.dash-table th { background: var(--bg-color); color: var(--secondary-color); }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin: 12px 0 18px; }
.inline-form .form-group { margin: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-Review { background: #FFF3CD; color: #8A6D00; }
.badge-Received { background: #D9F0DA; color: #1B5E20; }
.badge-Rejected { background: #FBDADA; color: #9C1212; }
.muted { color: #666; font-size: .9rem; }

/* "hidden" must win inside the new pages even where a class sets display */
.auth-wrap [hidden], .dash-wrap [hidden] { display: none !important; }


/* ===================================================================================
   FINAL ADDITIONS (v3) - pointer light, deletion pop, announcements, sign-in colour pairs.
   Everything below uses the colours from :root at the top of this file.
   =================================================================================== */

:root {
    /* orange = a mix of the logo red and logo yellow, so it stays inside the site's palette */
    --logo-orange: #EB820B;
    --logo-orange: color-mix(in srgb, var(--logo-red) 45%, var(--logo-yellow));
    --logo-violet: var(--secondary-color);
    --light-blue: #4FC3F7;    /* Facebook: light blue -> violet (secondary) */
    --light-green: #8BE28B;   /* SMS: light green -> forest green (primary) */
}

/* ----- 1) POINTER LIGHT (mouse pointer on desktop, thumb on phones) ----- */
#fxLight {
    position: fixed;
    top: 0;
    left: 0;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483000;
    opacity: 0;
    transform: translate3d(-999px, -999px, 0);
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 215, 0, 0.10) 28%,
        rgba(255, 215, 0, 0.035) 52%,
        rgba(255, 215, 0, 0) 70%);
    mix-blend-mode: soft-light;
    transition: opacity 0.25s ease;
    will-change: transform, opacity;
}
#fxLight.fx-on { opacity: 1; }
#fxLight.fx-touch { width: 230px; height: 230px; margin: -20px 0 0 -20px; }
#fxLight.fx-press { opacity: 1; filter: brightness(1.1); }
/* soft-light is invisible on pure white, so a faint warm ring is added on top of it */
#fxLight::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0) 70%);
}

/* ----- 2) DELETION POP + fallback confetti ----- */
@keyframes fxPop {
    0%   { transform: scale(1);    opacity: 1; filter: none; }
    40%  { transform: scale(1.08); opacity: 1; filter: brightness(1.15); }
    100% { transform: scale(0.2);  opacity: 0; filter: blur(2px); }
}
.fx-pop { animation: fxPop 0.38s ease-in forwards; pointer-events: none; transform-origin: center; }

@keyframes fxFall {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(540deg); opacity: 0; }
}
.fx-bit {
    position: fixed;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    z-index: 2147483000;
    pointer-events: none;
    animation: fxFall 0.9s ease-out forwards;
}

/* ----- 3) ANNOUNCEMENTS (home page, between the galleries and Latest News) ----- */
.announce-section {
    margin: 30px 0 10px;
    text-align: center;
}
.announce-section > h2 {
    color: var(--primary-color);
    margin-bottom: 4px;
}
.announce-section p.announce-sub {
    margin-bottom: 18px;
    color: #666666;
    text-align: center !important;
    font-size: 0.92rem;
}
.announce-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    text-align: left;
}
.announce-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.announce-item.is-ended { opacity: 0.7; }
.announce-date {
    align-self: start;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
}
.announce-date .announce-month {
    display: block;
    padding: 3px 0;
    background: var(--accent-color);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.announce-date .announce-day {
    display: block;
    padding: 4px 0 6px;
    color: var(--secondary-color);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
}
.announce-date .announce-range { font-size: 1.05rem; padding: 9px 0 10px; white-space: nowrap; }
.announce-body h3 {
    margin: 0 0 4px;
    color: var(--secondary-color);
    font-size: 1.02rem;
    text-align: left;
}
.announce-body p {
    margin: 0 0 6px;
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.45;
}
.announce-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.82rem;
    color: #555555;
}
.announce-meta i { color: var(--pressed-color); margin-right: 4px; }
.announce-when {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--pressed-color);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 700;
}
.announce-item.is-now .announce-when   { background: var(--primary-color); }
.announce-item.is-ended .announce-when { background: #757575; }
#announceEmpty { color: #666666; text-align: center; font-size: 0.92rem; }
@media (max-width: 480px) {
    .announce-item { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .announce-date .announce-day { font-size: 1.4rem; }
    .announce-date .announce-range { font-size: 0.9rem; padding: 10px 0 11px; }
}

/* ----- 4) SIGN-IN BUTTONS: 3-stop palette gradients, zero borders, black text -> white on hover ----- */
:root {
    --logo-indigo: #1E1A52;
    --logo-indigo: color-mix(in srgb, var(--secondary-color) 75%, #000000);
}

.authsim-btn,
a.authsim-btn,
.auth-provider-row .authsim-btn {
    --grad-start: var(--logo-yellow);
    --grad-mid: var(--logo-orange);
    --grad-end: var(--logo-red);

    position: relative;
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border: none !important;
    outline: none !important;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%) !important;
    color: #000000 !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    transition: color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.authsim-btn::before {
    display: none !important;
}

.authsim-btn > * {
    position: relative;
    z-index: 1;
}

/* Google: Yellow -> Orange -> Red */
.authsim-btn-google {
    --grad-start: var(--logo-yellow);
    --grad-mid: var(--logo-orange);
    --grad-end: var(--logo-red);
}

/* Facebook: Blue -> Violet -> Indigo */
.authsim-btn-facebook {
    --grad-start: var(--logo-blue);
    --grad-mid: var(--logo-violet);
    --grad-end: var(--logo-indigo);
}

/* SMS: Light Green -> Forest Green -> Dark Green */
.authsim-btn-sms {
    --grad-start: var(--light-green);
    --grad-mid: var(--logo-green);
    --grad-end: var(--primary-color);
}

/* Default icon colors (matches black text for uniform contrast) */
.authsim-btn i,
.authsim-btn-facebook i,
.authsim-btn-sms i {
    color: #000000 !important;
    transition: color 0.25s ease, transform 0.2s ease;
}

.authsim-btn .authsim-g {
    background: #FFFFFF;
    border-radius: 50%;
    padding: 2px;

  /* ===================================================================================
   FORCE UNIFORM QUICK SIGN-UP / LOGIN BUTTONS (Targets #quickAuth directly)
   =================================================================================== */

#quickAuth,
#quickAuth .authsim-buttons,
#quickAuth .auth-provider-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Remove any outer wrapper frame/border around Google */
#quickAuth .authpair-google,
.authpair-google {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

#quickAuth .authpair-google > div,
.authpair-google > div {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* Base style for all 3 buttons inside #quickAuth */
#quickAuth a,
#quickAuth button,
#quickAuth .authsim-btn,
.authsim-btn {
    position: relative !important;
    width: 100% !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 11px 16px !important;
    border: none !important;
    outline: none !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14) !important;
    cursor: pointer !important;
    transition: color 0.22s ease, transform 0.12s ease, box-shadow 0.22s ease, filter 0.22s ease !important;
}

#quickAuth a::before,
#quickAuth a::after,
#quickAuth button::before,
#quickAuth button::after,
.authsim-btn::before,
.authsim-btn::after {
    display: none !important;
    content: none !important;
}

/* 1st Button (Google): Red -> Orange -> Yellow */
#quickAuth > *:nth-child(1),
#quickAuth .authsim-buttons > *:nth-child(1),
#quickAuth .auth-provider-row > *:nth-child(1),
#quickAuth [data-provider="google"],
#quickAuth [href*="google"],
.authsim-btn-google {
    background: linear-gradient(135deg, #D31919 0%, #EB820B 50%, #FFD700 100%) !important;
}

/* 2nd Button (Facebook): Light Blue -> Purple -> Indigo */
#quickAuth > *:nth-child(2),
#quickAuth .authsim-buttons > *:nth-child(2),
#quickAuth .auth-provider-row > *:nth-child(2),
#quickAuth [data-provider="facebook"],
#quickAuth [href*="facebook"],
.authsim-btn-facebook {
    background: linear-gradient(135deg, #4FC3F7 0%, #7B3FE4 50%, #322D78 100%) !important;
}

/* 3rd Button (SMS): Dark Green -> Forest Green -> Light Green */
#quickAuth > *:nth-child(3),
#quickAuth .authsim-buttons > *:nth-child(3),
#quickAuth .auth-provider-row > *:nth-child(3),
#quickAuth [data-provider="sms"],
#quickAuth [href*="sms"],
.authsim-btn-sms {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #8BE28B 100%) !important;
}

/* Hover & Focus: Text turns White */
#quickAuth a:hover,
#quickAuth a:focus-visible,
#quickAuth button:hover,
#quickAuth button:focus-visible,
.authsim-btn:hover,
.authsim-btn:focus-visible {
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.24) !important;
    filter: brightness(1.04) !important;
}

#quickAuth a:active,
#quickAuth button:active {
    transform: scale(0.99) !important;
}

/* 1st Icon (Google): Keep original Google colors in white circle */
#quickAuth > *:nth-child(1) svg,
#quickAuth > *:nth-child(1) img,
#quickAuth > *:nth-child(1) .authsim-g,
#quickAuth .authsim-buttons > *:nth-child(1) svg,
#quickAuth .authsim-buttons > *:nth-child(1) .authsim-g,
#quickAuth .auth-provider-row > *:nth-child(1) svg,
#quickAuth .auth-provider-row > *:nth-child(1) .authsim-g {
    background: #FFFFFF !important;
    border-radius: 50% !important;
    padding: 3px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
}

/* 2nd Icon (Facebook): Dark Blue logo color */
#quickAuth > *:nth-child(2) i,
#quickAuth > *:nth-child(2):hover i,
#quickAuth .authsim-buttons > *:nth-child(2) i,
#quickAuth .authsim-buttons > *:nth-child(2):hover i,
#quickAuth .auth-provider-row > *:nth-child(2) i,
#quickAuth .auth-provider-row > *:nth-child(2):hover i {
    color: #0B4F9C !important;
    background: #FFFFFF !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    text-shadow: none !important;
}

/* 3rd Icon (SMS): Light / Apple Green logo color */
#quickAuth > *:nth-child(3) i,
#quickAuth > *:nth-child(3):hover i,
#quickAuth .authsim-buttons > *:nth-child(3) i,
#quickAuth .authsim-buttons > *:nth-child(3):hover i,
#quickAuth .auth-provider-row > *:nth-child(3) i,
#quickAuth .auth-provider-row > *:nth-child(3):hover i {
    color: #56B828 !important;
    background: #FFFFFF !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    text-shadow: none !important;
}
}

/* ===================================================================================
   SITE FOOTER (added): dropdown links INSIDE the footer (Contact, Privacy, Terms, GCash, Feedback)
   + a dark forest-green copyright bar that matches the navigation bar (no buttons).
   Used by footer.js. Everything is scoped to footer.site-footer, so nothing above is affected.
   =================================================================================== */
footer.site-footer {
    height: auto;
    line-height: 1.5;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    background-color: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.footer-top {
    max-width: 950px;
    margin: 0 auto;
    padding: 16px 20px 14px;
}

/* the row of dropdown links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 22px;
}

.footer-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 2px;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.footer-trigger:hover {
    color: var(--logo-yellow);
}

.footer-trigger[aria-expanded="true"] {
    color: var(--logo-yellow);
    border-bottom-color: var(--pressed-color);
}

.footer-trigger:focus-visible {
    outline: 2px solid var(--logo-yellow);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-caret {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.footer-trigger[aria-expanded="true"] .footer-caret {
    transform: rotate(180deg);
}

/* the pop-ups: they open inside the footer, under the links */
.footer-panel {
    background-color: #FFFFFF;
    color: var(--text-color);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 14px auto 0;
    max-width: 640px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

footer.site-footer.is-enhanced .footer-panel {
    display: none;
}

footer.site-footer.is-enhanced .footer-panel.is-open {
    display: block;
    animation: footerPanelIn 0.25s ease-out;
}

@keyframes footerPanelIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer-panel h4 {
    margin: 0 0 6px;
    color: var(--primary-color);
    font-size: 1.05rem;
    text-align: left;
}

.footer-panel p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: left;
}

.footer-panel ul {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}

.footer-panel li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.footer-panel li > i {
    flex: 0 0 1.3em;
    margin-top: 3px;
    text-align: center;
    color: var(--secondary-color);
}

.footer-panel a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.footer-panel a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-panel a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 3px;
}

.footer-panel .footer-note {
    margin: 10px 0 0;
    font-size: 0.78rem;
    color: #666666;
}

/* GCash donation */
.footer-donate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.footer-donate-text {
    flex: 1 1 220px;
    min-width: 0;
}

.footer-qr-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    min-height: 190px;
    padding: 8px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.footer-qr-box img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    background-color: #FFFFFF;
}

.footer-qr-missing {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: #666666;
}

.footer-qr-box.is-missing img {
    display: none;
}

.footer-qr-box.is-missing .footer-qr-missing {
    display: block;
}

/* feedback form */
.footer-form .footer-field {
    margin-bottom: 12px;
}

.footer-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-form label small {
    font-weight: 400;
    color: #666666;
}

.footer-form input[type="text"],
.footer-form select,
.footer-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--text-color);
    font: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s ease;
}

.footer-form textarea {
    min-height: 110px;
    resize: vertical;
}

.footer-form input:focus,
.footer-form select:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.footer-form .footer-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-form .footer-count {
    display: block;
    margin-top: 3px;
    text-align: right;
    font-size: 0.75rem;
    color: #777777;
}

.footer-form-error {
    min-height: 1.2em;
    margin: 0 0 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    color: var(--accent-color);
}

.footer-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* spam trap: real people never see or reach this field */
.footer-form .fb-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* the copyright bar: same dark forest green as the navigation bar, text only (no buttons) */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.12);
    padding: 14px 16px;
}

.footer-bottom p {
    margin: 0;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .footer-top {
        padding: 14px 12px 12px;
    }

    .footer-links {
        gap: 6px 16px;
    }

    .footer-panel {
        padding: 16px 14px;
    }

    .footer-form .footer-two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-qr-box {
        width: 170px;
        min-height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    footer.site-footer.is-enhanced .footer-panel.is-open,
    .footer-caret {
        animation: none;
        transition: none;
    }
}

/* FOOTER END
   =================================================================================== */
