/**
 * Join intake form refinement.
 * Scoped to the active form root to avoid changing other site forms.
 */

.moeen-intake-form {
    width: min(680px, 100%);
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(40, 215, 205, 0.16);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(40, 215, 205, 0.055), transparent 38%),
        rgba(4, 18, 24, 0.84);
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: none;
}

.moeen-intake-form::before,
.moeen-intake-form::after {
    content: none;
}

.moeen-intake-form__header {
    display: block;
    margin: 0 0 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.moeen-intake-form__eyebrow {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    margin: 0 0 8px;
    padding: 4px 10px;
    border: 1px solid rgba(242, 201, 107, 0.22);
    border-radius: 999px;
    color: rgba(242, 201, 107, 0.86);
    background: rgba(242, 201, 107, 0.055);
    font-size: 11px;
    font-weight: 700;
}

.moeen-intake-form__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(25px, 2.4vw, 31px);
    font-weight: 900;
    line-height: 1.35;
}

.moeen-intake-form__description {
    max-width: 530px;
    margin: 0;
    color: rgba(246, 250, 250, 0.62);
    font-size: 13.5px;
    line-height: 1.75;
}

.moeen-intake-form__form {
    display: block;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.moeen-intake-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 19px;
}

.moeen-intake-form__field {
    display: block;
    min-width: 0;
    margin: 0;
}

.moeen-intake-form__field--full {
    grid-column: 1 / -1;
}

.moeen-intake-form__label {
    display: block;
    margin: 0 0 8px;
    color: rgba(246, 250, 250, 0.86);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.moeen-intake-form .moeen-intake-form__control {
    width: 100%;
    min-height: 50px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 15px !important;
    color: #f6fafa !important;
    background: rgba(1, 12, 15, 0.64) !important;
    box-shadow: none !important;
    font: 600 14px/1.5 inherit;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.moeen-intake-form .moeen-intake-form__control::placeholder {
    color: rgba(246, 250, 250, 0.36);
    opacity: 1;
}

.moeen-intake-form .moeen-intake-form__control:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.moeen-intake-form .moeen-intake-form__control:focus,
.moeen-intake-form .moeen-intake-form__control:focus-visible {
    border-color: rgba(40, 215, 205, 0.45) !important;
    background: rgba(1, 14, 18, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(40, 215, 205, 0.08) !important;
    outline: none;
}

.moeen-intake-form .moeen-join-section__select-field {
    position: relative;
}

.moeen-intake-form .moeen-intake-form__select {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-start: 16px !important;
    padding-inline-end: 56px !important;
    cursor: pointer;
}

.moeen-intake-form .moeen-join-section__select-field::after {
    content: "";
    position: absolute;
    right: auto !important;
    left: 10px !important;
    inset-inline-start: auto !important;
    inset-inline-end: 10px !important;
    top: auto !important;
    bottom: 10px !important;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid rgba(40, 215, 205, 0.24) !important;
    border-radius: 10px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5' fill='none' stroke='%2328d7cd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 14px 14px no-repeat,
        rgba(40, 215, 205, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    opacity: 1;
    transform: none !important;
    pointer-events: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.moeen-intake-form .moeen-join-section__select-field:hover::after,
.moeen-intake-form .moeen-join-section__select-field:focus-within::after {
    border-color: rgba(40, 215, 205, 0.48) !important;
    background-color: rgba(40, 215, 205, 0.12);
    transform: translateY(1px) !important;
}

.moeen-intake-form .moeen-intake-form__textarea {
    min-height: 126px;
    padding: 14px 16px;
    line-height: 1.7;
    resize: vertical;
}

.moeen-intake-form__actions {
    margin-top: 24px;
}

.moeen-intake-form .moeen-intake-form__submit {
    width: 100%;
    min-height: 54px;
    margin: 0;
    border: 0;
    border-radius: 16px;
    color: #031216;
    background: linear-gradient(135deg, #29d8ce, #4ce8df);
    box-shadow: 0 14px 30px rgba(35, 198, 189, 0.14);
    font: 900 14.5px/1.2 inherit;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.moeen-intake-form .moeen-intake-form__submit:hover {
    filter: brightness(1.035);
    box-shadow: 0 16px 34px rgba(35, 198, 189, 0.18);
    transform: translateY(-1px);
}

.moeen-intake-form .moeen-intake-form__submit:focus-visible {
    outline: 3px solid rgba(40, 215, 205, 0.2);
    outline-offset: 4px;
}

.moeen-intake-form .moeen-join-section__alert.is-visible {
    margin-top: 18px;
}

@media (max-width: 700px) {
    .moeen-intake-form {
        padding: 21px 17px;
        border-radius: 22px;
    }

    .moeen-intake-form__header {
        margin-bottom: 22px;
    }

    .moeen-intake-form__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }

    .moeen-intake-form__field--full {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .moeen-intake-form *,
    .moeen-intake-form *::before,
    .moeen-intake-form *::after {
        transition-duration: 0.01ms;
    }
}

/* Final intake header + select polish */
.moeen-intake-form__header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "badge"
        "title"
        "desc";
    align-items: start;
    gap: 8px 14px;
}

.moeen-intake-form__eyebrow {
    grid-area: badge;
    align-self: start;
    justify-self: center;
    margin: 0 0 5px;
    padding: 6px 13px;
    border-color: rgba(242, 201, 107, 0.34);
    background:
        radial-gradient(circle at 20% 0%, rgba(242, 201, 107, 0.16), transparent 48%),
        rgba(242, 201, 107, 0.075);
    color: rgba(242, 201, 107, 0.96);
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1.25;
    box-shadow: 0 8px 22px rgba(217, 175, 85, 0.08);
}

.moeen-intake-form__title {
    grid-area: title;
    margin: 0;
    max-width: 330px;
}

.moeen-intake-form__description {
    grid-area: desc;
    margin-top: 2px;
}

[data-scope="moeen-join-section"] .moeen-intake-form.moeen-join-section__form-card:hover {
    transform: none;
    border-color: rgba(40, 215, 205, 0.16);
    background:
        radial-gradient(circle at 100% 0%, rgba(40, 215, 205, 0.055), transparent 38%),
        rgba(4, 18, 24, 0.84);
}

.moeen-intake-form .moeen-join-section__select-field {
    position: relative;
}

.moeen-intake-form .moeen-join-section__select-field::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset-inline-start: 14px;
    bottom: 13px;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 48%, rgba(53, 240, 227, 0.35), transparent 46%),
        rgba(53, 240, 227, 0.08);
    border: 1px solid rgba(53, 240, 227, 0.18);
    pointer-events: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.moeen-intake-form .moeen-intake-form__select {
    min-height: 54px;
    padding-inline-start: 50px !important;
    padding-inline-end: 18px !important;
    border-color: rgba(53, 240, 227, 0.18) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(7, 31, 39, 0.72), rgba(2, 13, 18, 0.78)) !important;
    color: #f7ffff !important;
    font-weight: 850;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 10px 26px rgba(0, 0, 0, 0.08) !important;
}

.moeen-intake-form .moeen-join-section__select-field::after {
    inset-inline-start: 10px !important;
    inset-inline-end: auto !important;
    left: 10px !important;
    right: auto !important;
    bottom: 12px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 12px;
    border-color: rgba(53, 240, 227, 0.30) !important;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath d='m3.75 5.55 3.75 3.75 3.75-3.75' fill='none' stroke='%234ee8df' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 15px 15px no-repeat,
        rgba(53, 240, 227, 0.075) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 18px rgba(53, 240, 227, 0.06);
}

.moeen-intake-form .moeen-join-section__select-field:hover::before,
.moeen-intake-form .moeen-join-section__select-field:focus-within::before {
    border-color: rgba(217, 175, 85, 0.30);
    background:
        radial-gradient(circle at 50% 48%, rgba(217, 175, 85, 0.30), transparent 46%),
        rgba(217, 175, 85, 0.08);
    transform: translateY(-1px);
}

.moeen-intake-form .moeen-join-section__select-field:hover::after,
.moeen-intake-form .moeen-join-section__select-field:focus-within::after {
    border-color: rgba(217, 175, 85, 0.44) !important;
    background-color: rgba(217, 175, 85, 0.09) !important;
    transform: translateY(-1px) !important;
}

.moeen-intake-form .moeen-intake-form__select:hover,
.moeen-intake-form .moeen-intake-form__select:focus {
    border-color: rgba(217, 175, 85, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(8, 36, 44, 0.78), rgba(2, 15, 20, 0.84)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 0 0 3px rgba(217, 175, 85, 0.045),
        0 12px 28px rgba(0, 0, 0, 0.10) !important;
}

.moeen-intake-form .moeen-intake-form__select option {
    background: #06151c;
    color: #efffff;
}

@media (max-width: 620px) {
    .moeen-intake-form__header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "badge"
            "title"
            "desc";
        text-align: start;
    }

    .moeen-intake-form__eyebrow {
        justify-self: center;
        margin: 0 0 5px;
    }

    .moeen-intake-form__title {
        max-width: none;
    }
}
