/* ===========================
   CONTACT PAGE STYLES
   =========================== */

/* Contact Hero */
.contact-hero {
    min-height: 55vh;
    padding-top: 130px;
    padding-bottom: 50px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-content {
    max-width: 800px;
}

.contact-hero h1 {
    font-size: clamp(38px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    color: #000;
    margin-bottom: 25px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    max-width: 550px;
    font-weight: 400;
}

/* ===== ANIMATED HERO BACKGROUND ELEMENTS ===== */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

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

/* Morphing Blob */
.hero-blob {
    position: absolute;
    right: -5%;
    top: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(38, 211, 103, 0.12) 0%, rgba(38, 211, 103, 0.03) 60%, transparent 80%);
    border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    animation: blobMorph 8s ease-in-out infinite;
}

@keyframes blobMorph {
    0% {
        border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
        transform: rotate(0deg) scale(1);
    }

    33% {
        border-radius: 55% 45% 40% 60% / 60% 35% 65% 40%;
        transform: rotate(60deg) scale(1.05);
    }

    66% {
        border-radius: 35% 65% 50% 50% / 45% 55% 45% 55%;
        transform: rotate(120deg) scale(0.95);
    }

    100% {
        border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
        transform: rotate(0deg) scale(1);
    }
}

/* Animated Grid Overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbPulse 6s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: rgba(38, 211, 103, 0.1);
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 120px;
    height: 120px;
    background: rgba(38, 211, 103, 0.08);
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: rgba(100, 200, 255, 0.06);
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Rotating Ring */
.rotating-ring {
    position: absolute;
    right: 8%;
    top: 20%;
    width: 280px;
    height: 280px;
    border: 2px dashed rgba(38, 211, 103, 0.12);
    border-radius: 50%;
    animation: ringRotate 25s linear infinite;
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
}

.shape-1 {
    top: 25%;
    right: 30%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: floatShape 5s ease-in-out infinite;
}

.shape-2 {
    bottom: 30%;
    right: 15%;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: floatShape 4s ease-in-out infinite 0.5s;
}

.shape-3 {
    top: 40%;
    right: 40%;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    animation: floatShape 6s ease-in-out infinite 1s;
}

.shape-4 {
    top: 65%;
    right: 25%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid rgba(38, 211, 103, 0.3);
    animation: floatShape 5.5s ease-in-out infinite 1.5s;
}

.shape-5 {
    top: 15%;
    left: 60%;
    width: 24px;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    animation: floatShape 4.5s ease-in-out infinite 2s;
}

.shape-5::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 24px;
    background: var(--accent-color);
    top: -11px;
    left: 11px;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(5deg);
    }

    50% {
        transform: translateY(-6px) rotate(-3deg);
    }

    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Contact Main Section */
.contact-main {
    padding: 60px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
}

.contact-form-wrapper h2 {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: -1px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-subtitle {
    font-size: 15px;
    color: #888;
    margin-bottom: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fafafa;
    transition: 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(38, 211, 103, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23666' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn i {
    transition: 0.3s;
}

.submit-btn:hover i {
    transform: translateX(5px) rotate(-15deg);
}

/* Contact Info Card */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border-radius: 24px;
    padding: 40px 35px;
    color: #fff;
}

.info-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.info-lead {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    line-height: 1.6;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 30px;
}

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

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(38, 211, 103, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 16px;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3px;
}

.info-item a,
.info-item p {
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    margin: 0;
}

.info-item a:hover {
    color: var(--accent-color);
}

.info-social {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.info-social span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Full-Width Map Section */
.map-section {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    padding: 0;
    margin: 0;
}

.map-section iframe {
    width: 100%;
    height: 550px;
    display: block;
}

/* FAQ Section — Two-Column Split Layout */
.faq-section {
    padding: 70px 0;
    background: #fff;
}

.faq-split {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 60px;
    align-items: start;
}

/* Left Column */
.faq-left {
    position: relative;
    padding-top: 10px;
}

.faq-left .section-heading {
    margin-bottom: 16px;
}

.faq-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #888;
}

.faq-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.faq-link:hover {
    text-decoration: underline;
}

/* Large Decorative Background Text */
.faq-deco-text {
    font-size: clamp(120px, 18vw, 200px);
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    letter-spacing: -8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: absolute;
    bottom: -40px;
    left: -10px;
    pointer-events: none;
    user-select: none;
}

/* Decorative Question Mark */
.faq-deco-mark {
    position: absolute;
    right: 20px;
    bottom: 30px;
    font-size: 140px;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.08;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    pointer-events: none;
    animation: floatMark 4s ease-in-out infinite;
}

@keyframes floatMark {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Right Column — Accordion */
.faq-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f9fafb;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.faq-item.active {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(38, 211, 103, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: left;
    transition: 0.3s;
    gap: 15px;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(38, 211, 103, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s;
}

.faq-toggle i {
    font-size: 12px;
    color: var(--accent-color);
    transition: 0.3s;
}

.faq-item.active .faq-toggle {
    background: var(--accent-color);
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle i {
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-deco-text {
        font-size: 100px;
    }

    .faq-deco-mark {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .contact-hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .contact-hero-desc {
        font-size: 16px;
    }

    .info-card {
        padding: 30px 25px;
    }

    .section-heading {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .faq-question {
        font-size: 15px;
        padding: 18px 22px;
    }

    .faq-answer p {
        padding: 0 22px 18px;
    }
}

/* ============================================
   CONTACT PAGE PERFORMANCE OPTIMISATIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-blob,
    .glow-orb,
    .rotating-ring,
    .geo-shape,
    .faq-deco-mark,
    .hero-grid-overlay {
        animation: none !important;
        transition: none !important;
    }
}