@import url('./global.css');

.helpdesk-page {
    background:
        linear-gradient(180deg, rgba(1, 37, 130, 0.08) 0%, rgba(1, 37, 130, 0) 24rem),
        #f7faff;
}

.helpdesk-shell {
    max-width: 1240px;
    margin-inline: auto;
}

.helpdesk-stack {
    max-width: 860px;
    margin-inline: auto;
}

.helpdesk-header {
    max-width: 100ch;
    margin: 0 auto 2rem;
    text-align: center;
}

.helpdesk-kicker {
    margin-bottom: 0.75rem;
    color: var(--secondary-clr);
    font-size: var(--small-text-size);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.helpdesk-title {
    margin-bottom: 1rem;
}

.helpdesk-intro {
    margin: 0 auto;
    max-width: 70ch;
}

.helpdesk-panel {
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(1, 37, 130, 0.08);
}

.helpdesk-stack .helpdesk-panel + .helpdesk-panel {
    margin-top: 1.5rem;
}

.helpdesk-panel--info {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--primary-clr);
    color: var(--white);
    padding: 1.5rem;
}

.helpdesk-panel--form {
    background: var(--white);
    padding: 1.5rem;
}

.helpdesk-checklist {
    margin: 1.25rem 0 0;
    padding-left: 1.5rem;
}

.helpdesk-checklist li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
    list-style-type: disc;
}

.helpdesk-note {
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.helpdesk-note-title {
    margin-bottom: 0.5rem;
}

.helpdesk-panel-copy {
    margin-bottom: 1.5rem;
}

.helpdesk-panel-text {
    max-width: 65ch;
}

.helpdesk-form .label {
    color: var(--primary-clr);
    font-size: var(--normal-text-size);
    font-weight: 700;
}

.helpdesk-form .field {
    margin-bottom: 0.5rem;
}

.helpdesk-form .field.is-horizontal .field-body.columns {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.helpdesk-form .field.is-horizontal .field-body.columns > .column {
    padding-top: 0;
    padding-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.helpdesk-form .input,
.helpdesk-form .textarea,
.helpdesk-form .select select {
    min-height: 3rem;
    border: 1px solid rgba(1, 37, 130, 0.16);
    border-radius: 12px;
    box-shadow: none;
    color: var(--black);
}

.helpdesk-form .textarea {
    min-height: 10rem;
}

.helpdesk-form .input::placeholder,
.helpdesk-form .textarea::placeholder {
    color: #6d7c9c;
    opacity: 1;
}

.helpdesk-form .input:focus,
.helpdesk-form .textarea:focus,
.helpdesk-form .select select:focus {
    border-color: var(--secondary-clr);
    box-shadow: 0 0 0 0.2rem rgba(0, 154, 195, 0.14);
}

.helpdesk-choice-group {
    display: grid;
    /* gap: 0.75rem; */
    margin-top: 0.2rem;
}

.helpdesk-choice-group[aria-label="Sex"] {
    grid-template-columns: repeat(auto-fit, minmax(2.5rem, max-content));
}

.helpdesk-choice-group[aria-label="Client Type"] {
    grid-template-columns: repeat(auto-fit, minmax(2.5rem, max-content));
}

.helpdesk-choice {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.65rem 0.95rem;
    background: #f4f7ff;
    border: 1px solid rgba(1, 37, 130, 0.12);
    border-radius: 999px;
    color: var(--primary-clr);
    font-weight: 600;
}

.helpdesk-choice input {
    accent-color: var(--secondary-clr);
}

.helpdesk-form .helpdesk-file-field {
    margin-bottom: 0;
}

.helpdesk-file-field .file-label {
    width: 100%;
}

.helpdesk-file-field .file-cta,
.helpdesk-file-field .file-name {
    min-height: 3rem;
    border-radius: 12px;
}

.helpdesk-file-field .file-cta {
    background: #f4f7ff;
    border: 1px solid rgba(1, 37, 130, 0.12);
    color: var(--primary-clr);
}

.helpdesk-file-field .file-name {
    border: 1px solid rgba(1, 37, 130, 0.12);
    color: #4e5b78;
}

.helpdesk-field-note {
    margin-top: 0.35rem;
    color: #5f6f8e;
    font-size: var(--small-text-size);
    line-height: 1.5;
}

.helpdesk-inline-status {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.helpdesk-inline-status.is-success {
    background: rgba(78, 221, 185, 0.18);
    color: #0f6e49;
}

.helpdesk-inline-status.is-error {
    background: rgba(241, 70, 104, 0.12);
    color: #9b1739;
}

.helpdesk-submit-wrap {
    display: flex;
    align-items: center;
}

.helpdesk-submit-button {
    min-height: 3rem;
    padding-inline: 1.4rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
}

.helpdesk-submit-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.helpdesk-form .cf-turnstile {
    display: inline-block;
    max-width: 100%;
}

@media screen and (max-width: 1024px) {
    .helpdesk-panel--info,
    .helpdesk-panel--form {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .helpdesk-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .helpdesk-panel {
        border-radius: 14px;
    }

    .helpdesk-choice-group,
    .helpdesk-choice-group[aria-label="Sex"],
    .helpdesk-choice-group[aria-label="Client Type"] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .helpdesk-choice {
        justify-content: flex-start;
        border-radius: 12px;
    }
}

@media screen and (max-width: 480px) {
    .helpdesk-shell {
        padding-inline: 1rem !important;
    }

    .helpdesk-panel--info,
    .helpdesk-panel--form {
        padding: 1.1rem;
    }

    .helpdesk-submit-wrap {
        width: 100%;
    }

    .helpdesk-submit-button {
        width: 100%;
        justify-content: center;
    }
}
