.consult-page {
    color: #333;
}

.consult-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 30px;
}

.consult-hero {
    padding: 38px 0 28px;
    text-align: center;
}

.consult-hero h1 {
    margin: 0 0 16px;
    font-size: 34px;
    line-height: 1.45;
}

.consult-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
}

.consult-preview-note {
    margin: 0 0 28px;
    padding: 12px 16px;
    border: 1px solid #d7c9ad;
    background: #fffaf0;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.consult-order-link {
    margin: -8px 0 28px;
    line-height: 1.7;
    text-align: right;
}

.consult-order-link a {
    color: #333;
    font-weight: bold;
    text-decoration: underline;
}

.consult-origin {
    margin: -12px 0 28px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

.consult-form {
    margin-bottom: 52px;
    padding: 34px 40px 40px;
    border: 1px solid #d9d4ca;
    background: #fff;
}

.consult-error-summary {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid #9c3d33;
    background: #fff7f5;
    color: #7a2e27;
    line-height: 1.7;
}

.consult-error-summary strong {
    display: block;
    margin-bottom: 4px;
}

.consult-error-summary span {
    display: block;
}

.consult-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.consult-field.is-error input,
.consult-field.is-error select,
.consult-field.is-error textarea,
.consult-field.is-error .consult-choice span {
    border-color: #9c3d33;
}

.consult-field-error {
    margin: 7px 0 0;
    color: #9c3d33;
    font-size: 13px;
    line-height: 1.6;
}

.consult-form-section + .consult-form-section {
    margin-top: 42px;
    padding-top: 36px;
    border-top: 1px solid #e5e1d9;
}

.consult-form-section > h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.5;
}

.consult-section-note {
    margin: 0 0 24px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.consult-field {
    margin-top: 24px;
}

.consult-form-section > h2 + .consult-section-note + .consult-field {
    margin-top: 0;
}

.consult-field-label,
.consult-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.6;
}

.consult-required,
.consult-optional {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.6;
    vertical-align: 1px;
}

.consult-required {
    background: #6f4c3e;
    color: #fff;
}

.consult-optional {
    background: #eeeae2;
    color: #555;
}

.consult-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.consult-choice {
    position: relative;
}

.consult-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.consult-choice span {
    display: block;
    min-width: 120px;
    padding: 11px 16px;
    border: 1px solid #aaa59c;
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.consult-choice input:checked + span {
    border-color: #333;
    background: #f1eee8;
    font-weight: bold;
}

.consult-choice input:focus-visible + span {
    outline: 2px solid #233049;
    outline-offset: 2px;
}

.consult-discovery-other {
    margin-top: 14px;
}

.consult-discovery-other > label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.6;
}

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

.consult-grid .consult-field {
    margin-top: 24px;
}

.consult-field input[type="text"],
.consult-field input[type="email"],
.consult-field input[type="tel"],
.consult-field input[type="number"],
.consult-field select,
.consult-field textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #aaa59c;
    border-radius: 0;
    background: #fff;
    color: #333;
    font: inherit;
}

.consult-field input[type="text"],
.consult-field input[type="email"],
.consult-field input[type="tel"],
.consult-field input[type="number"],
.consult-field select {
    min-height: 50px;
    padding: 10px 12px;
}

.consult-field textarea {
    min-height: 150px;
    padding: 12px;
    line-height: 1.7;
    resize: vertical;
}

.consult-input-unit {
    display: flex;
    align-items: stretch;
}

.consult-input-unit input {
    min-width: 0;
}

.consult-input-unit span {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 50px;
    margin-left: -1px;
    border: 1px solid #aaa59c;
    background: #f5f3ee;
}

.consult-grid-note {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.consult-field input:focus-visible,
.consult-field select:focus-visible,
.consult-field textarea:focus-visible {
    outline: 2px solid #233049;
    outline-offset: 2px;
}

.consult-field-help {
    margin: 7px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.consult-actions {
    margin-top: 34px;
    text-align: center;
}

.consult-submit {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    min-height: 56px;
    padding: 13px 24px;
    border: 2px solid #233049;
    border-radius: 4px;
    background: #233049;
    color: #fff;
    font: inherit;
    font-weight: bold;
}

.consult-submit[disabled] {
    cursor: not-allowed;
    opacity: .65;
}

.consult-confirm {
    margin-bottom: 52px;
    padding: 34px 40px 40px;
    border: 1px solid #d9d4ca;
    background: #fff;
}

.consult-confirm > h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.5;
}

.consult-confirm > p {
    margin: 0 0 24px;
    line-height: 1.7;
}

.consult-confirm-list {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    margin: 0;
    border-top: 1px solid #d9d4ca;
}

.consult-confirm-list dt,
.consult-confirm-list dd {
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #d9d4ca;
    line-height: 1.7;
    white-space: pre-wrap;
}

.consult-confirm-list dt {
    background: #f5f3ee;
    font-weight: bold;
}

.consult-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.consult-confirm-actions form {
    display: contents;
}

.consult-privacy {
    margin-top: 28px;
    line-height: 1.8;
}

.consult-privacy input {
    margin-right: 5px;
}

.consult-privacy a {
    color: #333;
    text-decoration: underline;
}

.consult-thanks {
    margin-bottom: 52px;
    padding: 54px 40px;
    border: 1px solid #d9d4ca;
    background: #fff;
    text-align: center;
}

.consult-thanks h1 {
    margin: 0 0 20px;
    font-size: 30px;
    line-height: 1.5;
}

.consult-thanks p {
    margin: 12px 0;
    line-height: 1.8;
}

.consult-thanks .consult-submit {
    display: inline-flex;
    width: auto;
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
}

.consult-back-button {
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
    min-height: 56px;
    padding: 13px 24px;
    border: 1px solid #666;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font: inherit;
    font-weight: bold;
}

.consult-confirm-note {
    margin: 12px 0 0 !important;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.consult-actions p {
    margin: 10px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.consult-back {
    margin: 0 0 46px;
    text-align: center;
}

.consult-back a {
    color: #333;
    text-decoration: underline;
}

@media screen and (max-width: 767px) {
    .consult-inner {
        padding: 0 24px;
    }

    .consult-hero {
        padding: 28px 0 22px;
        text-align: left;
    }

    .consult-hero h1 {
        font-size: 26px;
    }

    .consult-hero h1 span {
        display: block;
    }

    .consult-hero p {
        font-size: 15px;
    }

    .consult-preview-note {
        text-align: left;
    }

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

    .consult-order-link {
        margin-top: -4px;
        text-align: left;
    }

    .consult-origin {
        margin-top: -2px;
        text-align: left;
    }

    .consult-form {
        padding: 26px 20px 30px;
    }

    .consult-confirm {
        padding: 26px 20px 30px;
    }

    .consult-thanks {
        padding: 36px 20px;
    }

    .consult-thanks h1 {
        font-size: 24px;
    }

    .consult-form-section > h2 {
        font-size: 21px;
    }

    .consult-choice-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .consult-choice span {
        text-align: left;
    }

    .consult-submit {
        min-height: 54px;
    }

    .consult-confirm-list {
        display: block;
        border-top: 0;
    }

    .consult-confirm-list dt,
    .consult-confirm-list dd {
        display: block;
        padding: 11px 12px;
    }

    .consult-confirm-list dt {
        border-top: 1px solid #d9d4ca;
    }

    .consult-confirm-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .consult-back-button,
    .consult-confirm-actions .consult-submit {
        max-width: none;
        min-height: 54px;
    }
}
