/* =============================================================
   NIRJA VIKAS VARDHINI — contact.css
   Page-specific styles for contact.html only.

   Shared:  style.css      → header, footer, cursor, buttons, chips
   Reused:  about.css      → .nvv-page-header + breadcrumb
   Reused:  volunteers.css → .nvv-become-vol CTA section
   This file: contact strip, info cards, form, map, animations
   ============================================================= */

/* ============================================================
   QUICK CONTACT STRIP
   ============================================================ */
.nvv-contact-strip {
    background: var(--navy);
    padding: 0;
    position: relative;
    z-index: 1;
}

.nvv-contact-strip__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: 0;
}

.nvv-contact-strip__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 32px;
    text-decoration: none;
    transition: background 0.25s;
    position: relative;
}

.nvv-contact-strip__item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nvv-contact-strip__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(31, 138, 59, 0.18);
    border: 1px solid rgba(232, 100, 10, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: background 0.25s, transform 0.25s;
}

.nvv-contact-strip__item:hover .nvv-contact-strip__icon {
    background: var(--orange);
    color: white;
    transform: scale(1.08);
}

.nvv-contact-strip__item small {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 3px;
}

.nvv-contact-strip__item strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.nvv-contact-strip__sep {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   MAIN CONTACT SECTION
   ============================================================ */
.nvv-contact-main {
    padding: 96px 0 100px;
    background: var(--bg);
}

/* ── 2-column grid ── */
.nvv-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

/* ============================================================
   INFO PANEL (LEFT)
   ============================================================ */
.nvv-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Info cards */
.nvv-contact-info__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.nvv-contact-info__card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}

/* left accent on hover */
.nvv-contact-info__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--orange), var(--gold));
    border-radius: var(--radius) 0 0 var(--radius);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.nvv-contact-info__card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 100, 10, 0.25);
}

.nvv-contact-info__card:hover::before {
    transform: scaleY(1);
}

.nvv-contact-info__card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--orange-lt);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}

.nvv-contact-info__card:hover .nvv-contact-info__card-icon {
    background: var(--orange);
    color: white;
}

.nvv-contact-info__card-body h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.nvv-contact-info__card-body a {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.7;
    transition: color 0.2s;
}

.nvv-contact-info__card-body a:hover {
    color: var(--orange);
}

.nvv-contact-info__card-body p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* Social links */
.nvv-contact-info__social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.nvv-contact-info__social>span {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.nvv-contact-info__social-links {
    display: flex;
    gap: 8px;
}

.nvv-contact-info__social-links a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
}

.nvv-contact-info__social-links a:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    transform: translateY(-3px);
}

/* Floating stat badge */
.nvv-contact-info__stat-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    /* animation: ctaFloat 6s ease-in-out infinite; */
}

/* @keyframes ctaFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
} */

.nvv-contact-info__stat-badge::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(232, 100, 10, 0.1);
    pointer-events: none;
}

.nvv-contact-info__stat-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.nvv-contact-info__stat-lbl {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    line-height: 1.5;
}

.nvv-contact-info__stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(232, 100, 10, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.14);
    }
}

/* ============================================================
   CONTACT FORM (RIGHT)
   ============================================================ */
.nvv-contact-form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 44px 44px 40px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Subtle top-right decor */
.nvv-contact-form-wrap::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--orange-lt);
    pointer-events: none;
}

.nvv-contact-form-wrap__header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.nvv-contact-form-wrap__header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.nvv-contact-form-wrap__header h3 em {
    color: var(--orange);
    font-style: italic;
}

.nvv-contact-form-wrap__header p {
    font-size: 0.84rem;
    color: var(--muted);
}

/* Form rows */
.nvv-cf-row {
    margin-bottom: 16px;
}

.nvv-cf-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.nvv-cf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nvv-cf-group--full {
    grid-column: span 2;
}

/* Label */
.nvv-cf-group label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nvv-cf-req {
    color: var(--orange);
    margin-left: 2px;
}

/* Input wrapper */
.nvv-cf-input-wrap {
    position: relative;
}

.nvv-cf-input-wrap>i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.82rem;
    pointer-events: none;
    transition: color 0.22s;
}

.nvv-cf-input-wrap:has(textarea)>i {
    top: 16px;
    transform: none;
}

/* For browsers that don't support :has() */
.nvv-cf-textarea-icon {
    top: 16px !important;
    transform: none !important;
}

.nvv-cf-input-wrap input,
.nvv-cf-input-wrap textarea {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 16px 13px 40px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    resize: none;
    transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.nvv-cf-input-wrap textarea {
    padding-top: 14px;
    line-height: 1.65;
}

.nvv-cf-input-wrap input::placeholder,
.nvv-cf-input-wrap textarea::placeholder {
    color: rgba(107, 114, 128, 0.5);
}

.nvv-cf-input-wrap input:focus,
.nvv-cf-input-wrap textarea:focus {
    border-color: var(--orange);
    background: var(--orange-lt);
    box-shadow: 0 0 0 3px rgba(232, 100, 10, 0.08);
}

.nvv-cf-input-wrap input:focus+i,
.nvv-cf-input-wrap:focus-within>i {
    color: var(--orange);
}

/* Submit row */
.nvv-cf-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.nvv-cf-submit {
    min-width: 200px;
    justify-content: center;
    border-radius: 12px;
    padding: 14px 32px;
    transition: all 0.28s;
    position: relative;
    overflow: hidden;
}

.nvv-cf-submit.loading {
    pointer-events: none;
    opacity: 0.75;
}

.nvv-cf-submit.sent {
    background: var(--green);
    box-shadow: 0 5px 20px rgba(45, 122, 82, 0.3);
}

/* Success message */
.nvv-cf-success {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green);
    animation: fadeIn 0.4s ease both;
}

.nvv-cf-success i {
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input valid / invalid states */
.nvv-cf-input-wrap input.valid,
.nvv-cf-input-wrap textarea.valid {
    border-color: var(--green);
    background: var(--green-lt);
}

.nvv-cf-input-wrap input.invalid,
.nvv-cf-input-wrap textarea.invalid {
    border-color: #E53E3E;
    background: #FFF5F5;
    animation: inputShake 0.4s ease;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Error message under invalid field */
.nvv-cf-error {
    display: block;
    font-size: 0.72rem;
    color: #E53E3E;
    font-weight: 600;
    margin-top: 4px;
    animation: fadeIn 0.3s ease both;
}

/* ============================================================
   GOOGLE MAP
   ============================================================ */
.nvv-contact-map {
    position: relative;
    background: var(--bg);
    padding: 0 0 0;
}

.nvv-contact-map__inner {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.nvv-contact-map__inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.3s;
}

.nvv-contact-map__inner:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* Pin overlay card */
.nvv-contact-map__pin-card {
    position: absolute;
    top: 28px;
    left: 28px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: 0 12px 48px rgba(14, 32, 64, 0.16);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 340px;
    animation: pinCardIn 0.7s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pinCardIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nvv-contact-map__pin-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(232, 100, 10, 0.4);
    animation: pinBounce 2.5s ease-in-out infinite;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.nvv-contact-map__pin-card strong {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.nvv-contact-map__pin-card span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.nvv-contact-map__pin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange-lt);
    color: var(--orange);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nvv-contact-map__pin-btn:hover {
    background: var(--orange);
    color: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .nvv-contact-grid {
        gap: 40px;
    }

    .nvv-contact-form-wrap {
        padding: 32px 28px;
    }
}

@media (max-width: 900px) {
    .nvv-contact-strip__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nvv-contact-strip__sep {
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.07);
    }

    .nvv-contact-strip__item {
        padding: 18px 24px;
    }

    .nvv-contact-main {
        padding: 72px 0 80px;
    }

    .nvv-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nvv-cf-row--2 {
        grid-template-columns: 1fr;
    }

    .nvv-cf-group--full {
        grid-column: span 1;
    }

    .nvv-contact-map__inner {
        height: 360px;
    }

    .nvv-contact-map__pin-card {
        top: 16px;
        left: 16px;
        max-width: calc(100% - 32px);
    }
}

@media (max-width: 576px) {
    .nvv-contact-form-wrap {
        padding: 24px 20px;
    }

    .nvv-cf-submit-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .nvv-cf-submit {
        width: 100%;
    }

    .nvv-contact-map__inner {
        height: 300px;
    }

    .nvv-contact-map__pin-card {
        flex-wrap: wrap;
    }
}