/* =====================================================
   CONTACT.CSS
   Styles for Contact Page & Form
   ===================================================== */

/* =====================================================
   1. BASE & CONTAINERS (Strict Overflow Lock)
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

#contact-page {
    color: #fff;
    width: 100%;
    overflow-x: hidden; /* CRITICAL: Stops horizontal scrolling */
    position: relative;
    min-height: 100vh;
}

/* FLOW GLOW (Fixed to prevent page stretching) */
#contact-page .flow {
    position: fixed; /* Changed from absolute to prevent scroll bugs */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 67% 30%, rgba(156, 255, 0, .4), transparent 49%),
        radial-gradient(circle at 75% 70%, rgba(156, 255, 0, .2), transparent 39%);
    filter: blur(87px);
    z-index: 0;
    pointer-events: none;
}

/* =====================================================
   2. HERO SECTION
   ===================================================== */
.contact-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 8% 80px;
    position: relative;
    z-index: 2;
}

.contact-hero-inner {
    max-width: 900px;
    width: 100%;
}

.contact-hero h1 {
    font-size: 72px;
    font-family: 'Anton', sans-serif;
    line-height: 1.1;
    word-break: break-word; /* Prevents overflow on tiny screens */
}

.contact-hero span {
    color: var(--green);
}

.contact-hero p {
    margin-top: 16px;
    font-size: 18px;
    opacity: .85;
    line-height: 1.7;
}

/* HERO IMAGE (If un-commented in the future) */
.contact-hero-img {
    width: 100%;
    max-width: 820px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    filter: drop-shadow(0 0 40px rgba(156, 255, 0, .45));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* =====================================================
   3. NEON TITLE
   ===================================================== */
.neon-title {
    font-size: 52px;
    margin-bottom: 24px;
    position: relative;
    color: #ccff00;
    line-height: 1.15;
    word-break: break-word;
}

.neon-title::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 4px;
    background: var(--green);
    left: 0;
    bottom: -14px;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(156, 255, 0, .9);
}

/* =====================================================
   4. CONTACT SECTION & GRID
   ===================================================== */
.contact-section {
    padding: 40px 8% 120px;
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

/* =====================================================
   5. CONTACT INFO CARD
   ===================================================== */
.contact-info {
    background: rgba(255, 255, 255, 0.04);
    padding: 42px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 40px rgba(156, 255, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 55px rgba(156, 255, 0, 0.25);
    border-color: rgba(156, 255, 0, 0.2);
}

.contact-info p {
    margin: 20px 0 30px;
    max-width: 520px;
    line-height: 1.8;
    opacity: 0.9;
    font-size: 16px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    opacity: 0.95;
    flex-wrap: wrap; /* Allows long emails to wrap properly on mobile */
}

.contact-list strong {
    color: var(--green);
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

/* =====================================================
   6. CONTACT FORM CARD
   ===================================================== */
.contact-form {
    background: rgba(255, 255, 255, .04);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
    font-size: 22px;
    margin-bottom: 26px;
    color: #ccff00;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(156, 255, 0, 0.25);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* SELECT FIELD */
.contact-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--green) 50%),
        linear-gradient(135deg, var(--green) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 55%,
        calc(100% - 14px) 55%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #9cff00;
    padding: 14px 44px 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 18px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(156, 255, 0, 0.25);
}

.contact-form option {
    background: #080908; /* Set to dark so it looks clean and readable when opened */
    color: #9cff00;
}

/* THIS IS THE FIX: Completely hide the placeholder from the opened dropdown */
.contact-form option[disabled] {
    display: none; 
}

/* BUTTONS */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
    cursor: pointer;
    padding: 14px 36px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover {
    background: var(--green);
    color: #000;
    transform: translateY(-2px);
}

/* =====================================================
   7. RESPONSIVE BREAKPOINTS (Mobile Locks)
   ===================================================== */

/* TABLET (max 1024px) */
@media (max-width: 1024px) {
    .contact-hero h1 { font-size: 56px; }
    .neon-title { font-size: 42px; }
    .contact-grid { gap: 40px; }
    .contact-info, .contact-form { padding: 36px; }
}

/* TABLET PORTRAIT / STACK GRID (max 900px) */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* MOBILE (max 768px) */
@media (max-width: 768px) {
    /* HERO */
    .contact-hero { padding: 120px 6% 60px; min-height: auto; }
    .contact-hero h1 { font-size: 40px; }
    .contact-hero p { font-size: 15px; }
    .contact-hero-img { max-width: 320px; }

    /* NEON TITLE */
    .neon-title { font-size: 34px; }
    .neon-title::after { width: 60px; }

    /* SECTION */
    .contact-section { padding: 40px 6% 80px; }

    /* INFO CARD */
    .contact-info { padding: 28px 24px; text-align: center; }
    .contact-info:hover { transform: none; box-shadow: 0 0 40px rgba(156, 255, 0, 0.12); } /* disable lift */
    
    .contact-list li { justify-content: center; font-size: 15px; flex-direction: column; gap: 4px; margin-bottom: 24px;}
    .contact-list strong { min-width: auto; }

    /* FORM CARD */
    .contact-form { padding: 28px 24px; }
    .form-title { font-size: 20px; margin-bottom: 20px; text-align: center; }

    /* prevents iOS Safari auto-zoom on input focus */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; 
        padding: 13px 14px;
    }
    
    .contact-form select { padding-right: 44px; }

    /* Make button full width on mobile for easy tapping */
    .contact-form .btn-outline { width: 100%; text-align: center; }
}

/* SMALL MOBILE (max 480px) */
@media (max-width: 480px) {
    .contact-hero { padding: 100px 5% 40px; }
    .contact-hero h1 { font-size: 32px; }
    .contact-hero p { font-size: 14px; }
    .contact-hero-img { max-width: 260px; }

    .neon-title { font-size: 28px; }
    .contact-section { padding: 40px 5% 60px; }

    .contact-info, .contact-form { padding: 24px 18px; border-radius: 14px; }
    .contact-list li { font-size: 14px; gap: 4px; }
    .contact-grid { gap: 24px; }
}