/* Contact Page - Premium Aether Styles - LOCKED COMPOSITION */

.contact-hero-section {
    position: relative;
    padding: 80px 0 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #050505;
    overflow-x: hidden;
}

.contact-page-container {
    width: 100%;
    max-width: 1400px;
    z-index: 10;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-info-panel {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(123, 63, 242, 0.1);
    border: 1px solid rgba(123, 63, 242, 0.2);
    border-radius: 100px;
    color: var(--color-primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.contact-page-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

/* --- THE LOCKED HERO STAGE (DO NOT CHANGE) --- */
.convergence-stage-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 8rem;
    position: relative;
}

.convergence-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: visible;
}

.hand-wrapper {
    position: absolute;
    width: 60%;
    opacity: 0.8;
    filter: drop-shadow(0 0 50px rgba(123, 63, 242, 0.4));
    pointer-events: none;
}

.hand-wrapper.left {
    left: -18%;
    top: 65%;
    transform: translateY(-50%) rotate(-10deg);
    animation: handFloatLeft 6s ease-in-out infinite;
}

.hand-wrapper.right {
    right: -18%;
    top: 25%;
    transform: translateY(-50%) scaleX(-1) rotate(15deg);
    animation: handFloatRight 6s ease-in-out infinite;
}

.hand-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@keyframes handFloatLeft {

    0%,
    100% {
        transform: translateY(-50%) rotate(-10deg);
    }

    50% {
        transform: translateY(-48%) rotate(-8deg);
    }
}

@keyframes handFloatRight {

    0%,
    100% {
        transform: translateY(-50%) scaleX(-1) rotate(15deg);
    }

    50% {
        transform: translateY(-52%) scaleX(-1) rotate(17deg);
    }
}

.core-wrapper {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.molecule-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.molecule-img {
    width: 80%;
    height: auto;
    z-index: 2;
    animation: moleculeFloat 6s ease-in-out infinite;
}

.molecule-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(30px);
    z-index: 1;
    transition: all 0.5s ease;
}

@keyframes moleculeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* --- AETHER STEPPED FORM --- */
.aether-form-container {
    width: 100%;
    max-width: 800px;
    z-index: 10;
    margin-bottom: 10rem;
}

.glass-aether-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.phase-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.phase-progress::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.progress-segment {
    background: #050505;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    color: #555;
    z-index: 2;
    font-weight: 700;
    transition: all 0.4s ease;
}

.progress-segment.active {
    color: white;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 20px rgba(159, 77, 155, 0.3);
}

.progress-segment span {
    color: var(--color-primary-light);
    margin-right: 5px;
}

.form-phase {
    display: none;
    animation: phaseFade 0.5s ease forwards;
}

.form-phase.current {
    display: block;
}

@keyframes phaseFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.phase-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

.aether-input {
    margin-bottom: 30px;
    position: relative;
}

.aether-input label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #666;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    flex: 1;
}

.aether-input input,
.aether-input select,
.aether-input textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 24px;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: 52px;
    /* Lock height for CLS */
}

.aether-input select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: 18px;
    padding-right: 60px;
    cursor: pointer;
}

.aether-input select option {
    background: #0a0a0a;
    color: white;
}

.aether-input input:focus,
.aether-input select:focus,
.aether-input textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background: rgba(159, 77, 155, 0.05);
}

.input-scan {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-light);
    transition: width 0.3s ease;
}

.aether-input input:focus~.input-scan {
    width: 100%;
}

/* Vision Energy Ring (Circular Tracker) */
.vision-energy-ring {
    position: absolute;
    bottom: 12px;
    right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke: var(--color-primary-light);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

#char-count {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primary-light);
}

.phase-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 40px;
}

.next-phase-btn,
.prev-phase-btn,
.form-submit-btn {
    padding: 18px 30px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-phase-btn,
.form-submit-btn {
    background: white;
    color: black;
}

.prev-phase-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.next-phase-btn:hover,
.form-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* --- SIGNAL CLUSTER (ASYMMETRIC) --- */
.signal-cluster-section {
    padding: 10rem 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.cluster-header {
    text-align: center;
    margin-bottom: 6rem;
}

.cluster-header h2 {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 15px;
}

.cluster-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 25px;
}

.nexus-node {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 420px;
}

/* Sizing logic */
.whatsapp-nexus {
    grid-column: span 8;
}

.email-general-nexus {
    grid-column: span 4;
}

.email-biz-nexus {
    grid-column: span 5;
}

.phone-nexus {
    grid-column: span 7;
}

.nexus-node:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.nexus-laser {
    position: absolute;
    inset: -1px;
    border-radius: 40px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 70%, var(--color-primary-light), #fff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

.nexus-node:hover .nexus-laser {
    opacity: 1;
    animation: spin 3s linear infinite;
}

.nexus-content {
    position: relative;
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.nexus-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.nexus-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    background: rgba(159, 77, 155, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(159, 77, 155, 0.2);
}

.nexus-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.nexus-body h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 12px;
    color: white;
}

.nexus-data {
    margin-top: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nexus-btn {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    color: black;
    border-radius: 20px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nexus-node.whatsapp-nexus .nexus-btn {
    background: #25d366;
    color: white;
}

.nexus-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 2, 4, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
    z-index: 100;
}

/* --- LIGHT MODE OVERRIDES --- */
[data-theme="light"] .contact-hero-section {
    background: #f8f9fa;
}

[data-theme="light"] .contact-page-title {
    color: #1a1a1a;
}

[data-theme="light"] .glass-aether-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
}

[data-theme="light"] .progress-segment {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .progress-segment.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

[data-theme="light"] .phase-title,
[data-theme="light"] .nexus-body h3,
[data-theme="light"] .nexus-data {
    color: #1a1a1a;
}

[data-theme="light"] .aether-input input,
[data-theme="light"] .aether-input select,
[data-theme="light"] .aether-input textarea {
    background: #fff;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

[data-theme="light"] .aether-input select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="light"] .aether-input select option {
    background: #fff;
    color: #000;
}

[data-theme="light"] .next-phase-btn,
[data-theme="light"] .form-submit-btn {
    background: #1a1a1a;
    color: #fff;
}

[data-theme="light"] .prev-phase-btn {
    background: #fff;
    color: #1a1a1a;
    border-color: #e0e0e0;
}

[data-theme="light"] .nexus-node {
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
}

[data-theme="light"] .nexus-node:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-light);
}

[data-theme="light"] .nexus-btn {
    background: #000;
    color: #fff;
}

[data-theme="light"] .nexus-node.whatsapp-nexus .nexus-btn {
    background: #25d366;
    color: #fff;
}

[data-theme="light"] .nexus-data {
    border-top-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .circle-bg {
    stroke: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form-success-overlay {
    background: #fff;
}

[data-theme="light"] .molecule-glow {
    opacity: 0.15;
}

/* Mobile Adjustments */
@media (max-width: 1200px) {
    .cluster-grid {
        grid-template-columns: 1fr;
    }

    .nexus-node {
        grid-column: span 1 !important;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .convergence-stage-wrapper {
        margin: 2rem auto 4rem;
    }

    .convergence-stage {
        aspect-ratio: 1/1.2;
    }

    .hand-wrapper {
        width: 100%;
        opacity: 0.5;
    }

    .hand-wrapper.left {
        left: -35%;
        top: 70%;
    }

    .hand-wrapper.right {
        right: -35%;
        top: 20%;
    }

    .core-wrapper {
        width: 40%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .glass-aether-card {
        padding: 40px 25px;
        border-radius: 30px;
    }

    .phase-title {
        font-size: 1.8rem;
    }

    .phase-progress {
        margin-bottom: 30px;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        gap: 15px;
    }

    .progress-segment {
        white-space: nowrap;
        padding: 8px 15px;
    }

    .nexus-content {
        padding: 30px;
    }

    .nexus-body h3 {
        font-size: 1.8rem;
    }

    .nexus-data {
        font-size: 1.1rem;
    }

    .cluster-header h2 {
        font-size: 2.8rem;
    }
}