* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    color: #1f2937;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

.institution-request-page {
    min-height: 100vh;
}

.request-main {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 40px 16px;
}

.request-lead {
    margin-bottom: 30px;
}

.request-eyebrow {
    margin: 0 0 6px;
    color: #6b7280;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
}

.request-lead h1 {
    margin: 0 0 30px;
    color: #1f2937;
    font-size: 36px;
    font-weight: 800;
    line-height: 46px;
}

.request-lead h1 span {
    display: block;
}

.request-lead-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 20px;
}

.request-lead-copy strong {
    color: #1f2937;
    font-weight: 600;
    line-height: 22px;
}

.request-card {
    padding: 30px 24px 40px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

.request-form-section {
    margin: 0 0 36px;
}

.request-form-section:last-of-type {
    margin-bottom: 0;
}

.request-form-section h2 {
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e6ea;
    color: #1f2937;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
}

.form-group {
    margin: 0 0 36px;
    padding: 0;
    border: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group > label,
.form-group legend {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.required-mark {
    margin-left: 2px;
    color: #ff7b78;
    font-weight: 700;
}

.form-group legend .legend-note {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

.request-input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: 0;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.request-select-input-wrap {
    position: relative;
}

.request-select-input-wrap .request-input {
    padding-right: 42px;
}

.request-select-input-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0;
    height: 0;
    border-top: 7px solid #1f2937;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transform: translateY(-50%);
    pointer-events: none;
}

.request-input::placeholder {
    color: #c5cad2;
}

.request-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.request-input.is-invalid {
    border-color: #ff7b78;
}

.request-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 123, 120, 0.14);
}

.form-group.is-invalid-group .choice-item input {
    box-shadow: 0 0 0 1px #ff7b78;
}

.form-group.is-invalid-group .choice-item input[type="radio"] {
    border-radius: 50%;
}

.form-group.is-invalid-group .choice-item input[type="checkbox"] {
    border-radius: 3px;
}

.field-description,
.field-help {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 20px;
}

.field-description {
    margin: -4px 0 10px;
}

.field-help {
    margin-top: 7px;
}

.field-help + .field-help {
    margin-top: 2px;
}

.invalid-feedback {
    display: none;
    margin: 7px 0 0;
    color: #ff7b78;
    font-size: 12px;
    line-height: 1.5;
}

.invalid-feedback.is-active {
    display: block;
}

.choice-list {
    display: grid;
    gap: 12px;
}

.choice-item {
    display: flex !important;
    align-items: flex-start;
    width: 100%;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 400 !important;
}

.choice-item input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 10px 0 0;
    accent-color: #1688ef;
}

.choice-item span {
    min-width: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.choice-item small {
    display: inline;
    margin-left: 4px;
    color: #64748b;
    font-size: 12px;
}

.suggest-list {
    display: none;
    position: relative;
    z-index: 10;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.suggest-list.is-active {
    display: block;
}

.suggest-button {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.suggest-button:last-child {
    border-bottom: 0;
}

.suggest-button:focus,
.suggest-button:hover,
.suggest-button.is-active {
    background: #eff6ff;
}

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

.request-button-area {
    margin-top: 28px;
}

.request-submit-button {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 30px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 2px 0 #2563eb;
}

.request-submit-button:focus,
.request-submit-button:hover {
    background: #2563eb;
}

.request-submit-button:disabled {
    cursor: default;
    opacity: 0.65;
}

.request-complete {
    min-height: 100vh;
    padding: 60px 16px;
}

.request-complete-inner {
    width: 100%;
    max-width: 343px;
    margin: 0 auto;
    text-align: center;
}

.request-complete h1 {
    width: 100%;
    max-width: 277px;
    margin: 0 auto 30px;
    color: #1f2937;
    font-size: 36px;
    font-weight: 800;
    line-height: 46px;
}

.request-complete p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 20px;
}

@media (max-width: 374px) {
    .request-main {
        padding-right: 12px;
        padding-left: 12px;
    }

    .request-lead h1,
    .request-complete h1 {
        font-size: 34px;
    }

    .request-card {
        padding-right: 18px;
        padding-left: 18px;
    }
}
