/* ====== Two-Card Contact Layout ====== */
:root {
    --card-bg: #1a2233;
    --card-border: rgba(255, 255, 255, 0.10);
    --input-bg: #232d42;
    --input-border: rgba(255, 255, 255, 0.12);
    --text-muted: rgba(255, 255, 255, 0.5);
    --blue-accent: #3b82f6;
    --orange-accent: #f97316;
    --font: "Manrope", sans-serif;
}

.choose-channel-title {
    text-align: center;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 7px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 35%, #60a5fa 55%, #ffffff 75%, #ffffff 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both, shimmerText 4s linear 1s infinite;
    margin-bottom: 2rem;
    margin-top: 1.8rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.45));
    max-width: 100%;
    box-sizing: border-box;
}

/* Sphere + Contact Bars Section */
.sphere-contact-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-bars-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-bar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-accent), transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.contact-bar:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.contact-bar:hover::before {
    opacity: 1;
}

.contact-bar-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.contact-bar-icon.pink {
    background: linear-gradient(135deg, #db2777, #ec4899);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.contact-bar-icon.orange {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.contact-bar-icon.green {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.contact-bar-content {
    flex: 1;
}

.contact-bar-label {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

.contact-bar-value {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.contact-bar-value a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-bar-value a:hover {
    color: #60a5fa;
}

.contact-bar-info {
    font-family: var(--font);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
        filter: drop-shadow(0 0 0px rgba(59, 130, 246, 0));
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.25));
    }
}

@keyframes shimmerText {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.choose-channel-title::before,
.choose-channel-title::after {
    content: "";
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), rgba(255, 255, 255, 0.4), rgba(59, 130, 246, 0.6), transparent);
    background-size: 200% auto;
    animation: dividerPulse 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes dividerPulse {

    0%,
    100% {
        opacity: 0.4;
        background-position: 0% center;
    }

    50% {
        opacity: 1;
        background-position: 100% center;
    }
}

.contact-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* === Card Styles === */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
    animation: cardFadeIn 0.8s ease-out both;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 50;
    /* Ensure form is above orbiting tooltips */
}

.contact-card:nth-child(2) {
    animation-delay: 0.15s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-card.text-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-accent), transparent);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card::before {
    background: linear-gradient(90deg, var(--blue-accent), transparent);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon.blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.card-icon.orange {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.card-title {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.card-subtitle {
    font-family: var(--font);
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.card-badge {
    font-family: var(--font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.card-badge.live {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
}

/* Form Fields */
.field-label {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: white;
    outline: none;
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

.contact-input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.contact-input:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.08);
    background: #283548;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Topic Pills */
.topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.topic-pill {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.25s ease, transform 0.2s ease;
}

.topic-pill:active {
    transform: scale(0.95);
}

.topic-pill:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.topic-pill.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 600;
}

/* Textarea */
.contact-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: white;
    outline: none;
    font-size: 14px;
    font-family: var(--font);
    resize: none;
    min-height: 72px;
    max-height: 300px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

.contact-textarea:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.08);
    background: #283548;
}

.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.textarea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-family: var(--font);
    font-size: 11px;
    color: var(--text-muted);
}


/* Send Message Button */
.contact-button {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.35);
    font-family: var(--font);
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    margin-top: 0.25rem;
    box-sizing: border-box;
}

.contact-button:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(29, 78, 216, 0.45);
}

.contact-button:active {
    transform: translateY(0px) scale(0.98);
}

.contact-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-btn-text-one {
    position: absolute;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: 2px;
    transition: all 0.5s;
}

.contact-btn-text-two {
    position: absolute;
    width: 100%;
    left: 0;
    top: 150%;
    transform: translateY(-50%);
    letter-spacing: 2px;
    transition: all 0.5s;
}

.contact-button:hover .contact-btn-text-one {
    top: -50%;
}

.contact-button:hover .contact-btn-text-two {
    top: 50%;
}

/* Integrated Mic Button Styling */
.integrated-mic-btn-old {
    background: transparent;
    border: none;
    color: white !important;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.mic-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integrated-mic-btn-old.recording .mic-progress-ring {
    opacity: 1;
}

.mic-progress-ring__circle {
    stroke-dasharray: 113.1; /* 2 * PI * 18 */
    stroke-dashoffset: 113.1;
    transition: stroke-dashoffset 0.1s linear;
}

button.integrated-mic-btn-old i {
    color: #ffffff !important;
}

#startRecordingBtn.integrated-mic-btn-old i {
    color: #ffffff !important;
}

.integrated-mic-btn-old.recording,
.integrated-mic-btn-old.recording i {
    color: #f97316 !important;
}

@keyframes micPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.integrated-mic-btn-old:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Custom Tooltip for Disabled Mic */
.mic-tooltip-container {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
}

.mic-tooltip-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1000;
    font-family: var(--font);
    letter-spacing: 0.5px;
}

.mic-tooltip-container::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 14px;
    margin-bottom: 4px;
    border: 8px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1000;
}

.mic-tooltip-container:hover::after,
.mic-tooltip-container:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Globe & Map */
.map-section-wrapper {
    max-width: 1100px;
    margin: 0rem auto;
    padding: 0 2rem 3rem;
}

@keyframes rotateSphere {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counterRotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

.sphere-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 2.8rem auto 0;
    aspect-ratio: 1 / 1;
    overflow: visible;
    animation: rotateSphere 40s linear infinite;
    transform-origin: center center;
    z-index: 1;
    /* Keep tooltips behind the contact form card */
}

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

.tooltip-node {
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip-dot {
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 10px #60a5fa, 0 0 20px rgba(96, 165, 250, 0.4);
    transition: all 0.4s ease;
    opacity: 0.6;
}

.tooltip-node:hover .tooltip-dot,
.tooltip-node.visible .tooltip-dot {
    transform: scale(1.4);
    background: #fff;
    box-shadow: 0 0 15px #fff, 0 0 30px #60a5fa;
    opacity: 1;
}

.tooltip-node.visible {
    z-index: 20;
}

/* Tooltip Node Positions */
.tooltip-node[data-product="RoadAtthena"] {
    top: 25%;
    left: 35%;
}

.tooltip-node[data-product="Road Mgmt. Information System"] {
    top: 22%;
    left: 65%;
}

.tooltip-node[data-product="Web Development"] {
    top: 68%;
    left: 28%;
}

.tooltip-node[data-product="AI Chatbots"] {
    top: 15%;
    left: 50%;
}

.tooltip-node[data-product="Machine Learning"] {
    top: 45%;
    left: 48%;
}

.tooltip-node[data-product="Computer Vision"] {
    top: 52%;
    left: 25%;
}

.tooltip-node[data-product="Latest Technologies"] {
    top: 38%;
    left: 72%;
}

.tooltip-node[data-product="Test Automation"] {
    top: 35%;
    left: 15%;
}

.tooltip-node[data-product="Virtual Assistance"] {
    top: 30%;
    left: 20%;
}

.tooltip-node[data-product="AI Enabled Translator"] {
    top: 62%;
    left: 70%;
}

.tooltip-node[data-product="Natural Lang. Processing"] {
    top: 35%;
    left: 55%;
}

.tooltip-node[data-product="Deep Learning"] {
    top: 58%;
    left: 38%;
}

.tooltip-node[data-product="AI MultiLingual Translator"] {
    top: 42%;
    left: 62%;
}

.tooltip-node[data-product="IoT Solutions"] {
    top: 72%;
    left: 62%;
}

.tooltip-node[data-product="Data Intelligence"] {
    top: 55%;
    left: 75%;
}

.tooltip-node[data-product="Python"] {
    top: 68%;
    left: 28%;
}

.tooltip-node[data-product="Django"] {
    top: 35%;
    left: 55%;
}

.tooltip-node[data-product="React JS/ Native"] {
    top: 82%;
    left: 65%;
}

.tooltip-node[data-product="DBMS"] {
    top: 18%;
    left: 38%;
}

.tooltip-node[data-product="RDBMS"] {
    top: 28%;
    left: 68%;
}

.tooltip-node[data-product="GIS based Dashboard"] {
    top: 48%;
    left: 18%;
}

.tooltip-node[data-product="Traffic Analytics"] {
    top: 65%;
    left: 52%;
}

.tooltip-node[data-product="Performance Analytics"] {
    top: 50%;
    left: 78%;
}

.tooltip-node[data-product="Road Safety Intelligence"] {
    top: 80%;
    left: 35%;
}

.tooltip-node[data-product="Quality Assurance"] {
    top: 12%;
    left: 42%;
}

.tooltip-node[data-product="Smart Planning"] {
    top: 60%;
    left: 15%;
}

.tooltip-node[data-product="DPR Preparation"] {
    top: 82%;
    left: 58%;
}

.tooltip-node[data-product="Compliance Auditing"] {
    top: 32%;
    left: 80%;
}

.tooltip-node[data-product="Project Assessment"] {
    top: 70%;
    left: 82%;
}

.tooltip-text-wrapper {
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-bottom: 8px;
    transform: translateX(-50%);
    animation: counterRotate 40s linear infinite;
    transform-origin: center center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip-node.visible .tooltip-text-wrapper {
    opacity: 1;
    visibility: visible;
}

.tooltip-text {
    position: relative;
    background: rgba(26, 31, 46, 0.95);
    color: white;
    padding: 11px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.4;
    font-family: var(--font);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(-10px);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(26, 31, 46, 0.95);
}

.tooltip-node.visible .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.tooltip-node:hover .tooltip-text {
    transform: translateY(-3px);
}

.map-container {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Audio pill for voice tab translation info */
.audio-pill {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fb923c;
    font-size: 10px;
    font-weight: bold;
    display: none;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    line-height: 1.3;
}

.audio-pill.visible {
    display: flex;
}

.audio-info-box {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 15px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.audio-info-box.visible {
    display: flex;
}

.audio-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-family: var(--font);
}

.audio-info-value {
    color: white;
    font-size: 13px;
    font-family: var(--font);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-translation-area {
    background: transparent;
    border: none;
    padding: 0;
    min-height: 48px;
    color: white;
    resize: none;
    font-size: 13px;
    font-family: var(--font);
    outline: none;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


#detectedLangLabel {
    display: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

#detectedLangText {
    color: #fb923c;
}




.map-iframe-wrapper {
    width: 100%;
    height: 450px;
    background: #0a0f1a;
    position: relative;
    overflow: hidden;
}

.map-iframe-wrapper::before {
    content: "Loading Map...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font);
    font-size: 14px;
    letter-spacing: 1px;
}

.map-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: relative;
    z-index: 2;
}

.map-iframe.loaded {
    opacity: 1;
}


.form-success-banner {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #4ade80;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    animation: bannerFadeIn 0.4s ease;
}

.form-error-banner {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #f97316;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    animation: bannerFadeIn 0.4s ease;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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


.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.captcha-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.captcha-modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.captcha-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.captcha-modal-header h3 {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.captcha-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-close-btn:hover {
    color: white;
}

.captcha-modal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.captcha-modal-image {
    width: 285px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
}

.captcha-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.captcha-refresh-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
    z-index: 5;
}

.captcha-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.captcha-refresh-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.captcha-refresh-btn.spinning svg {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.captcha-modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: white;
    outline: none;
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.captcha-modal-input:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.captcha-error {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #f97316;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    margin-top: 0.5rem;
    animation: bannerFadeIn 0.3s ease;
}

@keyframes modalShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.modal-shake {
    animation: modalShake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.captcha-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--card-border);
}

.captcha-verify-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.35);
    font-family: var(--font);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.captcha-verify-btn:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(29, 78, 216, 0.45);
}

.captcha-verify-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sphere-contact-section {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 2rem;
        gap: 2rem;
        width: 100%;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .choose-channel-title {
        letter-spacing: 3px !important;
        gap: 0.5rem !important;
        font-size: 12px !important;
        padding: 0 1rem;
    }

    .choose-channel-title::before,
    .choose-channel-title::after {
        max-width: 50px !important;
    }

    .contact-bars-container {
        gap: 0.75rem;
    }

    .outer {
        width: auto !important;
        margin: 0 1rem !important;
        height: 175px;
    }

    .topl {
        top: 6%;
    }

    .bottoml {
        bottom: 6%;
    }

    .contact-bar {
        padding: 1.2rem 1.5rem;
    }

    .contact-bar-icon {
        width: 45px;
        height: 45px;
    }

    .contact-bar-value {
        font-size: 16px;
    }

    .contact-cards-wrapper {
        display: flex;
        flex-direction: column;
        padding: 0 1.5rem 2rem;
        align-items: stretch;
        overflow: visible !important;
    }

    .contact-card.text-card {
        order: 1;
        margin-top: 2rem;
    }

    .sphere-container {
        order: 2;
    }

    .contact-card {
        margin: 0;
        overflow: hidden;
        width: 100%;
    }

    .contact-form {
        width: 100%;
        box-sizing: border-box;
        flex: unset !important;
    }

    .contact-button {
        padding: 0;
        display: block;
    }

    .map-section-wrapper {
        padding: 0 1.5rem 2rem;
    }

    .sphere-container {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .tooltip-text {
        font-size: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .card-title {
        font-size: 16px;
    }

    .topic-pill {
        font-size: 11px;
        padding: 5px 10px;
    }


    .contact-button {
        width: 100%;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .captcha-modal-content {
        max-width: 280px;
    }

    .captcha-modal-header {
        padding: 0.8rem 1rem;
    }

    .captcha-modal-body {
        padding: 0.8rem 1rem;
        gap: 0.75rem;
    }

    .captcha-modal-footer {
        padding: 0.8rem 1rem;
    }

    .captcha-modal-header h3 {
        font-size: 14px;
    }

    .captcha-modal-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .captcha-verify-btn {
        height: 36px;
        font-size: 10px;
    }
}

/* Additional styles moved from contact.html */
.textarea-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

#voiceFeedback {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--blue-accent);
    font-size: 11px;
    font-weight: bold;
    margin-top: -5px;
}

.secondary-section {
    grid-template-columns: 1fr !important;
    max-width: 990px !important;
}

.secondary-bars {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
}

.secondary-bar {
    flex: 1 !important;
    min-width: 250px !important;
}

.clickable-bar {
    cursor: pointer;
}

.integrated-mic-btn-old {
    background: none;
    border: none;
    color: var(--blue-accent);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.contact-textarea {
    padding-right: 45px;
    min-height: 100px;
}

.pulse-dot {
    background: var(--blue-accent);
}



.choose-channel-title {
    margin-top: 2rem;
}

.contact-input.invalid,
.contact-textarea.invalid {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

.field-error {
    font-family: var(--font);
    font-size: 10px;
    color: #f97316;
    margin-top: 4px;
    display: none;
    animation: fieldErrorIn 0.3s ease-out;
}

@keyframes fieldErrorIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.char-limit-warning {
    font-family: var(--font);
    font-size: 10px;
    color: #f97316;
    margin-top: 4px;
    display: none;
    font-weight: 600;
    animation: fieldErrorIn 0.3s ease-out;
}