/* ==========================================================================
   CONTACT PAGE: EQUAL HEIGHT SYMMETRY ARCHITECTURE
   ========================================================================== */

.contact-hero {
    position: relative;
    padding: 140px 0 80px 0; 
    min-height: 85vh;
    display: flex;
    align-items: center;
    z-index: 5;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5vw;
    align-items: stretch;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info-col, .contact-form-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.info-top-block { margin-bottom: 30px; }

.c-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 700; line-height: 1; text-transform: uppercase;
    letter-spacing: -2px; margin-bottom: 25px;
}
.c-title span { background: var(--theme-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.editorial-narration { display: flex; gap: 20px; }
.accent-line { width: 3px; background: var(--theme-grad); flex-shrink: 0; border-radius: 3px; }
.c-desc { font-size: 1.15rem; line-height: 1.7; color: rgba(255, 255, 255, 0.7); margin: 0; }

/* HOLOGRAPHIC HUD */
.holographic-hud {
    flex: 1; 
    display: flex; flex-direction: column; justify-content: center; 
    position: relative; background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(118, 207, 223, 0.15); border-radius: 20px;
    padding: 30px; overflow: hidden;
    box-shadow: inset 0 0 30px rgba(118, 207, 223, 0.02), 0 15px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}
.hud-bg-graphic {
    position: absolute; right: -15%; bottom: -20%; width: 250px; height: 250px;
    color: var(--c-cyan); opacity: 0.08; animation: rotateSlow 30s linear infinite;
    pointer-events: none; z-index: 0;
}
@keyframes rotateSlow { 100% { transform: rotate(360deg); } }

.hud-item {
    display: flex; align-items: center; gap: 25px; padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: relative;
    z-index: 2; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: default;
}
.hud-item:last-child { border-bottom: none; padding-bottom: 0; }
.hud-item:first-child { padding-top: 0; }
.hud-item:hover { transform: translateX(12px); }

.hud-num { font-family: monospace; font-size: 1.5rem; color: var(--c-cyan); opacity: 0.4; font-weight: bold; transition: all 0.4s ease; }
.hud-item:hover .hud-num { opacity: 1; text-shadow: 0 0 12px var(--c-cyan); }
.hud-text h4 { font-size: 0.95rem; color: var(--white); margin: 0 0 6px 0; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.hud-text p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin: 0; line-height: 1.5; }

/* GLASS FORM */
.glass-form-wrapper {
    height: 100%; display: flex; flex-direction: column; justify-content: center; 
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px; padding: clamp(30px, 4vw, 45px); 
    backdrop-filter: blur(25px); box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

#dutronix-contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.input-group { position: relative; width: 100%; display: flex; flex-direction: column; }
.top-tier { z-index: 5; }
.overlap-tier { z-index: 1000 !important; position: relative;} 
.base-tier { z-index: 1 !important; position: relative;}

.floating-input-wrap { position: relative; width: 100%; }
.floating-input-wrap input, .floating-input-wrap textarea {
    width: 100%; background: rgba(3, 6, 12, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); 
    color: var(--white); padding: 20px 18px 8px 18px; font-size: 0.95rem; border-radius: 12px;
    outline: none; box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-input-wrap label {
    position: absolute; top: 50%; left: 18px; transform: translateY(-50%);
    font-size: 0.95rem; color: rgba(255,255,255,0.4); pointer-events: none; transition: 0.3s;
}
.floating-input-wrap textarea + label { top: 18px; transform: none; }
.floating-input-wrap input:focus + label, .floating-input-wrap input:not(:placeholder-shown) + label,
.floating-input-wrap textarea:focus + label, .floating-input-wrap textarea:not(:placeholder-shown) + label {
    top: 6px; transform: translateY(0); font-size: 0.65rem; color: var(--c-cyan); font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}
.floating-input-wrap input:focus, .floating-input-wrap textarea:focus { border-color: var(--c-cyan); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(118,207,223,0.15); }

/* DROPDOWN STYLING */
.static-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); font-weight: 800; margin-bottom: 8px; margin-left: 5px; }
.hidden-native-select { display: none !important; }
.custom-select-trigger {
    width: 100%; padding: 16px 18px; background: rgba(3, 6, 12, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; display: flex; justify-content: space-between; align-items: center; 
    cursor: pointer; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); transition: 0.3s; color: rgba(255,255,255,0.4); font-size: 0.95rem;
}
.custom-select-wrapper.has-value .custom-select-trigger { color: var(--white); }
.custom-select-wrapper.open .custom-select-trigger { border-color: var(--c-cyan); }
.custom-select-trigger svg { width: 16px; height: 16px; color: var(--c-cyan); transition: transform 0.4s; }
.custom-select-wrapper.open .custom-select-trigger svg { transform: rotate(180deg); }

.custom-options-panel {
    position: absolute; top: calc(100% + 8px); left: 0; width: 100%;
    background: #0d121c; border: 1px solid var(--c-cyan); border-radius: 12px;
    max-height: 220px; overflow-y: auto; opacity: 0; pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 9999; box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
.custom-select-wrapper.open .custom-options-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.custom-option { padding: 14px 18px; transition: 0.2s; cursor: pointer; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.9rem; }
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: rgba(118,207,223,0.1); color: var(--c-cyan); padding-left: 24px; }
.custom-option.selected { background: var(--c-cyan); color: var(--c-dark); font-weight: 800; }
.custom-options-panel::-webkit-scrollbar { width: 6px; }
.custom-options-panel::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.custom-options-panel::-webkit-scrollbar-thumb { background: var(--c-cyan); border-radius: 10px; }


/* ==========================================================================
   THE CRITICAL SVG BLOW-UP FIX
   ========================================================================== */
.feedback-icon {
    position: absolute !important; 
    top: 50% !important; 
    right: 15px !important; 
    transform: translateY(-50%) !important;
    opacity: 0; /* Ensures it is hidden by default */
    pointer-events: none !important; 
    width: 22px !important; 
    height: 22px !important; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 10;
}
/* This strict lock prevents the icon from scaling outside the 22px box */
.feedback-icon svg { 
    width: 22px !important; 
    height: 22px !important; 
    display: block; 
}
.floating-input-wrap textarea ~ .feedback-icon { top: 22px !important; transform: none !important; }

.error-text { font-size: 0.75rem; color: #ff4757; margin-top: 5px; margin-left: 5px; max-height: 0; opacity: 0; transition: 0.3s; overflow: hidden; }

/* Validation Triggers */
.input-group.is-valid input, .input-group.is-valid textarea, .input-group.is-valid .custom-select-trigger { border-color: var(--c-cyan) !important; }
.input-group.is-valid .valid-icon { opacity: 1 !important; transform: translateY(-50%) scale(1.1) !important; }
.input-group.is-valid textarea ~ .valid-icon { transform: scale(1.1) !important; }

.input-group.is-invalid input, .input-group.is-invalid textarea, .input-group.is-invalid .custom-select-trigger { border-color: #ff4757 !important; background: rgba(255,71,87,0.05) !important; }
.input-group.is-invalid .invalid-icon { opacity: 1 !important; transform: translateY(-50%) scale(1.1) !important; }
.input-group.is-invalid textarea ~ .invalid-icon { transform: scale(1.1) !important; }
.input-group.is-invalid .error-text { max-height: 25px; opacity: 1; }

.input-shake { animation: formShake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes formShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }

/* SUBMIT BUTTON */
.submit-btn {
    width: 100%; height: 60px; border-radius: 50px; border: 1px solid rgba(118, 207, 223, 0.3);
    background: rgba(118, 207, 223, 0.05); color: var(--white); font-weight: bold;
    text-transform: uppercase; letter-spacing: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 15px;
    transition: all 0.4s var(--ease-liquid); overflow: hidden; position: relative; font-family: inherit; margin-top: 5px;
}
.submit-btn:hover { background: rgba(118, 207, 223, 0.15); border-color: var(--c-cyan); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px rgba(118, 207, 223, 0.2); }
.submit-btn .animated-arrow { width: 22px; height: 22px; color: var(--c-cyan); transition: transform 0.4s; }
.submit-btn:hover .animated-arrow { animation: none; transform: translateX(8px); }

.loader-spinner { display: none; width: 22px; height: 22px; animation: spin 2s linear infinite; }
.loader-spinner circle { stroke-dasharray: 90, 150; stroke-dashoffset: 0; animation: stroke 1.5s ease-in-out infinite; stroke-linecap: round; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes stroke { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; } 100% { stroke-dasharray: 90, 200; stroke-dashoffset: -124px; } }

.submit-btn.is-loading .btn-text, .submit-btn.is-loading .arrow-wrap { display: none; }
.submit-btn.is-loading .loader-spinner { display: block; color: var(--c-cyan); }
.submit-btn.is-loading { pointer-events: none; border-color: var(--c-cyan); background: transparent; }
.submit-btn.is-success { background: rgba(46, 213, 115, 0.2); border-color: #2ed573; color: #2ed573; pointer-events: none; box-shadow: 0 10px 25px rgba(46, 213, 115, 0.1); }

/* MOBILE SEQUENCE LOGIC */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 991px) {
    .contact-hero { padding: 100px 0 60px 0; display: block; }
    .contact-container { display: flex; flex-direction: column; gap: 30px; width: 92%; }
    
    .contact-info-col { width: 100%; order: 1; }
    .contact-form-col { width: 100%; order: 2; display: flex; flex-direction: column; }
    
    .desktop-only { display: none; }
    .mobile-only { display: block; margin-top: 40px; width: 100%; } 
    
    .editorial-narration { flex-direction: column; gap: 15px; border-left: none; padding-left: 0; margin-bottom: 20px;}
    .accent-line { width: 50px; height: 3px; border-radius: 3px; }
    .info-top-block { margin-bottom: 0; }

    .glass-form-wrapper { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }
    
    .c-title { font-size: clamp(2.5rem, 8vw, 3.2rem); text-align: left; }
    .c-desc { text-align: left; font-size: 1.05rem; }
    .editorial-narration { align-items: flex-start; }

    .holographic-hud { padding: 25px; }
    .hud-bg-graphic { right: -25%; bottom: -10%; width: 200px; height: 200px; }
    .hud-item { gap: 15px; padding: 15px 0; }
    .hud-num { font-size: 1.2rem; }
}