/* =========================================
   JOIN.CSS - Deep Tech Edition
   ========================================= */

/* --- Page Background --- */
body {
    background-color: #0f172a; /* Main Dark Background */
    color: white;
}

/* Background Effects */
.fixed-bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.fixed-bg-glow {
    position: fixed;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 1000px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.relative-z { position: relative; z-index: 2; }

/* --- Wrapper & Layout --- */
.join-wrapper {
    padding-top: 140px; 
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-container {
    display: flex;
    background: #1e293b; /* Card Surface */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    min-height: 650px;
    width: 100%;
    max-width: 1150px;
}

/* --- Left Side: Form --- */
.form-side {
    flex: 1.3;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

.form-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.form-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.form-header p {
    color: #94a3b8; /* Slate Light */
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Form Styles */
.join-form { width: 100%; }

.input-row {
    display: flex;
    gap: 20px;
}

.input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.input-group .optional { font-size: 0.75rem; color: #64748b; }

/* Input Wrapper for Icon + Field */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    transition: var(--transition);
}

.textarea-wrapper .input-icon { top: 20px; transform: none; }

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 16px 14px 45px; /* Left padding for icon */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

/* Focus States */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.4);
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.input-group input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.input-group select { cursor: pointer; color: #cbd5e1; }
.input-group textarea { resize: none; min-height: 120px; }

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    color: white;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}
.submit-btn:hover .arrow { transform: translateX(4px); }
.submit-btn .arrow { transition: transform 0.3s ease; }


/* --- Right Side: Visuals --- */
.visual-side {
    flex: 1;
    background: #020617;
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,0.05);
}

/* Tech Decoration */
.tech-circle-1 {
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.tech-line {
    position: absolute;
    left: 60px;
    top: 130px;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.visual-content {
    position: relative;
    z-index: 2;
    margin-bottom: auto; /* Push map to bottom */
}

.visual-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 0.25rem;
}

.hq-sub {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight-item { display: flex; align-items: flex-start; gap: 1rem; }

.icon-box {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.highlight-text { display: flex; flex-direction: column; }

.highlight-text strong {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.highlight-text span, .highlight-text a {
    font-size: 1rem;
    color: white;
    font-weight: 500;
}

.link-light { text-decoration: none; transition: 0.2s; }
.link-light:hover { color: var(--primary); }

/* --- Integrated Map --- */
.mini-map-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 3rem;
    border: 1px solid rgba(255,255,255,0.1);
    filter: grayscale(100%) invert(92%) hue-rotate(180deg) brightness(0.85); /* Dark Mode Map Hack */
    transition: filter 0.3s ease;
}

.mini-map-container:hover {
    filter: grayscale(0%) invert(0%); /* Full color on hover */
}


/* --- Responsive --- */
@media (max-width: 968px) {
    .join-container {
        flex-direction: column;
        max-width: 600px;
    }
    .form-side { order: 1; padding: 40px; }
    .visual-side { order: 2; padding: 40px; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
    .tech-line { display: none; }
}

@media (max-width: 480px) {
    .input-row { flex-direction: column; gap: 0; }
    .form-header h1 { font-size: 2rem; }
}