/* ==================== FORM BECOME AN EXPERT PAGE ==================== */

/* ==================== PAGE LAYOUT ==================== */
.hero-wrapper {
    position: relative;
}

.page-content {
    padding: 160px 48px 80px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
    justify-items: center;
    min-height: calc(100vh - 80px);
}

/* ==================== RIGHT SIDE — MESSAGING ==================== */
.hero-messaging {
    padding-top: 0;
    position: sticky;
    top: 120px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(129, 103, 234, 0.08);
    border: 1px solid rgba(129, 103, 234, 0.15);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-messaging h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-messaging p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
}

/* Trust Signals */
.trust-signals {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(129, 103, 234, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--violet);
}

.trust-text {
    font-size: 15px;
    color: var(--dark-text);
    font-weight: 500;
}

.trust-text span {
    color: var(--muted);
    font-weight: 400;
}

/* ==================== LEFT SIDE — FORM ==================== */
.form-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    width: 100%;
}

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

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group label .required {
    color: var(--accent-pink);
    margin-left: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(129, 103, 234, 0.15);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 15px;
    color: var(--dark-text);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: var(--light-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(129, 103, 234, 0.1), 0 2px 8px rgba(129, 103, 234, 0.08);
    background: #fff;
}

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

/* ==================== TAG INPUT ==================== */
.tag-input-wrapper {
    border-radius: 14px;
    border: 1.5px solid rgba(129, 103, 234, 0.15);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 50px;
    transition: all 0.3s ease;
    cursor: text;
}

.tag-input-wrapper:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(129, 103, 234, 0.1), 0 2px 8px rgba(129, 103, 234, 0.08);
    background: #fff;
}

.tag-input-wrapper.error {
    border-color: var(--accent-pink);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(129, 103, 234, 0.12) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: var(--violet);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    animation: tagIn 0.25s ease;
}

@keyframes tagIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tag-remove {
    background: none;
    border: none;
    color: var(--violet);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.tag-remove:hover {
    opacity: 1;
}

.tag-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--dark-text);
    flex: 1;
    min-width: 120px;
    padding: 4px 0;
}

.tag-input::placeholder {
    color: var(--light-muted);
}

.tag-hint {
    font-size: 12px;
    color: var(--light-muted);
    margin-top: 6px;
}

/* ==================== SUBMIT BUTTON ==================== */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #9333ea 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.25);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== FORM NOTE ==================== */
.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--light-muted);
    margin-top: 16px;
}

.form-note svg {
    width: 14px;
    height: 14px;
    stroke: var(--light-muted);
    vertical-align: -2px;
    margin-right: 4px;
}

/* ==================== ERROR MESSAGE ==================== */
.form-error {
    display: none;
    color: var(--accent-pink);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 107, 157, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.form-error.show {
    display: block;
}

/* ==================== SUCCESS STATE ==================== */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent-green);
}

.form-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.form-success p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .page-content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 140px 32px 60px;
    }

    .hero-messaging {
        position: static;
        text-align: center;
        order: -1;
    }

    .hero-messaging h1 {
        font-size: 40px;
    }

    .hero-messaging p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-signals {
        align-items: center;
    }

    .form-card {
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 120px 20px 40px;
    }

    .hero-messaging h1 {
        font-size: 32px;
    }

    .form-card {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
