/* Support form for embedding in a customer portal. */
body.support-embed {
    margin: 0;
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(236, 46, 94, 0.12), transparent 55%),
        #f4f1ec;
    color: #1a1a1a;
    font-family: Inter, "Segoe UI", sans-serif;
}

.support-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.support-card {
    background: #fff;
    border-radius: 18px;
    border-top: 4px solid #EC2E5E;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
    padding: 1.6rem 1.4rem 1.4rem;
}

.support-brand {
    display: block;
    height: 34px;
    width: auto;
    margin-bottom: 1rem;
}

.support-card h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.support-card .lede {
    margin: 0 0 1.25rem;
    color: #5c574f;
    line-height: 1.5;
}

.support-card .lede a {
    color: #8B1538;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

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

.support-card label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 650;
}

.required {
    color: #EC2E5E;
}

.support-card input,
.support-card select,
.support-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e6e1da;
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    font: inherit;
    background: #faf8f5;
    color: inherit;
}

.support-card input:focus,
.support-card select:focus,
.support-card textarea:focus {
    outline: 2px solid rgba(236, 46, 94, 0.28);
    border-color: #EC2E5E;
    background: #fff;
}

.support-card select:disabled {
    opacity: 0.65;
}

.checkbox-group,
.support-card .form-group label:has(input[type="checkbox"]) {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-weight: 500;
}

.support-card .consent-switch {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 0.2rem;
}

.support-card .consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.support-card .switch-ui {
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    margin-top: 0.05rem;
    border-radius: 999px;
    background: #e4dfd8;
    position: relative;
    cursor: pointer;
    transition: background 0.16s ease;
}

.support-card .switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
    transition: transform 0.16s ease;
}

.support-card .consent-switch input:checked + .switch-ui {
    background: #EC2E5E;
}

.support-card .consent-switch input:checked + .switch-ui::after {
    transform: translateX(20px);
}

.support-card .consent-switch input:focus-visible + .switch-ui {
    outline: 2px solid #8B1538;
    outline-offset: 3px;
}

.support-card .switch-copy {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    color: #2a2724;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.support-card button[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #EC2E5E;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 0.85rem 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(236, 46, 94, 0.28);
}

.support-card button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: progress;
}

.form-message,
#supportSuccess {
    margin: 0 0 1rem;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    line-height: 1.5;
}

.form-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-message.success,
#supportSuccess {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.form-message p,
#supportSuccess p {
    margin: 0 0 0.45rem;
}

.form-message p:last-child,
#supportSuccess p:last-child {
    margin-bottom: 0;
}

.support-help {
    margin-top: 0;
    background: #fff;
    border-radius: 18px;
    padding: 1.35rem 1.3rem 1.2rem;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}

.support-help h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.support-help .help-lede,
.support-help .help-meta {
    margin: 0 0 0.9rem;
    color: #5c574f;
    line-height: 1.5;
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.help-card {
    border: 1px solid rgba(22, 20, 18, 0.1);
    border-radius: 12px;
    padding: 0.9rem 0.95rem;
}

.help-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.help-card p {
    margin: 0 0 0.35rem;
    line-height: 1.45;
}

.support-help a:not(.btn-mail),
.support-card .switch-copy a {
    color: #8B1538;
}

.support-help a:not(.btn-mail):visited,
.support-card .switch-copy a:visited {
    color: #8B1538;
}

.support-help a:not(.btn-mail):hover,
.support-card .switch-copy a:hover {
    color: #EC2E5E;
}

.help-card a {
    font-weight: 700;
}

.help-card .btn-mail,
.help-card .btn-mail:visited,
.help-card .btn-mail:hover {
    display: inline-block;
    margin-top: 0.45rem;
    background: #EC2E5E;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
}

.help-card .btn-mail:hover {
    background: #d42552;
}

.support-faq details {
    border-top: 1px solid rgba(22, 20, 18, 0.08);
}

.support-faq summary {
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.support-faq summary::-webkit-details-marker { display: none; }

.support-faq summary::after {
    content: "+";
    color: #EC2E5E;
    font-size: 1.2rem;
    line-height: 1;
}

.support-faq details[open] summary::after { content: "\2013"; }

.support-faq details p {
    margin: 0 0 0.85rem;
    color: #3f3b36;
    line-height: 1.55;
}

.support-faq a,
.support-faq a:visited { color: #8B1538; }

.support-faq a:hover { color: #EC2E5E; }

@media (max-width: 860px) {
    .support-wrap {
        grid-template-columns: 1fr;
    }
}

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