/* ============================================================
   CONTACT PAGE — Premium Advertiser Layout
   CodeWooW · contact.css
   ============================================================ */

/* ── Page shell ── */
.contact-shell {
    min-height: 100vh;
    padding-top: 64px; /* navbar offset */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* ── Animated mesh background ── */
.contact-bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.contact-bg-mesh::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(var(--accent-primary-rgb), 0.12) 0%, transparent 70%);
    animation: meshDrift1 14s ease-in-out infinite alternate;
}

.contact-bg-mesh::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(var(--accent-secondary-rgb), 0.10) 0%, transparent 70%);
    animation: meshDrift2 18s ease-in-out infinite alternate;
}

@keyframes meshDrift1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(8%, 6%) scale(1.12); }
}
@keyframes meshDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-6%, -8%) scale(1.08); }
}

/* ── Floating particles ── */
.contact-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cp-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: cpFloat linear infinite;
}

@keyframes cpFloat {
    0%   { opacity: 0; transform: translateY(0) scale(0.6); }
    15%  { opacity: 0.6; }
    85%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-110vh) scale(1.2); }
}

/* ── Inner wrapper ── */
.contact-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px 80px;
    box-sizing: border-box;
}

/* ============================================================
   HERO
   ============================================================ */
.contact-hero {
    text-align: center;
    padding: 72px 0 48px;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-primary-rgb), 0.12);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    color: var(--accent-primary);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.contact-hero-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@keyframes badgePop {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.contact-hero h1 {
    font-family: 'Hanken Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--text-primary);
    animation: heroSlide 0.7s 0.1s ease both;
}

.contact-hero h1 span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.65;
    animation: heroSlide 0.7s 0.2s ease both;
}

@keyframes heroSlide {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Stats strip ── */
.contact-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    animation: heroSlide 0.7s 0.35s ease both;
}

.cstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 36px;
    position: relative;
}

.cstat + .cstat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.cstat-num {
    font-family: 'Hanken Grotesk', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.cstat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   MAIN GRID — left info + right form
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 28px;
    align-items: start;
    animation: heroSlide 0.7s 0.45s ease both;
}

/* ============================================================
   LEFT COLUMN
   ============================================================ */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Glass card base ── */
.cg-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.cg-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.25);
    transform: translateY(-2px);
}

.cg-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-primary-rgb), 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* ── Why Advertise card ── */
.why-advertise-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin: 0 0 16px;
}

.why-advertise-heading {
    font-family: 'Hanken Grotesk', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
    line-height: 1.3;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(var(--accent-primary-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.benefit-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    stroke: var(--accent-primary);
}

.benefit-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.benefit-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Contact info card ── */
.info-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin: 0 0 16px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ci-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--accent-secondary-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
}

.ci-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-secondary);
}

.ci-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.ci-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ci-value a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.ci-value a:hover {
    color: var(--accent-primary);
}

/* ── Response time banner ── */
.response-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb), 0.10),
        rgba(var(--accent-secondary-rgb), 0.08));
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 14px;
    padding: 16px 20px;
}

.rb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.2);
    animation: rbPulse 2s ease-in-out infinite;
}

@keyframes rbPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(var(--accent-primary-rgb), 0.08); }
}

.rb-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rb-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ============================================================
   RIGHT COLUMN — Form card
   ============================================================ */
.form-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-primary-rgb), 0.5), transparent);
}

.form-card-header {
    margin-bottom: 32px;
}

.form-card-title {
    font-family: 'Hanken Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.form-card-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Form fields ── */
.cf-group {
    margin-bottom: 22px;
    position: relative;
}

.cf-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
}

.cf-label .required-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
}

.cf-input,
.cf-select,
.cf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.cf-input::placeholder,
.cf-textarea::placeholder {
    color: rgba(255,255,255,0.22);
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.05);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.12);
}

.cf-input.error,
.cf-select.error,
.cf-textarea.error {
    border-color: var(--error-color);
    background: rgba(var(--error-color-rgb), 0.05);
}

/* Select custom arrow */
.cf-select-wrap {
    position: relative;
}

.cf-select-wrap .select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

.cf-select-wrap .select-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.cf-select option {
    background: #1a1d24;
    color: var(--text-primary);
}

.cf-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* ── Two-col row ── */
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Error message ── */
.cf-error {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.cf-error.visible {
    opacity: 1;
    transform: translateY(0);
}

.cf-error svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ── Submit button ── */
.cf-submit {
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-family: 'Hanken Grotesk', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #111;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 24px rgba(var(--accent-primary-rgb), 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.cf-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255,0.22) 50%,
        rgba(255,255,255,0) 70%);
    background-size: 200% 100%;
    animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.cf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(var(--accent-primary-rgb), 0.5);
}

.cf-submit:active {
    transform: translateY(0);
}

.cf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cf-submit svg {
    width: 18px;
    height: 18px;
    stroke: #111;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.cf-submit:hover svg {
    transform: translateX(3px);
}

.cf-submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(17,17,17,0.3);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.cf-submit.loading .cf-submit-spinner { display: block; }
.cf-submit.loading .cf-submit-icon   { display: none; }
.cf-submit.loading .cf-submit-text   { opacity: 0.7; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Privacy note ── */
.cf-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    justify-content: center;
}

.cf-privacy svg {
    width: 13px;
    height: 13px;
    stroke: var(--accent-primary);
    flex-shrink: 0;
}

/* ============================================================
   SUCCESS TOAST — override default
   ============================================================ */
.notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.show {
    transform: translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(20, 22, 28, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4),
                0 0 0 1px rgba(var(--accent-primary-rgb), 0.1);
    min-width: 280px;
}

.notification-content i {
    font-size: 22px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.notification-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-left {
        order: 2;
    }

    .form-card {
        order: 1;
        padding: 28px 22px;
    }

    .cstat {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 48px 0 32px;
    }

    .contact-hero h1 {
        font-size: 1.75rem;
    }

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

    .contact-stats {
        gap: 8px;
    }

    .cstat {
        padding: 0 12px;
    }

    .cstat-num {
        font-size: 1.4rem;
    }

    .notification {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
html[data-theme="light"] .cg-card,
html[data-theme="light"] .form-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.08);
}

html[data-theme="light"] .cf-input,
html[data-theme="light"] .cf-select,
html[data-theme="light"] .cf-textarea {
    background: rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.12);
    color: #1a1a2e;
}

html[data-theme="light"] .cf-input::placeholder,
html[data-theme="light"] .cf-textarea::placeholder {
    color: rgba(0,0,0,0.3);
}

html[data-theme="light"] .cf-select option {
    background: #fff;
    color: #1a1a2e;
}

html[data-theme="light"] .notification-content {
    background: rgba(255,255,255,0.95);
}
