/* =========================================================
   VUDEV PREMIUM CONTACT PAGE - FULL EFFECTS EDITION
   ========================================================= */

/* ===== HERO SECTION ===== */
.contact-hero {
    position: relative;
    padding: 160px 20px 80px;
    text-align: center;
    overflow: hidden;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Glow orbs background */
.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px; height: 500px;
    background: rgba(14, 165, 233, 0.12);
    top: -100px; right: -100px;
    animation: floatOrb 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px; height: 400px;
    background: rgba(168, 85, 247, 0.1);
    bottom: -80px; left: -100px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
}

.p1 { width: 4px; height: 4px; background: #0ea5e9; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.p2 { width: 3px; height: 3px; background: #ec4899; left: 25%; animation-duration: 15s; animation-delay: 2s; }
.p3 { width: 5px; height: 5px; background: #a855f7; left: 45%; animation-duration: 10s; animation-delay: 4s; }
.p4 { width: 3px; height: 3px; background: #10b981; left: 65%; animation-duration: 14s; animation-delay: 1s; }
.p5 { width: 4px; height: 4px; background: #f59e0b; left: 80%; animation-duration: 11s; animation-delay: 3s; }
.p6 { width: 3px; height: 3px; background: #0ea5e9; left: 90%; animation-duration: 13s; animation-delay: 5s; }

@keyframes particleFloat {
    0% { bottom: -10px; opacity: 0; transform: translateX(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.3; }
    100% { bottom: 110%; opacity: 0; transform: translateX(calc(var(--drift, 40px))); }
}

.p1 { --drift: 30px; } .p2 { --drift: -25px; } .p3 { --drift: 40px; }
.p4 { --drift: -35px; } .p5 { --drift: 20px; } .p6 { --drift: -30px; }

.hero-inner {
    position: relative;
    z-index: 2;
}

/* Badge */
.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ec4899;
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    animation: badgePulse 3s ease-in-out infinite;
}

.badge-dot {
    width: 8px; height: 8px;
    background: #ec4899;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.15); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

[data-theme="light"] .contact-badge {
    background: rgba(236, 72, 153, 0.05);
}

/* Title */
.contact-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-color);
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== CONTACT GRID ===== */
.contact-section {
    padding: 20px 20px 100px;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* ===== LEFT COLUMN: INFO BOX ===== */
.contact-info-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

/* Viền gradient chạy xung quanh */
.info-box-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    -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;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.info-box-border::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 3000px; height: 3000px;
    background: conic-gradient(from 0deg, transparent 60%, #0ea5e9, #ec4899, #a855f7, #10b981);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotateBorderContact 5s linear infinite;
}

@keyframes rotateBorderContact {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Nền bên trong */
.contact-info-box::before {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 22.5px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

[data-theme="light"] .contact-info-box::before {
    background: rgba(255, 255, 255, 0.9);
}

/* Ánh sáng chiếu vào */
.contact-info-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    border-radius: 24px;
}

.info-group, .status-bar {
    position: relative;
    z-index: 3;
}

.info-group {
    padding: 30px 35px 0;
}

.info-group:first-child {
    padding-top: 35px;
}

.info-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 25px 35px;
    position: relative;
    z-index: 3;
}

[data-theme="light"] .info-divider {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* Info Heading */
.info-heading {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.heading-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.blue-glow {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.purple-glow {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.info-item:last-child { margin-bottom: 0; }

.info-item:hover {
    transform: translateX(6px);
}

/* Info Icons */
.info-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pulse-blue {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.pulse-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.pulse-tele {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.pulse-fb {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pulse-gh {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.info-icon:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: transparent;
}

.pulse-blue:hover { background: #0ea5e9; color: #fff; box-shadow: 0 12px 25px rgba(14, 165, 233, 0.45); }
.pulse-pink:hover { background: #ec4899; color: #fff; box-shadow: 0 12px 25px rgba(236, 72, 153, 0.45); }
.pulse-tele:hover { background: linear-gradient(135deg, #0088cc, #00c6ff); color: #fff; box-shadow: 0 12px 25px rgba(0, 136, 204, 0.45); }
.pulse-fb:hover { background: linear-gradient(135deg, #1877f2, #42a5f5); color: #fff; box-shadow: 0 12px 25px rgba(24, 119, 242, 0.45); }
.pulse-gh:hover { background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: #fff; box-shadow: 0 12px 25px rgba(139, 92, 246, 0.45); }

/* Text */
.info-text-blk {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.info-value {
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item:hover .info-value {
    color: #0ea5e9;
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    margin: 20px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 0 0 24px 24px;
}

.status-dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* ===== RIGHT COLUMN: FORM ===== */
.contact-form-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

/* Viền gradient form box */
.form-box-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    -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;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.form-box-border::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 3000px; height: 3000px;
    background: conic-gradient(from 180deg, transparent 60%, #a855f7, #ec4899, #0ea5e9, #10b981);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotateBorderContact 6s linear infinite;
}

.form-box-inner {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22.5px;
    padding: 40px;
}

[data-theme="light"] .form-box-inner {
    background: rgba(255, 255, 255, 0.9);
}

.form-header {
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Controls */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .input-control {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

.input-control:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    background: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .input-control:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
}

textarea.input-control {
    resize: vertical;
    min-height: 140px;
}

/* Floating Label */
.input-label {
    position: absolute;
    left: 20px;
    top: 19px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.input-control:focus ~ .input-label,
.input-control:not(:placeholder-shown) ~ .input-label {
    transform: translateY(-30px) scale(0.82);
    left: 12px;
    color: #0ea5e9;
    font-weight: 600;
    background: var(--body-bg, #0a0a0a);
    padding: 2px 10px;
    border-radius: 6px;
}

[data-theme="light"] .input-control:focus ~ .input-label,
[data-theme="light"] .input-control:not(:placeholder-shown) ~ .input-label {
    background: #ffffff;
}

/* Input highlight line */
.input-highlight {
    position: absolute;
    bottom: 0; left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #a855f7);
    border-radius: 2px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.input-highlight.active {
    width: 100%;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6, #a855f7);
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.4s ease, transform 0.15s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.submit-btn:hover {
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5), 0 0 30px rgba(168, 85, 247, 0.2);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Shine sweep */
.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: btnShineSweep 4s infinite cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

@keyframes btnShineSweep {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-hero {
        padding: 130px 20px 60px;
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-hero {
        padding: 110px 16px 40px;
    }
    .info-group {
        padding: 24px 20px 0;
    }
    .info-group:first-child {
        padding-top: 28px;
    }
    .info-divider {
        margin: 20px 20px;
    }
    .form-box-inner {
        padding: 28px 20px;
    }
    .status-bar {
        padding: 12px 20px;
    }
    .contact-title {
        font-size: 2.2rem;
    }
}
