:root {
    --griffin-bg: #0f0f0f;
    --griffin-text: #ffffff;
    --griffin-accent: #fec81d;
    --griffin-dim: rgba(255, 255, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
}

.connect-page {
    background-color: var(--griffin-bg);
    color: var(--griffin-text);
}

.connect-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10rem 5% 5rem;
    box-sizing: border-box;
}

.connect-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 2rem;
}

.connect-hero-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.reveal-text {
    font-family: "Instrument Serif", serif;
    font-size: clamp(8rem, 20vw, 24rem);
    line-height: 0.75;
    color: var(--griffin-text);
    z-index: 1;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    margin: 0;
    transform: translateY(40px);
}

.connect-form-side {
    display: flex;
    justify-content: flex-start;
    padding-left: 2rem;
}

/* Form Card Wrapper & Animation */
.form-card-wrapper {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    perspective: 1000px;
    opacity: 0;
    transform: scale(0.9) translateY(-60px);
}

.form-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    padding: 3.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--griffin-accent);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-text h3 {
    font-family: "Instrument Serif", serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.header-text p {
    font-size: 0.9rem;
    color: var(--griffin-dim);
}

/* Conversational Form Style */
.connect-form {
    font-display: swap;
}

.form-row {
    font-family: "Instrument Serif", serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: var(--griffin-text);
    margin-bottom: 0.5rem;
    display: block;
}

.inline-input {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Instrument Serif", serif;
    font-size: inherit;
    color: var(--griffin-accent);
    padding: 0 0.5rem;
    width: auto;
    min-width: 150px;
    outline: none;
    transition: border-bottom 0.3s ease;
}

.inline-input:focus {
    border-bottom: 1px solid var(--griffin-accent);
}

.inline-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.select-wrapper {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.inline-select {
    background: none;
    border: none;
    font-family: "Instrument Serif", serif;
    font-size: inherit;
    color: var(--griffin-accent);
    outline: none;
    cursor: pointer;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--griffin-dim);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--griffin-text);
}

.submit-btn {
    background: var(--griffin-accent);
    border: none;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: "Instrument Sans", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(254, 200, 29, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 1100px) {
    .connect-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .connect-hero-side {
        align-items: center;
        text-align: center;
    }

    .connect-form-side {
        justify-content: flex-start;
        /* Move card to left */
        padding-left: 0;
        /* Remove extra buffer */
        margin-left: -2%;
        /* Pull slightly more left if needed */
    }

    .reveal-text {
        font-size: clamp(4rem, 15vw, 10rem);
    }

    .form-card {
        padding: 2.5rem;
        max-width: 90vw;
    }
}

@media (max-width: 768px) {
    .connect-container {
        padding: 4rem 5% 4rem;
        /* Further reduced top padding to move text up */
        align-items: flex-start;
    }

    .connect-grid-layout {
        gap: 5rem;
        /* Increased gap to push card down */
    }

    .reveal-text {
        font-size: clamp(3.5rem, 12vw, 6rem);
        /* Smaller title */
        line-height: 0.9;
    }

    .form-card {
        padding: 1.5rem;
        /* Reduced card padding */
        border-radius: 1.5rem;
    }

    .card-header {
        margin-bottom: 2rem;
    }

    .profile-img {
        width: 50px;
        height: 50px;
    }

    .header-text h3 {
        font-size: 1.5rem;
    }

    .form-row {
        font-size: 1.2rem;
        /* Readable font size */
        line-height: 1.6;
    }

    .inline-input {
        min-width: 80px;
        font-size: 1.2rem;
        width: 100%;
        /* Full width inputs on mobile often looking better or at least auto */
        display: inline-block;
    }

    .select-wrapper {
        display: inline-block;
    }

    .form-footer {
        margin-top: 2rem;
    }

    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .card-header {
        margin-bottom: 2rem;
    }

    .form-row {
        font-size: 1.4rem;
    }

    .inline-input {
        min-width: 100px;
    }

    .form-footer {
        margin-top: 3rem;
    }
}