/* ==========================================================================
   FocusTrend Demo Form - Dark Luxury Theme
   ========================================================================== */
:root {
    --clr-dark: #070e20;
    --clr-navy: #0e1b3d;
    --clr-panel: #1a274c;
    --clr-gold: #cfa86e;
    --clr-gold-light: #e6c591;
    --clr-neon: #4facfe;
    --clr-text-main: #f0f4f8;
    --clr-text-muted: #a0aec0;
    --clr-white: #ffffff;
    --clr-error: #fc8181;
    --clr-success: #68d391;
    
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    background-color: var(--clr-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Global Navigation (Apple Style)
   ========================================================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 110px;
    display: flex;
    align-items: center;
    transition: background-color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo, .nav-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.focustrend-logo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    animation: magicFloat 4s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s;
    filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.3));
}

.focustrend-logo:hover {
    transform: scale(1.08) rotate(-1deg);
    filter: drop-shadow(0 0 15px rgba(79, 172, 254, 0.8)) drop-shadow(0 0 30px rgba(230, 197, 145, 0.4));
}

@keyframes magicFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.85;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffffff;
    opacity: 1;
}

/* ==========================================================================
   Hamburger Mobile Menu Button
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 18px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f5f5f7;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 2px;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 8px; }
.mobile-menu-btn span:nth-child(3) { top: 16px; }

body.nav-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

.nav-open .mobile-menu-btn span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.nav-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .mobile-menu-btn span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* ==========================================================================
   Split Layout
   ========================================================================== */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding-top: 100px; /* Offset for fixed nav */
}

.visual-side {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--clr-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
}

.visual-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(7, 14, 32, 0.95) 0%, rgba(14, 27, 61, 0.7) 100%);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.visual-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--clr-white);
    letter-spacing: -1px;
}

.lead-text {
    font-size: 20px;
    color: var(--clr-text-muted);
    margin-bottom: 50px;
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
    color: var(--clr-text-main);
}

.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--clr-gold);
}

/* ==========================================================================
   Form Side
   ========================================================================== */
.form-side {
    flex: 1;
    background: var(--clr-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.form-container {
    width: 100%;
    max-width: 600px;
    background: var(--clr-panel);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 28px;
    color: var(--clr-white);
    margin-bottom: 10px;
}

.form-header p {
    font-size: 15px;
    color: var(--clr-text-muted);
}

.form-header strong {
    color: var(--clr-gold);
}

.pro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-text-muted);
    margin-left: 2px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(7, 14, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--clr-white);
    font-family: var(--font-main);
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(160, 174, 192, 0.4);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    background: rgba(7, 14, 32, 0.8);
    box-shadow: 0 0 0 3px rgba(207, 168, 110, 0.1);
}

.file-input {
    padding: 12px 15px !important;
    background: rgba(7, 14, 32, 0.3) !important;
    color: var(--clr-text-muted) !important;
}

.file-input::-webkit-file-upload-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    color: var(--clr-white);
    margin-right: 15px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.file-input::-webkit-file-upload-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-gold), #b38b55);
    color: var(--clr-dark);
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(207, 168, 110, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(207, 168, 110, 0.3);
    background: linear-gradient(135deg, var(--clr-gold-light), var(--clr-gold));
}

.btn-primary.loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.privacy-note {
    font-size: 12px;
    text-align: center;
    color: var(--clr-text-muted);
    margin-top: 10px;
}

.error-alert {
    background: rgba(252, 129, 129, 0.1);
    border: 1px solid var(--clr-error);
    color: var(--clr-error);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ==========================================================================
   Success State
   ========================================================================== */
.success-message {
    text-align: center;
    padding: 30px 10px;
    animation: fadeInUp 0.5s ease;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(104, 211, 145, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--clr-success);
}

.icon-circle svg {
    width: 40px;
    height: 40px;
}

.success-message h2 {
    font-size: 32px;
    color: var(--clr-white);
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: var(--clr-text-muted);
    margin-bottom: 35px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--clr-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
}

@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .split-layout {
        flex-direction: column;
    }
    
    .visual-side {
        padding: 40px 20px;
        min-height: 50vh;
    }
    
    .visual-content h1 {
        font-size: 36px;
    }
    
    .form-side {
        padding: 40px 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .main-nav {
        height: auto;
        padding: 20px 0; /* Reset top padding since we don't need to dodge scrollbars anymore */
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
        overflow-x: visible; /* reset */
    }

    .focustrend-logo {
        max-height: 45px;
        flex-shrink: 0;
        z-index: 101; /* Keep above overlay */
        position: relative;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transform: translateY(-100%); /* Start completely off-screen top */
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s;
        z-index: 100;
    }

    .nav-open .nav-links {
        transform: translateY(0);
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 22px;
        font-weight: 500;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s ease;
    }
    
    .nav-open .nav-links a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger fade-in links */
    .nav-open .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-open .nav-links a:nth-child(2) { transition-delay: 0.15s; }
    .nav-open .nav-links a:nth-child(3) { transition-delay: 0.2s; }
    .nav-open .nav-links a:nth-child(4) { transition-delay: 0.25s; }
    .nav-open .nav-links a:nth-child(5) { transition-delay: 0.3s; }
    .nav-open .nav-links a:nth-child(6) { transition-delay: 0.35s; }
    
    .split-layout {
        padding-top: 100px; 
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
