/* ===== Contact Page ===== */

html:has(.contact-page),
.contact-page {
    height: auto;
    min-height: 100%;
    background: #0D8E8E;
}

/* ===== Floating Background Shapes ===== */
.floating-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation-fill-mode: forwards;
}

.shape--circle { background: rgba(234, 95, 92, 0.08); }
.shape--ring   { background: transparent; border: 2px solid rgba(245, 185, 24, 0.12); }
.shape--dot    { background: rgba(255, 255, 255, 0.06); }

.shape--1 { width: 280px; height: 280px; top: 10%; left: -60px;  animation: floatShape1 14s ease-in-out infinite alternate; }
.shape--2 { width: 160px; height: 160px; top: 50%; right: -30px; animation: floatShape2 18s ease-in-out infinite alternate; }
.shape--3 { width: 200px; height: 200px; top: 25%; right: 10%;   animation: floatShape3 16s ease-in-out infinite alternate; }
.shape--4 { width: 140px; height: 140px; bottom: 30%; left: -20px; animation: floatShape4 20s ease-in-out infinite alternate; }
.shape--5 { width: 8px; height: 8px; top: 20%; left: 25%;   animation: floatDot 6s ease-in-out infinite alternate; }
.shape--6 { width: 6px; height: 6px; top: 60%; right: 20%;  animation: floatDot 8s ease-in-out infinite alternate-reverse; }
.shape--7 { width: 10px; height: 10px; bottom: 25%; right: 12%; animation: floatDot 7s ease-in-out infinite alternate; }

@keyframes floatShape1 { 0% { transform: translateY(0) rotate(0deg); opacity: 0.08; } 100% { transform: translateY(-60px) rotate(20deg); opacity: 0.12; } }
@keyframes floatShape2 { 0% { transform: translateY(0) translateX(0); opacity: 0.06; } 100% { transform: translateY(-40px) translateX(-30px); opacity: 0.1; } }
@keyframes floatShape3 { 0% { transform: translateY(0) rotate(0deg); opacity: 0.1; } 100% { transform: translateY(-35px) rotate(-15deg); opacity: 0.15; } }
@keyframes floatShape4 { 0% { transform: translate(0,0) rotate(0); opacity: 0.08; } 100% { transform: translate(20px,-45px) rotate(30deg); opacity: 0.12; } }
@keyframes floatDot    { 0% { transform: translateY(0); opacity: 0.15; } 100% { transform: translateY(-20px); opacity: 0.4; } }

/* ===== Scroll Navbar ===== */
.scroll-navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}
.scroll-navbar.visible { transform: translateY(0); }

/* Logo — in hero, visible immediately */
.contact-page .hero-logo {
    position: absolute;
    top: 24px;
    left: 32px;
    z-index: 20;
    width: 160px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

/* ===== Contact Hero ===== */
.contact-hero {
    position: relative;
    width: 100%;
    min-height: 52vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #10243e 0%, #193A65 30%, #0E5E9E 70%, #0D8E8E 100%);
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(234, 95, 92, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(245, 185, 24, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 168, 168, 0.1) 0%, transparent 60%);
    z-index: 1;
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Hero particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.particle--1 { width: 4px; height: 4px; top: 18%; left: 12%;  animation: drift 12s linear infinite; }
.particle--2 { width: 6px; height: 6px; top: 35%; left: 78%;  animation: drift 16s linear infinite reverse; animation-delay: -3s; }
.particle--3 { width: 3px; height: 3px; top: 65%; left: 25%;  animation: drift 10s linear infinite; animation-delay: -5s; }
.particle--4 { width: 5px; height: 5px; top: 50%; left: 60%;  animation: drift 14s linear infinite reverse; animation-delay: -2s; }
.particle--5 { width: 3px; height: 3px; top: 22%; left: 45%;  animation: drift 18s linear infinite; animation-delay: -7s; }
.particle--6 { width: 4px; height: 4px; top: 72%; left: 85%;  animation: drift 11s linear infinite reverse; animation-delay: -4s; }
.particle--7 { width: 5px; height: 5px; top: 80%; left: 40%;  animation: drift 15s linear infinite; animation-delay: -6s; }
.particle--8 { width: 3px; height: 3px; top: 15%; left: 92%;  animation: drift 13s linear infinite reverse; animation-delay: -1s; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    10%  { opacity: 0.6; }
    50%  { transform: translate(-30px, -50px) scale(1.5); opacity: 0.3; }
    90%  { opacity: 0.5; }
    100% { transform: translate(20px, -100px) scale(0.8); opacity: 0; }
}

.contact-hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 800px;
    padding: 80px 24px 100px;
}

.contact-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 100px;
    margin-bottom: 20px;
    width: 100%;
    overflow: visible;
}

.contact-heading svg {
    display: block;
    overflow: visible;
}

.contact-tagline {
    font-family: 'Zen Dots', cursive;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
}

.tagline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
}

/* Hero curved bottom */
.hero-curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 6;
    line-height: 0;
}

.hero-curve svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ===== Main Contact Section ===== */
.contact-main {
    position: relative;
    z-index: 1;
    padding: 60px 24px 100px;
}

.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Section labels */
.section-label {
    font-family: 'Nunito', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-left: 16px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #EA5F5C, #F5B918);
}

/* ===== Form Card ===== */
.form-card {
    background: rgba(14, 94, 158, 0.45);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

.form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EA5F5C, #F5B918, #0D8E8E);
    border-radius: 20px 20px 0 0;
}

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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(25, 58, 101, 0.45);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(234, 95, 92, 0.5);
    box-shadow: 0 0 24px rgba(234, 95, 92, 0.1);
    background: rgba(25, 58, 101, 0.6);
}

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

/* Send button */
.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #EA5F5C, #d94845);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-send:hover::before {
    left: 100%;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(234, 95, 92, 0.4);
}

.btn-send:active {
    transform: translateY(0);
}

.btn-send-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.btn-send:hover .btn-send-icon {
    transform: translate(3px, -3px);
}

/* Sending state */
.btn-send.sending {
    pointer-events: none;
    opacity: 0.7;
}

.btn-send.sent {
    background: linear-gradient(135deg, #0D8E8E, #0a7a7a);
    pointer-events: none;
}

/* ===== Info Column ===== */
.info-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(14, 94, 158, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.info-item:hover {
    transform: translateX(6px);
    background: rgba(14, 94, 158, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.info-icon--email    { background: rgba(234, 95, 92, 0.2);  color: #EA5F5C; }
.info-icon--whatsapp { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.info-icon--tiktok   { background: rgba(255, 255, 255, 0.1); color: #fff; }
.info-icon--facebook { background: rgba(24, 119, 242, 0.2); color: #1877F2; }

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.info-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.info-value {
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #193A65;
    border: 1px solid rgba(13, 142, 142, 0.4);
    border-radius: 14px;
    padding: 14px 28px;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: #0D8E8E;
    display: flex;
}

.toast-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .info-column { order: -1; }
    .form-column { order: 1; }
    .contact-hero-content { padding: 80px 24px 90px; }
}

@media (max-width: 768px) {
    .contact-heading { min-height: 80px; }
    .contact-tagline { font-size: 0.8rem; }
    .form-card { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-page .hero-logo { width: 130px; }
    .shape--1, .shape--2 { display: none; }
    .contact-main { padding: 40px 16px 80px; }
    .section-label { font-size: 1.2rem; }
}

@media (max-width: 580px) {
    .scroll-navbar { padding: 10px 16px; }
    .contact-hero { min-height: 45vh; }
    .contact-hero-content { padding: 70px 20px 80px; }
    .contact-page .hero-logo { width: 110px; top: 14px; left: 14px; }
    .contact-heading { min-height: 60px; }
    .contact-tagline { font-size: 0.72rem; }
    .hero-curve svg { height: 50px; }
    .form-card { padding: 28px 18px; border-radius: 16px; }
    .info-item { padding: 14px 16px; }
    .info-icon { width: 42px; height: 42px; border-radius: 10px; }
    .info-icon svg { width: 18px; height: 18px; }
    .floating-shapes { display: none; }
    .contact-main { padding: 30px 14px 60px; }
    .hero-particles { display: none; }
}

@media (max-width: 400px) {
    .contact-hero { min-height: 40vh; }
    .contact-page .hero-logo { width: 95px; top: 10px; left: 10px; }
    .info-value { font-size: 0.85rem; }
    .form-card { padding: 22px 14px; }
}
