/* Shared Mayana question form. Used unchanged by the page modal and Shadow DOM panel. */
.mayana-qform {
    --mayana-qform-gold: #A88745;
    --mayana-qform-gold-hover: #876a34;
    --mayana-qform-text: #2b221a;
    --mayana-qform-muted: #8d8176;
    display: block;
    width: 100%;
    margin: 0;
    color: var(--mayana-qform-text);
    font-family: Inter, Arial, sans-serif;
    box-sizing: border-box;
}

.mayana-qform *,
.mayana-qform *::before,
.mayana-qform *::after {
    box-sizing: border-box;
}

.mayana-qform [hidden] {
    display: none !important;
}

.mayana-qform__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 0 8px;
    color: var(--mayana-qform-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.mayana-qform__label--question {
    margin-top: 16px;
}

.mayana-qform__hint {
    color: var(--mayana-qform-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.mayana-qform__hint b {
    color: var(--mayana-qform-gold);
    font-weight: 800;
}

.mayana-qform__select-wrap {
    position: relative;
    width: 100%;
}

.mayana-qform__select,
.mayana-qform__textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: var(--mayana-qform-text);
    background: #fff;
    border: 1px solid #ddcfbc;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 10px rgba(44, 31, 18, .04);
    outline: 0;
    font-family: inherit;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.mayana-qform__select {
    height: 50px;
    padding: 0 42px 0 48px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 13px;
}

.mayana-qform__select-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    width: 23px;
    height: 23px;
    color: var(--mayana-qform-gold);
    pointer-events: none;
    transform: translateY(-50%);
}

.mayana-qform__select-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mayana-qform__chevron {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--mayana-qform-gold);
    border-bottom: 2px solid var(--mayana-qform-gold);
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.mayana-qform__textarea {
    min-height: 118px;
    padding: 14px 15px;
    resize: vertical;
    overflow: auto;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    white-space: pre-wrap;
}

.mayana-qform__textarea::placeholder {
    color: #aaa095;
    opacity: 1;
}

.mayana-qform__select:focus,
.mayana-qform__textarea:focus {
    border-color: var(--mayana-qform-gold);
    box-shadow: 0 0 0 3px rgba(168, 135, 69, .12), 0 6px 15px rgba(44, 31, 18, .05);
}

.mayana-qform__error {
    display: block;
    margin: 9px 0 0;
    padding: 10px 12px;
    color: #842f24;
    background: #fff4f2;
    border-left: 3px solid #b93b31;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.45;
}

.mayana-qform__member-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 13px 0 0;
    padding: 11px 12px;
    color: #4b3c25;
    background: rgba(168, 135, 69, .10);
    border: 1px solid rgba(168, 135, 69, .35);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.mayana-qform__member-icon {
    display: inline-grid;
    flex: 0 0 20px;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #fff;
    background: var(--mayana-qform-gold);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.mayana-qform__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    margin: 14px 0 0;
    padding: 12px 16px;
    color: #fff;
    background: var(--mayana-qform-gold);
    border: 1px solid rgba(168, 135, 69, .45);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(30, 21, 14, .14);
    outline: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
    appearance: none;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.mayana-qform__submit:hover,
.mayana-qform__submit:focus-visible {
    background: var(--mayana-qform-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(30, 21, 14, .18);
}

.mayana-qform__submit:focus-visible {
    outline: 3px solid rgba(168, 135, 69, .30);
    outline-offset: 2px;
}

.mayana-qform__submit:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.mayana-qform__submit svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .mayana-qform__label {
        font-size: 12px;
    }

    .mayana-qform__select {
        height: 47px;
        font-size: 12.5px;
    }

    .mayana-qform__textarea {
        min-height: 100px;
        font-size: 14px;
    }

    .mayana-qform__member-notice {
        font-size: 11px;
    }

    .mayana-qform__submit {
        min-height: 48px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mayana-qform *,
    .mayana-qform *::before,
    .mayana-qform *::after {
        transition: none;
        scroll-behavior: auto;
    }
}
