/* ==========================================================================
   NEXVORK CONTACT PAGE — UNIQUE CARD-BASED IDENTITY
   All classes prefixed `ct-` so zero conflict with other page styles
   Reuses color tokens from index.css — theme switching works automatically
   ========================================================================== */

/* ==========================================================================
   1. CONTAINER & TYPOGRAPHY HELPERS
   ========================================================================== */
.ct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .ct-container { padding: 0 18px; }
}

.ct-mono-tag,
.ct-mono-label {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.ct-mono-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.7rem;
    margin-bottom: 28px;
}
.ct-mono-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald, #10B981);
    box-shadow: 0 0 8px var(--accent-emerald, #10B981);
    animation: ctPulse 1.6s ease-in-out infinite;
}
@keyframes ctPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.4); }
}

/* Buttons */
.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.ct-btn-primary {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    color: #fff;
    box-shadow: 0 8px 24px rgba(130, 62, 157, 0.25);
}
.ct-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(130, 62, 157, 0.4);
}
.ct-btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.ct-btn-ghost:hover {
    border-color: var(--text);
    background: var(--bg-elevated);
}
.ct-btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
}

/* ==========================================================================
   2. SCROLL REVEAL
   ========================================================================== */
[data-ct-reveal] {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-ct-reveal="up"]    { transform: translateY(24px); }
[data-ct-reveal="left"]  { transform: translateX(-30px); }
[data-ct-reveal="right"] { transform: translateX(30px); }
[data-ct-reveal="line"]  {
    transform: translateY(20px);
    display: block;
}
[data-ct-reveal].ct-in {
    opacity: 1;
    transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
    [data-ct-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   3. HERO — focused, simple
   ========================================================================== */
.ct-hero {
    position: relative;
    padding: 90px 0 60px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}
.ct-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(130, 62, 157, 0.07), transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 30%, rgba(65, 143, 228, 0.07), transparent 70%);
}
.dark .ct-hero-bg {
    background:
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(130, 62, 157, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 30%, rgba(65, 143, 228, 0.14), transparent 70%);
}

.ct-hero-title {
    font-family: 'Cabinet Grotesk', system-ui, sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0 0 22px;
    max-width: 880px;
}
.ct-line {
    display: block;
    overflow: hidden;
}
.ct-line-grad {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ct-hero-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    max-width: 720px;
}

/* ==========================================================================
   4. CONTACT METHODS — 3 quick contact cards
   ========================================================================== */
.ct-methods {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.ct-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .ct-methods-grid { grid-template-columns: 1fr; } }

.ct-method {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.ct-method::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-method:hover {
    transform: translateY(-4px);
    border-color: var(--brand-purple);
    box-shadow: 0 14px 32px rgba(130, 62, 157, 0.1);
}
.ct-method:hover::before { transform: scaleX(1); }

.ct-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}
.ct-icon-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}
.ct-icon-purple {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark, #5E2974));
    box-shadow: 0 6px 16px rgba(130, 62, 157, 0.25);
}
.ct-icon-blue {
    background: linear-gradient(135deg, var(--brand-blue), #2563EB);
    box-shadow: 0 6px 16px rgba(65, 143, 228, 0.25);
}

.ct-method-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--brand-purple);
    text-transform: uppercase;
}
.ct-method-wa .ct-method-tag {
    color: #25D366;
}
.ct-method-title {
    font-family: 'Cabinet Grotesk', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.015em;
}
.ct-method-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}
.ct-method-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}
.ct-method-foot strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.ct-method-arrow {
    color: var(--brand-purple);
    font-family: monospace;
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.ct-method:hover .ct-method-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   5. SECTION HEAD
   ========================================================================== */
.ct-section-head {
    margin-bottom: 48px;
    max-width: 720px;
}
.ct-section-head.ct-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.ct-section-title {
    font-family: 'Cabinet Grotesk', system-ui, sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 14px 0 0;
}
.ct-section-sub {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 14px 0 0;
}

/* ==========================================================================
   6. CONTACT FORM SECTION
   ========================================================================== */
.ct-form-section {
    padding: 90px 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}
.ct-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: start;
}
@media (max-width: 1024px) {
    .ct-form-grid { grid-template-columns: 1fr; gap: 32px; }
}

.ct-form-side { min-width: 0; }
.ct-form-intro {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 22px 0 28px;
}

.ct-form-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ct-form-bullets li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.ct-fb-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--grad-brand-soft);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}
.ct-form-bullets div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ct-form-bullets strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}
.ct-form-bullets span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* The form itself */
.ct-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 12px 32px rgba(11, 11, 20, 0.04);
}
@media (max-width: 600px) {
    .ct-form { padding: 22px; }
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .ct-form-row { grid-template-columns: 1fr; }
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ct-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.ct-req {
    color: var(--brand-purple);
    margin-left: 2px;
}
.ct-field input,
.ct-field textarea,
.ct-field select {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
    outline: none;
}
.ct-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--text-faint); }
.ct-field input:focus,
.ct-field textarea:focus,
.ct-field select:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(130, 62, 157, 0.12);
}
.ct-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
}
.ct-field input:invalid:not(:placeholder-shown),
.ct-field textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.4);
}

.ct-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.ct-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.ct-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ct-check-box {
    width: 16px; height: 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg-elevated);
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    place-items: center;
    position: relative;
}
.ct-check-box::after {
    content: "";
    width: 8px; height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(0, -1px) scale(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ct-check input:checked ~ .ct-check-box {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    border-color: transparent;
}
.ct-check input:checked ~ .ct-check-box::after { transform: rotate(-45deg) translate(0, -1px) scale(1); }
.ct-check-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ct-submit {
    flex-shrink: 0;
}

.ct-form-status {
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
    margin-top: 4px;
}
.ct-form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald, #10B981);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.ct-form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

@media (max-width: 600px) {
    .ct-form-foot { flex-direction: column; align-items: stretch; gap: 14px; }
    .ct-submit { width: 100%; justify-content: center; }
}

/* ==========================================================================
   7. OFFICES — Pune + Nagpur cards
   ========================================================================== */
.ct-offices {
    padding: 90px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.ct-offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) { .ct-offices-grid { grid-template-columns: 1fr; } }

.ct-office {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}
.ct-office:hover {
    transform: translateY(-3px);
    border-color: var(--brand-purple);
    box-shadow: 0 14px 32px rgba(130, 62, 157, 0.1);
}

.ct-office-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}
.ct-office-flag {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(130, 62, 157, 0.25);
}
.ct-office-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.ct-office-city {
    font-family: 'Cabinet Grotesk', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ct-office-info {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.ct-office-info li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-subtle);
}
.ct-office-info li:last-child { border-bottom: none; padding-bottom: 0; }

.ct-info-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--text-faint);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-top: 2px;
}
.ct-info-lbl svg {
    color: var(--brand-purple);
    flex-shrink: 0;
}
.ct-office-info strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.55;
}
.ct-office-info a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.ct-office-info a:hover {
    color: var(--brand-purple);
    text-decoration: underline;
}

.ct-office-cta {
    margin-top: auto;
}

@media (max-width: 540px) {
    .ct-office-info li { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   8. DEPARTMENTS — email routing grid
   ========================================================================== */
.ct-departments {
    padding: 80px 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}
.ct-dept-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
@media (max-width: 1024px) { .ct-dept-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  { .ct-dept-grid { grid-template-columns: repeat(2, 1fr); } }

.ct-dept {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-dept:hover {
    transform: translateY(-3px);
    border-color: var(--brand-purple);
    box-shadow: 0 12px 28px rgba(130, 62, 157, 0.12);
}
.ct-dept-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}
.ct-dept strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}
.ct-dept span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ==========================================================================
   9. CONTACT FAQ
   ========================================================================== */
.ct-faq {
    padding: 90px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.ct-faq .ct-section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.ct-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 820px;
    margin: 0 auto;
}
.ct-faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.ct-faq-item[open] {
    border-color: var(--brand-purple);
}
.ct-faq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    color: var(--text);
    transition: color 0.3s ease;
}
.ct-faq-item summary::-webkit-details-marker { display: none; }
.ct-faq-item summary:hover { color: var(--brand-purple); }
.ct-faq-q {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}
.ct-faq-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}
.ct-faq-item[open] .ct-faq-toggle {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    border-color: transparent;
    color: #fff;
    transform: rotate(45deg);
}
.ct-faq-a {
    padding: 0 20px 18px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}
.ct-faq-a a {
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 600;
}
.ct-faq-a a:hover { text-decoration: underline; }

/* ==========================================================================
   10. RESPONSIVE TIGHTENS
   ========================================================================== */
@media (max-width: 768px) {
    .ct-hero { padding: 60px 0 40px; }
    .ct-methods { padding: 40px 0; }
    .ct-form-section, .ct-offices, .ct-faq { padding: 60px 0; }
    .ct-departments { padding: 50px 0; }
    .ct-section-head { margin-bottom: 32px; }
    .ct-form { padding: 22px; }
}