/* Contact Page - Uplink Theme */

:root {
    --font-mono: 'JetBrains Mono', monospace;
}

.contact-main {
    padding-top: 5rem;
    min-height: 100vh;
    background-color: #0A192F;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Hero */
.contact-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(100,255,218,0.2);
}

.contact-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Layout Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* Form takes more space */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* Common Panel Styles */
.form-container, .location-block {
    background: #112240;
    border: 1px solid #233554;
    border-radius: 8px;
    overflow: hidden;
}

.panel-header {
    background: #1B2B48;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #233554;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.status-light {
    width: 8px;
    height: 8px;
    background: #00FF88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00FF88;
}

/* Form Styles */
.form-container { display: flex; flex-direction: column; }
.uplink-form { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.uplink-form .input-group:last-of-type { flex: 1; display: flex; flex-direction: column; }
.uplink-form .input-group:last-of-type textarea { flex: 1; }

.input-group { margin-bottom: 1.5rem; }

.input-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.input-group textarea {
    resize: none;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: #0A192F;
    border: 1px solid #233554;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: 0.3s;
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364FFDA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--neon-blue);
    border: none;
    border-radius: 4px;
    color: #000;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

/* Right Sidebar */
.info-sidebar { display: flex; flex-direction: column; gap: 2rem; }

/* Social Matrix */
.social-matrix {
    display: grid;
    gap: 1rem;
}

.matrix-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #112240;
    border: 1px solid #222;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.matrix-btn:hover {
    border-color: var(--neon-blue);
    background: #161616;
}

.matrix-btn .icon { font-size: 1.5rem; }

.matrix-btn .text { display: flex; flex-direction: column; }
.matrix-btn .label { font-family: var(--font-mono); font-size: 0.65rem; color: #666; }
.matrix-btn .value { color: #fff; font-weight: 600; font-size: 1rem; }

/* Map */
.map-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* MAGIC TRICK: Turns standard Google Maps Dark Mode */
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
}

.location-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(10,25,47,0.9);
    padding: 0.8rem;
    border-radius: 4px;
    border-left: 3px solid var(--neon-blue);
    font-size: 0.85rem;
    color: #fff;
    backdrop-filter: blur(5px);
}

/* FAQ Mini */
.faq-mini h3 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #233554;
}

.faq-item .q { color: var(--neon-blue); font-weight: 600; margin-bottom: 0.2rem; font-size: 0.9rem; }
.faq-item .a { color: #888; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-hero h1 { font-size: 2.5rem; }
}

/* Success Animation Screen */
.terminal-success {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: terminalPulse 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #00FF88;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.success-content h3 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: 0.3s;
}

.reset-btn:hover {
    background: var(--neon-blue);
    color: #0A192F;
}

@keyframes terminalPulse {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Sidebar Customizations */
.matrix-btn.linkedin:hover { border-color: #0077b5; box-shadow: 0 0 15px rgba(0, 119, 181, 0.2); }
.matrix-btn.discord:hover { border-color: #5865F2; }

/* New Grid for Socials */
.social-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 1rem;
}

.matrix-card {
    display: flex;
    flex-direction: column; /* Icon above text */
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    background: #112240;
    border: 1px solid #233554;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.matrix-card span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
    margin-top: 0.75rem;
    font-weight: 500;
}

.matrix-card:hover {
    border-color: var(--neon-blue);
    background: #1B2B48;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

/* Sidebar stacking */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Tighter gap for better flow */
}

/* HQ Map sizing adjustment */
.map-wrapper {
    height: 200px; /* Slightly shorter to keep layout compact */
}

/* FAQ Styling */
.faq-mini {
    background: #020C1B;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #233554;
}