/* QSMK Volunteers – scoped frontend styles only */

.qsmk-volunteer {
    background: #f4f4f4;
    padding: calc(var(--qsmk-header-offset, 112px) + 16px) 0 84px;
}

.qsmk-volunteer__inner {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
}

.qsmk-volunteer__header {
    margin-bottom: 24px;
}

.qsmk-volunteer__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--qsmk-red, #e30613);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qsmk-volunteer__title {
    margin: 0;
    color: #1c1c1c;
    font-size: 38px;
    line-height: 1.18;
    font-weight: 700;
}

.qsmk-volunteer__text {
    max-width: 720px;
    margin: 12px 0 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.75;
}

.qsmk-volunteer__notice {
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid transparent;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.qsmk-volunteer__notice--success {
    border-color: rgba(22, 163, 74, 0.28);
    color: #166534;
}

.qsmk-volunteer__notice--error {
    border-color: rgba(227, 6, 19, 0.28);
    color: var(--qsmk-red, #e30613);
}

.qsmk-volunteer__form {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 30px;
}

.qsmk-volunteer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.qsmk-volunteer__field,
.qsmk-volunteer__fieldset {
    display: block;
    margin: 0 0 20px;
}

.qsmk-volunteer__field--wide {
    grid-column: 1 / -1;
}

.qsmk-volunteer__field span,
.qsmk-volunteer__fieldset legend {
    display: block;
    margin: 0 0 8px;
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
}

.qsmk-volunteer__field b,
.qsmk-volunteer__fieldset b {
    color: var(--qsmk-red, #e30613);
}

.qsmk-volunteer__field input,
.qsmk-volunteer__field textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #222222;
    font-size: 15px;
    line-height: 1.45;
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.qsmk-volunteer__field input {
    min-height: 50px;
    padding: 0 14px;
}

.qsmk-volunteer__field textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.qsmk-volunteer__field input:focus,
.qsmk-volunteer__field textarea:focus {
    border-color: var(--qsmk-red, #e30613);
    background: #fff;
}

.qsmk-volunteer__fieldset {
    min-width: 0;
    border: 1px solid #ececec;
    padding: 18px;
}

.qsmk-volunteer__fieldset legend {
    width: auto;
    padding: 0 8px;
    margin-left: -8px;
}

.qsmk-volunteer__options {
    display: grid;
    gap: 10px 16px;
}

.qsmk-volunteer__options--radio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qsmk-volunteer__options--checkbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qsmk-volunteer__option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #2b2b2b;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.qsmk-volunteer__option input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: var(--qsmk-red, #e30613);
}

.qsmk-volunteer__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.qsmk-volunteer__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--qsmk-red, #e30613);
    border-radius: 0;
    background: var(--qsmk-red, #e30613);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.qsmk-volunteer__submit:hover,
.qsmk-volunteer__submit:focus {
    background: var(--qsmk-red-dark, #c8050f);
    border-color: var(--qsmk-red-dark, #c8050f);
    color: #ffffff;
}

.qsmk-volunteer__hidden-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

@media screen and (max-width: 767px) {
    .qsmk-volunteer {
        padding: calc(var(--qsmk-header-offset, 104px) + 12px) 0 60px;
    }

    .qsmk-volunteer__inner {
        width: min(100% - 24px, 1040px);
    }

    .qsmk-volunteer__title {
        font-size: 28px;
    }

    .qsmk-volunteer__text {
        font-size: 15px;
        line-height: 1.7;
    }

    .qsmk-volunteer__form {
        padding: 18px;
    }

    .qsmk-volunteer__grid,
    .qsmk-volunteer__options--radio,
    .qsmk-volunteer__options--checkbox {
        grid-template-columns: 1fr;
    }

    .qsmk-volunteer__fieldset {
        padding: 14px;
    }

    .qsmk-volunteer__submit {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1175px) {
    .qsmk-volunteer {
        padding: calc(var(--qsmk-header-offset, 120px) + 14px) 0 72px;
    }

    .qsmk-volunteer__title {
        font-size: 32px;
    }

    .qsmk-volunteer__options--radio,
    .qsmk-volunteer__options--checkbox {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
