/* --- CONTACT PAGE: UNIVERSAL HOMEPAGE CIRCLES (TEAL DOMINANT, SOFT GOLD) --- */

.contact-premium-layout {
    background: #002b36; 
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Better for tall content */
    justify-content: center;
    position: relative;
    overflow-x: hidden; /* Only clip horizontal blobs */
    padding: 140px 0 80px;
    z-index: 0;
}

/* BACKGROUND CIRCLES (Always visible behind content) */
.contact-layered-bg {
    position: absolute;
    inset: 0;
    z-index: 1 !important; 
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px); 
    opacity: 0.75; /* High visibility for Teal base */
    mix-blend-mode: screen;
    animation: driftCircle 22s ease-in-out infinite alternate;
}

.teal-blob {
    width: 650px;
    height: 650px;
    background: #0D808C;
    top: -150px;
    left: -150px;
    animation-duration: 28s;
}

.gold-blob {
    width: 550px;
    height: 550px;
    background: #E7CE67;
    bottom: -100px;
    right: -100px;
    opacity: 0.35; /* SIGNIFICANTLY REDUCED FROM 0.65 */
    animation-duration: 35s;
    animation-delay: -5s;
}

.teal-blob-2 {
    width: 450px;
    height: 450px;
    background: #0D808C;
    top: 30%;
    right: 20%;
    opacity: 0.55;
    animation-duration: 40s;
    animation-delay: -10s;
}

@keyframes driftCircle {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(140px, 100px) scale(1.2); }
}

.contact-layout-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(13, 128, 140, 0.15) 0%, 
                transparent 60%);
    pointer-events: none;
    z-index: 2;
}

/* CONTENT GRID (FORCED FRONT) */
.container-custom {
    position: relative;
    z-index: 10 !important;
}

.contact-content-left {
    position: relative;
    z-index: 5;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title-refined {
    font-size: clamp(2rem, 8vw, 3.2rem) !important; 
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-hero-subtext {
    display: flex;
    flex-direction: column; gap: 14px; margin-top: 15px;
}

.contact-step-pill-inline {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.hero-title-refined .hero-highlight-text {
    display: inline-block;
    margin-right: 0.18em;
}

.hero-title-refined .hero-highlight-text::after {
    bottom: 0.12em;
}

.step-number {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 128, 140, 0.18);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(231, 206, 103, 0.22), 0 8px 18px rgba(0, 43, 54, 0.12);
}

/* RIGHT SIDE: Interactive Form Container */
.contact-form-wrapper {
    position: relative;
    z-index: 20 !important; 
    display: flex;
    justify-content: flex-end; 
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

/* Glassmorphism Form - ENHANCED POP */
.contact-form-container-shopify .mock-contact-form,
.contact-page-form {
    background: rgba(255, 252, 246, 0.88) !important;
    backdrop-filter: blur(24px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
    
    /* Gradient Border Trick */
    border: 1.5px solid transparent !important;
    background-clip: padding-box, border-box !important;
    background-image: linear-gradient(rgba(255, 252, 246, 0.88), rgba(255, 252, 246, 0.88)),
                      linear-gradient(135deg, var(--brand-teal), var(--brand-gold)) !important;
    
    border-radius: 40px !important;
    padding: 56px !important;
    width: 100% !important;
    max-width: 600px !important; 
    
    /* Extreme Depth Multi-layered shadow */
    box-shadow: 
        0 36px 100px rgba(0, 28, 36, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 0 40px rgba(13, 128, 140, 0.1) !important;
    
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    animation: fadeInUpScale 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.contact-page-form:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 48px 120px rgba(0, 28, 36, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.82),
        0 0 60px rgba(13, 128, 140, 0.16) !important;
}

/* Premium Input Fields - High-Contrast Glass (No Merge) */
.contact-page-form,
.contact-page-form .form-header h4,
.contact-page-form .form-group label,
.contact-page-form .quote-step-intro strong,
.contact-page-form .quote-step-pill,
.contact-page-form .quote-security-note,
.contact-page-form .quote-checkbox-label,
.contact-page-form .upload-dropzone-copy strong,
.contact-page-form .upload-file-chip span,
.contact-page-form .turnstile-missing {
    color: #0d3f49 !important;
}

.contact-page-form .form-header {
    border-bottom: 1px solid rgba(13, 128, 140, 0.16);
}

.contact-page-form .real-input,
.contact-page-form .real-textarea {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1.5px solid rgba(13, 128, 140, 0.18) !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    color: #0d3f49 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    
    /* Strong inset shadow for structural depth */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 24px rgba(0, 43, 54, 0.06) !important;
}

.contact-page-form .real-input::placeholder,
.contact-page-form .real-textarea::placeholder {
    color: rgba(13, 63, 73, 0.52) !important;
}

.contact-page-form .real-textarea {
    min-height: 160px !important; /* Guarantees ~6 lines visibility */
    line-height: 1.5 !important;
    resize: vertical;
}

.contact-page-form .real-input:focus,
.contact-page-form .real-textarea:focus {
    background: #ffffff !important;
    border-color: var(--brand-gold) !important; /* Gold on focus remains */
    box-shadow: 
        0 0 0 4px rgba(231, 206, 103, 0.18),
        0 16px 32px rgba(231, 206, 103, 0.18) !important;
    outline: none !important;
}

/* Submit Button - Pulse & Gradient */
.contact-page-form .quote-submit-btn,
.contact-page-form .quote-next-btn {
    background: linear-gradient(135deg, #0d808c, #14a8ad) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(13, 128, 140, 0.35) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    animation: buttonPulse 3s infinite alternate;
}

.contact-page-form .quote-submit-btn:hover,
.contact-page-form .quote-next-btn:hover {
    box-shadow: 0 16px 34px rgba(13, 128, 140, 0.28) !important;
}

.contact-page-form .quote-secondary-btn {
    border: 1px solid rgba(13, 128, 140, 0.24);
    background: rgba(13, 128, 140, 0.05);
    color: #0d6874;
}

.contact-page-form .quote-secondary-btn:hover {
    background: rgba(13, 128, 140, 0.1);
    border-color: rgba(13, 128, 140, 0.34);
}

@keyframes buttonPulse {
    0% { box-shadow: 0 10px 30px rgba(13, 128, 140, 0.35); }
    100% { box-shadow: 0 10px 45px rgba(231, 206, 103, 0.45); }
}

@keyframes fadeInUpScale {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Form Header Layout */
.contact-page-form .form-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 32px !important;
}

.contact-page-form .form-header h4 {
    margin-bottom: 0 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    background: none !important;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #0d808c !important;
}

.form-header .form-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s ease;
}

.form-header .form-dots span:nth-child(1) { background: var(--brand-teal); }
.form-header .form-dots span:nth-child(2) { background: var(--brand-gold); }
.form-header .form-dots span:nth-child(3) { background: var(--brand-teal); }

.contact-page-form:hover .form-dots span {
    transform: scale(1.2);
}

.contact-page-form:hover .form-dots span:nth-child(2) {
    animation: dotBounce 0.6s infinite alternate;
}

.contact-page-form .quote-step-pill {
    background: rgba(13, 128, 140, 0.12);
    color: #3e8f96 !important;
    border: 1px solid rgba(13, 128, 140, 0.12);
}

.contact-page-form .quote-step-pill.is-active {
    background: #0d808c;
    color: #ffffff !important;
    border-color: #0d808c;
}

.contact-page-form .quote-step-intro,
.contact-page-form .upload-dropzone-copy span,
.contact-page-form .upload-dropzone-copy small,
.contact-page-form .quote-security-note,
.contact-page-form .quote-checkbox-label span {
    color: rgba(13, 63, 73, 0.76) !important;
}

.contact-page-form .quote-security-note i,
.contact-page-form .quote-checkbox-label a {
    color: #c8a73b !important;
}

.contact-page-form .quote-checkbox-label a:hover {
    color: #0d808c !important;
}

.contact-page-form .upload-dropzone {
    border: 1.5px dashed rgba(13, 128, 140, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 248, 0.96));
}

.contact-page-form .upload-dropzone.is-dragover {
    border-color: rgba(231, 206, 103, 0.8);
    background: linear-gradient(180deg, rgba(255, 252, 240, 0.98), rgba(250, 247, 232, 0.98));
    box-shadow: 0 0 0 4px rgba(231, 206, 103, 0.12);
}

.contact-page-form .upload-file-chip {
    background: rgba(13, 128, 140, 0.08);
    border: 1px solid rgba(13, 128, 140, 0.12);
}

.contact-page-form .upload-file-remove {
    color: #0d6874;
}

.contact-page-form .upload-progress-bar {
    background: rgba(13, 128, 140, 0.12);
}

.contact-page-form .upload-progress-bar-fill {
    background: linear-gradient(90deg, #0d808c, #c8a73b);
}

.contact-page-form .upload-progress-text,
.contact-page-form .quote-form-status,
.contact-page-form .quote-validation-summary,
.contact-page-form .text-danger,
.contact-page-form .field-validation-error {
    color: #9b4b39 !important;
}

.contact-page-form .quote-form-status.alert-success {
    background: rgba(13, 128, 140, 0.12);
    border: 1px solid rgba(13, 128, 140, 0.22);
    color: #0d6874 !important;
}

.contact-page-form .quote-form-status.alert-danger,
.contact-page-form .quote-validation-summary.validation-summary-errors {
    background: rgba(199, 113, 84, 0.08);
    border: 1px solid rgba(199, 113, 84, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
}

.contact-page-form .quote-checkbox-input {
    accent-color: #0d808c;
}

@keyframes dotBounce {
    from { transform: translateY(0) scale(1.2); }
    to { transform: translateY(-4px) scale(1.2); }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive (Bigger Circles with Whiteout Protection) */
@media (max-width: 991px) {
    .contact-premium-layout { 
        padding: 120px 0 60px; 
        align-items: flex-start;
        background: #002b36; 
    }
    
    .contact-layered-bg { display: block !important; }
    
    .bg-circle {
        filter: blur(50px);
        opacity: 0.35; 
    }
    
    .teal-blob { width: 350px; height: 350px; top: -100px; left: -100px; }
    .gold-blob { 
        width: 300px; height: 300px; bottom: 0; right: -50px; 
        opacity: 0.12;
    }
    .teal-blob-2 { width: 250px; height: 250px; top: 35%; right: -50px; opacity: 0.2; }

    .contact-content-left { text-align: center; margin-bottom: 40px; }
    .contact-hero-subtext {
        align-items: stretch;
        max-width: 32rem;
        margin-inline: auto;
    }
    .contact-step-pill-inline {
        gap: 10px;
        justify-content: flex-start;
        text-align: left;
    }
    .contact-form-wrapper .mock-contact-form,
    .contact-page-form { 
        max-width: 100% !important; 
        padding: 40px 24px !important;
        border-radius: 32px !important;
        margin-top: 20px;
    }
    
    .quote-inline-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .hero-title-refined { font-size: 2.2rem !important; }

    .sales-team-grid {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .sales-contact-card {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

/* ===== SALES TEAM CONTACT CARDS ===== */

.sales-team-section {
    text-align: left;
    padding: 0;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.sales-team-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-gold, #d4a843);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sales-team-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
    font-weight: 400;
}

.sales-team-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allow wrapping when space is tight (e.g. 1000px) */
    gap: 20px;
}

.sales-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
}

.sales-contact-card:hover {
    transform: none;
    box-shadow: none;
}

.sales-contact-photo {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(13, 128, 140, 0.4);
    box-shadow: 0 4px 16px rgba(0, 28, 36, 0.2);
}

.sales-contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    transform: scale(1.25);
    filter: saturate(1.05) brightness(1.05);
}

#salesContactDenes .sales-contact-photo img {
    transform: scale(1.45);
    object-position: 50% 18%;
}

.sales-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sales-contact-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.sales-contact-role {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brand-teal, #0d808c);
    margin-bottom: 6px;
}

.sales-contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    line-height: 1.6;
}

.sales-contact-link:hover {
    color: var(--brand-gold, #d4a843) !important;
}

.sales-contact-link i {
    font-size: 0.78rem;
    color: rgba(13, 128, 140, 0.65);
    flex: 0 0 auto;
}

@media (max-width: 576px) {
    .contact-premium-layout {
        padding: 110px 0 40px;
    }

    .hero-title-refined {
        font-size: 1.7rem !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .contact-form-wrapper .mock-contact-form,
    .contact-page-form {
        padding: 28px 18px !important;
        border-radius: 22px !important;
        max-width: 100% !important;
    }

    .contact-page-form .form-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-page-form .form-header h4 {
        font-size: 1.15rem !important;
    }

    .contact-page-form .real-input,
    .contact-page-form .real-textarea {
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
    }

    /* Sales Team: stack vertically on phone */
    .sales-team-grid {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .sales-contact-card {
        width: 100%;
        max-width: 320px;
    }

    .sales-contact-photo {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .sales-contact-name {
        font-size: 0.85rem;
    }

    .sales-contact-link {
        font-size: 0.72rem;
        /* Prevent long email addresses from overflowing */
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .contact-step-pill-inline {
        font-size: 0.88rem;
    }
}

