/* ============================================
   CONTACT PAGE - Premium Professional Design
   Matching AAVATAR Dark Theme Aesthetic
   ============================================ */

/* ============================================
   CONTACT HERO SECTION
   ============================================ */
.contact-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #080810 0%, #0d0d1a 40%, #0a0a18 100%);
    overflow: hidden;
    padding: 8rem 0 5rem;
}

/* Animated gradient glow behind hero */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(26, 35, 126, 0.12) 0%, rgba(124, 77, 255, 0.06) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.contact-hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Hero Left Content */
.contact-hero-text {
    text-align: left;
    position: relative;
    z-index: 5;
}

.contact-hero-tagline {
    display: inline-block;
    padding: 0.55rem 1.6rem;
    background: rgba(26, 35, 126, 0.15);
    border: 1px solid rgba(26, 35, 126, 0.3);
    border-radius: 50px;
    color: #8c9eff;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.contact-hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.contact-hero-title .text-gradient {
    display: block;
    margin-top: 0.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8c9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.contact-quick-info {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quick-info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.quick-info-item i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* === Hero Right Visual (Animated Contact Sphere) === */
.contact-hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-contact-sphere {
    position: relative;
    width: 360px;
    height: 360px;
    animation: floatSphere 7s ease-in-out infinite;
}

@keyframes floatSphere {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Glowing orb behind icons */
.hero-contact-sphere::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(26, 35, 126, 0.3) 0%, rgba(124, 77, 255, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Floating Icons */
.contact-float-icon {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    transition: all 0.4s ease;
    z-index: 2;
}

.contact-float-icon:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.contact-float-icon.icon-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.5), rgba(57, 73, 171, 0.3));
    border-color: rgba(57, 73, 171, 0.4);
    color: #8c9eff;
    animation: floatIcon1 5s ease-in-out infinite;
}

.contact-float-icon.icon-2 {
    bottom: 40px;
    left: 30px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.08));
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
    animation: floatIcon2 6s ease-in-out infinite;
}

.contact-float-icon.icon-3 {
    bottom: 60px;
    right: 30px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.3), rgba(124, 77, 255, 0.1));
    border-color: rgba(124, 77, 255, 0.3);
    color: var(--spiritual-light);
    animation: floatIcon3 5.5s ease-in-out infinite;
}

@keyframes floatIcon1 {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }

    50% {
        transform: translateX(-50%) translateY(-10px) rotate(5deg);
    }
}

@keyframes floatIcon2 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(-5deg);
    }
}

@keyframes floatIcon3 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* Central Card */
.contact-main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 160px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.contact-main-card span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
    letter-spacing: 2px;
}

.contact-main-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   CONTACT SECTION (Info + Form)
   ============================================ */
.contact-section {
    background: linear-gradient(180deg, #080810 0%, var(--dark-bg) 30%, var(--dark-bg) 100%);
    padding: 6rem 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Left Column: Contact Info Cards */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-glass-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.contact-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-glass-card:nth-child(1)::before {
    background: var(--gradient-primary);
}

.contact-glass-card:nth-child(2)::before {
    background: linear-gradient(180deg, #38ef7d, #11998e);
}

.contact-glass-card:nth-child(3)::before {
    background: linear-gradient(180deg, #ffc107, #ff9800);
}

.contact-glass-card:nth-child(4)::before {
    background: var(--gradient-spiritual);
}

.contact-glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(8px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.contact-glass-card:hover::before {
    opacity: 1;
}

.contact-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-glass-card:hover .contact-icon-box {
    transform: scale(1.1);
}

.contact-icon-box.email {
    background: rgba(26, 35, 126, 0.2);
    color: #8c9eff;
    border: 1px solid rgba(26, 35, 126, 0.3);
}

.contact-icon-box.phone {
    background: rgba(17, 153, 142, 0.12);
    color: #38ef7d;
    border: 1px solid rgba(17, 153, 142, 0.25);
}

.contact-icon-box.location {
    background: rgba(255, 193, 7, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.contact-icon-box.social {
    background: rgba(124, 77, 255, 0.12);
    color: var(--spiritual-light);
    border: 1px solid rgba(124, 77, 255, 0.25);
}

.contact-details h4 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.contact-details a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-details a:hover {
    color: #ffd54f;
    gap: 0.5rem;
}

/* Social icons in the contact card */
.contact-details .fab {
    font-size: 1.15rem;
    padding: 0.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.contact-details .fab:hover {
    background: rgba(124, 77, 255, 0.2);
    border-color: rgba(124, 77, 255, 0.4);
    color: var(--spiritual-light);
    transform: translateY(-2px);
}

/* ============================================
   RIGHT COLUMN: Contact Form
   ============================================ */
.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 3rem 3.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

/* Decorative corner glow */
.contact-form-container::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(26, 35, 126, 0.15), transparent 70%);
    border-radius: 0 28px;
    pointer-events: none;
}

.contact-form-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.contact-form-header h3 {
    font-size: 1.85rem;
    color: var(--white);
    margin-bottom: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.contact-form-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 0.95rem 1.25rem;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(57, 73, 171, 0.6);
    box-shadow:
        0 0 0 3px rgba(57, 73, 171, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

select.form-input option {
    background: #1a1a2e;
    color: var(--white);
}

.btn-form-submit {
    width: 100%;
    background: linear-gradient(135deg, #3949ab, #5c6bc0);
    color: var(--white);
    border: none;
    padding: 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.btn-form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-form-submit:hover::before {
    left: 100%;
}

.btn-form-submit:hover {
    background: linear-gradient(135deg, #5c6bc0, #7986cb);
    box-shadow: 0 12px 35px rgba(26, 35, 126, 0.35);
    transform: translateY(-3px);
}

.btn-form-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

/* ============================================
   TRUST STATS BAR
   ============================================ */
.contact-trust-bar {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0a16 100%);
    padding: 4rem 0;
    position: relative;
}

.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(10px);
}

.trust-stat {
    text-align: center;
    position: relative;
}

.trust-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.trust-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8c9eff, #b388ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.trust-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================
   MAP SECTION (Contained & Styled)
   ============================================ */
.map-container-section {
    padding: 0 0 6rem;
    position: relative;
    background: linear-gradient(180deg, #0a0a16 0%, var(--dark-bg) 100%);
}

.map-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-header h3 i {
    color: var(--secondary);
}

.map-header p {
    color: rgba(255, 255, 255, 0.6);
    margin-right: auto;
    margin-left: 2rem;
    font-size: 0.9rem;
}

.get-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.get-directions-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--secondary);
}

.map-frame {
    height: 400px;
    width: 100%;
    filter: grayscale(100%) invert(92%) hue-rotate(180deg) brightness(85%) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-wrapper:hover .map-frame {
    filter: grayscale(0%) invert(0%) hue-rotate(0deg) brightness(100%) contrast(1);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .contact-hero {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .contact-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .contact-hero-text {
        text-align: center;
    }

    .contact-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-quick-info {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero-visual {
        height: 320px;
    }

    .hero-contact-sphere {
        width: 300px;
        height: 300px;
    }

    .contact-form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.75rem;
    }

    .contact-hero-visual {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .contact-glass-card {
        padding: 1.25rem 1.5rem;
    }

    .map-section {
        height: 300px;
    }

    .trust-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem;
    }

    .trust-stat:nth-child(2)::after {
        display: none;
    }

    .trust-stat-number {
        font-size: 2rem;
    }

    .map-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem;
    }

    .map-header p {
        margin: 0;
        margin-bottom: 0.5rem;
    }

    .map-frame {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 7rem 0 3rem;
    }

    .contact-hero-title {
        font-size: 2rem;
    }

    .contact-quick-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .contact-section {
        padding: 4rem 0;
    }

    .contact-form-header h3 {
        font-size: 1.5rem;
    }

    .contact-glass-card:hover {
        transform: translateX(4px);
    }
}