.moska-form-wrap,
.moska-form-wrap * {
    box-sizing: border-box;
}

.moska-form-wrap {
    width: 100%;
    max-width: 980px;
    margin: 28px auto;
    font-family: inherit;
}

.moska-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 28px;
    color: #111827;
}

.moska-form-message {
    max-width: 980px;
    margin: 20px auto;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
}

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

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

.moska-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}

.moska-progress__item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.moska-progress__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 13px;
}

.moska-progress__item.is-active,
.moska-progress__item.is-complete {
    background: #f3ede4;
    color: #5d3a16;
}

.moska-progress__item.is-active span,
.moska-progress__item.is-complete span {
    background: #8a5a2b;
    color: #ffffff;
}

.moska-step {
    display: none;
}

.moska-step.is-active {
    display: block;
}

.moska-step__head {
    margin-bottom: 24px;
}

.moska-kicker {
    margin: 0 0 6px;
    color: #8a5a2b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.moska-step h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
    color: #111827;
}

.moska-step__head p:not(.moska-kicker) {
    margin: 0;
    color: #6b7280;
}

.moska-section-title {
    margin: 26px 0 14px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.moska-label,
.moska-field label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 800;
}

.moska-label span,
.moska-field label span,
.moska-consent strong {
    color: #b45309;
}

.moska-help,
.moska-note {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.moska-note {
    margin: -4px 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #713f12;
}

.moska-check-grid,
.moska-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.moska-choice,
.moska-consent,
.moska-service-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.moska-choice {
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.moska-choice:hover,
.moska-choice:has(input:checked) {
    border-color: #8a5a2b;
    background: #fffaf4;
    box-shadow: 0 8px 20px rgba(138, 90, 43, 0.1);
}

.moska-choice input,
.moska-consent input,
.moska-service-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 18px;
    accent-color: #8a5a2b;
}

.moska-choice span,
.moska-consent span,
.moska-service-check span {
    min-width: 0;
    line-height: 1.35;
}

.moska-grid {
    display: grid;
    gap: 16px;
}

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

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

.moska-field,
.moska-field--full {
    min-width: 0;
}

.moska-field input,
.moska-field textarea,
.moska-alt-date-row input,
.moska-service-detail {
    width: 100%;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    padding: 12px 13px;
    line-height: 1.35;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.moska-field input:focus,
.moska-field textarea:focus,
.moska-alt-date-row input:focus,
.moska-service-detail:focus {
    border-color: #8a5a2b;
    box-shadow: 0 0 0 4px rgba(138, 90, 43, 0.12);
}

.moska-field textarea {
    resize: vertical;
}

.moska-inline-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moska-inline-input input {
    flex: 1 1 auto;
}

.moska-inline-input span {
    flex: 0 0 auto;
    color: #6b7280;
    font-weight: 700;
}

.moska-alt-dates {
    margin-top: 18px;
}

.moska-alt-date-list {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.moska-alt-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.moska-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #d6c4ae;
    border-radius: 999px;
    background: #fffaf4;
    color: #5d3a16;
    font: inherit;
    font-weight: 800;
    padding: 8px 13px;
    cursor: pointer;
}

.moska-small-btn--remove {
    width: 38px;
    padding: 0;
    flex: 0 0 38px;
    font-size: 22px;
    line-height: 1;
}

.moska-service-list {
    display: grid;
    gap: 10px;
}

.moska-service-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.moska-service-detail:disabled {
    opacity: 0.5;
    background: #f3f4f6;
}

.moska-consents {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 16px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.moska-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.moska-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 900;
    padding: 12px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.moska-btn:hover {
    transform: translateY(-1px);
}

.moska-btn--primary {
    background: #8a5a2b;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(138, 90, 43, 0.22);
}

.moska-btn--primary:hover {
    background: #75491f;
}

.moska-btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.moska-has-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.moska-error-text {
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
}


.moska-event-other-field {
    margin-top: 14px;
}

.moska-event-other-field[hidden] {
    display: none !important;
}

.moska-grid--contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.moska-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 12px;
}

.moska-layout-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 150px;
    padding: 15px 12px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.moska-layout-choice:hover,
.moska-layout-choice:has(input:checked) {
    border-color: #8a5a2b;
    background: #fffaf4;
    box-shadow: 0 10px 24px rgba(138, 90, 43, 0.12);
}

.moska-layout-choice:hover {
    transform: translateY(-1px);
}

.moska-layout-choice input {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #8a5a2b;
}

.moska-layout-title {
    display: block;
    min-width: 0;
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
}

.moska-layout-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 76px;
    margin-top: 8px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.moska-icon-stage {
    position: absolute;
    top: 9px;
    left: 24px;
    right: 24px;
    height: 5px;
    border-radius: 999px;
    background: #8a5a2b;
}

.moska-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 7px);
    gap: 5px 6px;
    margin-top: 12px;
}

.moska-icon-grid span,
.moska-icon-party span {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #11385c;
}

.moska-icon-school {
    display: grid;
    grid-template-columns: repeat(3, 20px);
    gap: 9px 7px;
}

.moska-icon-school span {
    position: relative;
    display: block;
    width: 20px;
    height: 12px;
}

.moska-icon-school span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2px;
    width: 16px;
    height: 5px;
    border-radius: 2px;
    background: #8a5a2b;
}

.moska-icon-school span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 6px;
    width: 8px;
    height: 6px;
    border-radius: 2px;
    background: #11385c;
}

.moska-icon-banquet {
    display: grid;
    grid-template-columns: repeat(2, 32px);
    gap: 10px 8px;
}

.moska-icon-banquet > span {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    margin: 2px;
    border-radius: 50%;
    background: #8a5a2b;
}

.moska-icon-banquet > span i {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #11385c;
}

.moska-icon-banquet > span i:nth-child(1) {
    top: -5px;
    left: 11px;
}

.moska-icon-banquet > span i:nth-child(2) {
    right: -5px;
    top: 11px;
}

.moska-icon-banquet > span i:nth-child(3) {
    bottom: -5px;
    left: 11px;
}

.moska-icon-banquet > span i:nth-child(4) {
    left: -5px;
    top: 11px;
}

.moska-icon-party {
    display: grid;
    grid-template-columns: repeat(4, 9px);
    gap: 7px 8px;
}

.moska-icon-party span {
    border-radius: 2px;
}

.moska-icon-party span:nth-child(3n) {
    width: 11px;
    height: 11px;
    background: #8a5a2b;
}

.moska-icon-party span:nth-child(4n) {
    border-radius: 50%;
}

.moska-icon-empty {
    position: relative;
    display: block;
    width: 58px;
    height: 42px;
    border: 2px solid #11385c;
    border-radius: 8px;
}

.moska-icon-empty::before,
.moska-icon-empty::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 19px;
    height: 3px;
    border-radius: 999px;
    background: #8a5a2b;
}

.moska-icon-empty::before {
    transform: rotate(32deg);
}

.moska-icon-empty::after {
    transform: rotate(-32deg);
}

@media (max-width: 760px) {
    .moska-form-wrap {
        margin: 18px auto;
    }

    .moska-form {
        padding: 18px;
        border-radius: 16px;
    }

    .moska-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .moska-check-grid,
    .moska-radio-grid,
    .moska-radio-grid--compact,
    .moska-grid--2,
    .moska-grid--3,
    .moska-grid--contact,
    .moska-service-row {
        grid-template-columns: 1fr;
    }

    .moska-service-row {
        align-items: stretch;
    }

    .moska-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .moska-layout-choice {
        min-height: 142px;
    }

    .moska-actions {
        flex-direction: column-reverse;
    }

    .moska-btn {
        width: 100%;
    }

    .moska-inline-input {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }
}
