* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}

.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
}

.card,
.notice {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    padding: 22px;
    margin-bottom: 18px;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

h2 {
    margin-top: 0;
    font-size: 20px;
}

.lead,
.hint {
    color: #5b6773;
    line-height: 1.5;
}

.price-box {
    margin-top: 18px;
    border-top: 1px solid #e3e8ef;
    padding-top: 18px;
}

.price-list-image,
.measure-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
}

.missing-image {
    border: 1px dashed #b8c2cc;
    border-radius: 10px;
    padding: 20px;
    color: #6b7280;
    background: #f9fafb;
}

fieldset {
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 18px;
}

legend {
    font-weight: 700;
    padding: 0 8px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #b8c2cc;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

textarea {
    resize: vertical;
}

.check,
.radio {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.4;
}

.check input,
.radio input {
    margin-top: 2px;
}

.strong {
    font-weight: 700;
}

.radio-row {
    display: grid;
    gap: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.measure-block {
    display: none;
    background: #f9fbfd;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.measure-block.active {
    display: block;
}

.warning-box {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 16px 22px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    background: #3D7E8B;
    color: #fff;
}

.submit-button:hover {
    background: #346D78;
}

.notice.success {
    border-left: 6px solid #2f9e44;
}

.notice.error {
    border-left: 6px solid #e03131;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.link-button {
    border: 0;
    background: none;
    color: #0057b8;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
    font-weight: 700;
}

.file-info {
    margin-top: 10px;
    color: #5b6773;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.55);
    padding: 20px;
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-panel {
    position: relative;
    width: min(900px, 100%);
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: 26px;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    border: 0;
    background: #1f2933;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    font-size: 24px;
    line-height: 32px;
    cursor: pointer;
}

.modal-content {
    line-height: 1.6;
}

@media (max-width: 720px) {
    .page {
        padding: 12px;
    }

    .card,
    .notice {
        padding: 16px;
        border-radius: 10px;
    }

    h1 {
        font-size: 23px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 0;
    }

    .modal.open {
        align-items: flex-end;
    }

    .modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }
}


.survey-toggle {
    border: 2px solid #1f7ae0;
    background: #eef6ff;
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 18px;
}

.survey-toggle p {
    margin: 8px 0 0;
    color: #334155;
    line-height: 1.5;
}

.installation-middle {
    display: block;
}

.installation-middle.survey-hidden {
    display: none;
}

.measure-help {
    margin: 14px 0 16px;
    padding: 12px 14px;
    border-left: 4px solid #1f7ae0;
    background: #eef6ff;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.measure-help strong {
    color: #1f2933;
}

@media (max-width: 720px) {
    .measure-help {
        font-size: 13px;
        line-height: 1.5;
    }
}
