/* Originator Refer Deal Form Styles */

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-soft);
}

.required {
    color: #ef4444;
}

/* These are the last .form-select declarations in index.html link order, so at equal specificity
   they decide the box for every dropdown in the app. Two things they must not do:

   - never use the `background` shorthand — it resets background-image and wipes the chevron set in
     investor-profile-only.css. The same trap exists at 0-2-0 in the :focus rules of main.css,
     investor-express-interest-only.css and investor-profile-only.css, which outrank the chevron
     regardless of link order.
   - never drop the right-hand gutter — the shared padding above overrides the 2.5rem inset from
     entrepreneur-dealintake-only.css, and without it long option text runs under the arrow. */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-select {
    padding-right: 2.5rem;
    /* The `option` rule in investor-profile-only.css covers Chromium and Firefox; macOS Chrome and
       Safari ignore option background-color and need this to draw the native menu dark. */
    color-scheme: dark;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox span {
    font-size: 0.875rem;
    color: var(--color-text-soft);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--color-info);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}
