.contact-container {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto 100px;
    padding: 56px;
    box-sizing: border-box;
    border: 1px solid #e3eaf4;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(18, 50, 91, 0.08);
}

.form-header {
    margin-bottom: 34px;
    text-align: center;
}

.form-kicker {
    display: block;
    margin-bottom: 10px;
    color: #006be6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.form-header h2 {
    margin: 0 0 12px;
    color: #101c2d;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.form-header p {
    margin: 0;
    color: #66758a;
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
}

.inquiry-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 34px;
    padding: 8px;
    border-radius: 18px;
    background: #f2f6fb;
}

.inquiry-tab {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #58687d;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.inquiry-tab:hover {
    color: #15365e;
    background: rgba(255, 255, 255, 0.65);
}

.inquiry-tab.is-active {
    border-color: #c5daf5;
    color: #004098;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 64, 152, 0.1);
}

.tab-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tab-description {
    margin-top: 6px;
    color: #7b899c;
    font-size: 13px;
    line-height: 1.4;
    word-break: keep-all;
}

.inquiry-tab.is-active .tab-description {
    color: #557599;
}

.validation-summary {
    margin-bottom: 22px;
    color: #c82e3a;
    font-size: 14px;
    line-height: 1.6;
}

.validation-summary:empty,
.validation-summary-valid {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding: 15px 18px 15px 36px;
    border: 1px solid #f2ccd1;
    border-radius: 10px;
    background: #fff7f8;
}

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

.form-section {
    padding: 32px 0;
    border-top: 1px solid #e7edf5;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.section-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #004098 0%, #0878e5 100%);
    font-size: 13px;
    font-weight: 800;
}

.section-heading h3 {
    margin: 0 0 5px;
    color: #172438;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: #8290a2;
    font-size: 14px;
    line-height: 1.5;
}

.form-subsection-title {
    margin: 30px 0 18px;
    padding-top: 26px;
    border-top: 1px dashed #d9e2ed;
    color: #26374d;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.form-field {
    min-width: 0;
}

.form-section > .form-field + .form-field {
    margin-top: 22px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field > label:not(.checkbox-label) {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.required-mark {
    color: #e74453;
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7e0eb;
    border-radius: 10px;
    color: #172438;
    background: #fbfcfe;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:not([type="checkbox"]),
.form-field select {
    height: 50px;
    padding: 0 15px;
}

.form-field textarea {
    min-height: 140px;
    padding: 14px 15px;
    line-height: 1.65;
    resize: vertical;
}

.form-field input:not([type="checkbox"]):focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #1476da;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 118, 218, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #a7b1bf;
}

.input-unit {
    position: relative;
}

.input-unit input {
    padding-right: 54px !important;
}

.input-unit span {
    position: absolute;
    top: 50%;
    right: 16px;
    color: #708095;
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-50%);
    pointer-events: none;
}

.checkbox-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78px;
    padding: 15px 18px;
    box-sizing: border-box;
    border: 1px solid #d7e0eb;
    border-radius: 10px;
    background: #f8fbff;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #27364a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #006be6;
}

.checkbox-field p {
    margin: 7px 0 0 28px;
    color: #8491a2;
    font-size: 12px;
    line-height: 1.45;
}

.field-validation {
    display: block;
    margin-top: 6px;
    color: #c82e3a;
    font-size: 12px;
}

.field-validation:empty,
.field-validation-valid {
    display: none;
}

.input-validation-error {
    border-color: #df5a67 !important;
    background: #fffafb !important;
}

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

.submit-button {
    display: flex;
    width: 100%;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #003d8f 0%, #0879e6 100%);
    box-shadow: 0 12px 24px rgba(0, 64, 152, 0.2);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(0, 64, 152, 0.26);
}

@media (max-width: 768px) {
    .contact-container {
        width: calc(100% - 24px);
        margin-bottom: 70px;
        padding: 32px 20px;
        border-radius: 18px;
    }

    .form-header h2 {
        font-size: 26px;
    }

    .form-header p {
        font-size: 14px;
    }

    .inquiry-tabs,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-tab {
        min-height: 78px;
        padding: 15px 17px;
    }

    .form-section {
        padding: 26px 0;
    }

    .section-heading h3 {
        font-size: 19px;
    }

    .section-heading p {
        font-size: 13px;
    }
}
