.fsm-form-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid #d7dde7;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.fsm-form-wrapper *,
.fsm-form-wrapper *::before,
.fsm-form-wrapper *::after {
    box-sizing: border-box;
}

.fsm-form {
    display: grid;
    gap: 24px;
}

.fsm-grid {
    display: grid;
    gap: 20px;
}

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

.fsm-field label,
.fsm-dummy-block label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1f2937;
}

.fsm-field input,
.fsm-field select,
.fsm-field textarea,
.fsm-dummy-block textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bcc8d8;
    border-radius: 12px;
    background: #fff;
}

.fsm-damage-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.fsm-dummy-block {
    padding: 20px;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 16px;
}

.fsm-dummy-block h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #0f172a;
}

.fsm-clickable-image {
    position: relative;
    display: inline-block;
    cursor: crosshair;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d7dde7;
    background: #fff;
}

.fsm-clickable-image img,
.fsm-clickable-image svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.fsm-marker {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: #cc1f1a;
    color: #fff;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(204, 31, 26, 0.3);
}

.fsm-primary-button,
.fsm-secondary-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
}

.fsm-primary-button {
    background: #0b63ce;
    color: #fff;
    justify-self: start;
}

.fsm-secondary-button {
    background: #eef4fb;
    color: #0b63ce;
    margin: 14px 0 18px;
}

.fsm-notice {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
}

.fsm-notice-success {
    background: #e8f7eb;
    color: #166534;
}

.fsm-notice-error {
    background: #fdecec;
    color: #b42318;
}

.fsm-hint {
    margin: 8px 0 0;
    color: #475467;
    font-size: 14px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 800px) {
    .fsm-form-wrapper {
        padding: 20px;
    }

    .fsm-grid-2,
    .fsm-damage-section {
        grid-template-columns: 1fr;
    }
}
