.jgrp-stage {
    width: 100%;
    background: #f5f8fc;
}

#jgrp-page {
    --jgrp-ink: #18283e;
    --jgrp-muted: #52647c;
    --jgrp-line: #d8e4f2;
    --jgrp-blue: #1563be;
    --jgrp-dark: #104d94;
    --jgrp-soft: #edf5ff;
    --jgrp-error: #a33142;
    display: block;
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 42px;
    color: var(--jgrp-ink);
    font: 400 15px/1.5 "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
    letter-spacing: -.025em;
    text-align: left;
}

#jgrp-page, #jgrp-page *, #jgrp-page *::before, #jgrp-page *::after {
    box-sizing: border-box;
}

#jgrp-page :is(form, section, header, div, label, fieldset, legend, h1, h2, p, dl, dt, dd, input, button, select, textarea) {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: inherit;
}

#jgrp-page fieldset {
    min-width: 0;
    border: 0;
}

#jgrp-page :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--jgrp-blue);
    outline-offset: 2px;
}

#jgrp-page .jgrp-page-head {
    margin-bottom: 17px;
}

#jgrp-page h1 {
    font-size: clamp(24px, 5.8vw, 33px);
    font-weight: 660;
    line-height: 1.25;
    letter-spacing: -.045em;
}

#jgrp-page :is(.jgrp-page-head, .jgrp-receipt) > p {
    margin-top: 6px;
    color: var(--jgrp-muted);
    font-size: 14px;
    word-break: keep-all;
}

#jgrp-page .jgrp-inquiry {
    display: grid;
    gap: 12px;
}

#jgrp-page .jgrp-box {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--jgrp-line);
    border-radius: 11px;
    background: #fff;
}

#jgrp-page .jgrp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6eef7;
}

#jgrp-page .jgrp-section-head h2 {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

#jgrp-page .jgrp-section-head p,
#jgrp-page .jgrp-hint {
    color: var(--jgrp-muted);
    font-size: 12px;
}

#jgrp-page .jgrp-required {
    color: var(--jgrp-dark);
}

#jgrp-page .jgrp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#jgrp-page .jgrp-contact-grid .jgrp-field:nth-child(n + 3) {
    grid-column: 1 / -1;
}

#jgrp-page .jgrp-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 5px;
}

#jgrp-page .jgrp-field label,
#jgrp-page legend {
    font-size: 14px;
    font-weight: 620;
}

#jgrp-page legend {
    margin-bottom: 7px;
}

#jgrp-page legend small {
    margin-left: 4px;
    color: var(--jgrp-muted);
    font-size: 12px;
    font-weight: 400;
}

#jgrp-page .jgrp-field :is(input, select, textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 45px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #c6d7eb;
    border-radius: 7px;
    background: #fff;
    color: var(--jgrp-ink);
    font-size: 16px;
    line-height: 1.35;
    box-shadow: none;
}

#jgrp-page .jgrp-field input[type="date"] {
    padding-right: 5px;
}

#jgrp-page .jgrp-field textarea {
    min-height: 64px;
    resize: vertical;
}

#jgrp-page .jgrp-field :is(input, textarea)::placeholder {
    color: #667994;
    font-size: 14px;
}

#jgrp-page .jgrp-field [aria-invalid="true"] {
    border-color: var(--jgrp-error);
}

#jgrp-page .jgrp-box > :is(.jgrp-choice, .jgrp-people, .jgrp-budget, .jgrp-choice + .jgrp-field, .jgrp-budget + .jgrp-field) {
    margin-top: 14px;
}

#jgrp-page .jgrp-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

#jgrp-page .jgrp-option {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border: 1px solid var(--jgrp-line);
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
    cursor: pointer;
}

#jgrp-page .jgrp-option:has(input:checked) {
    border-color: #aec9e9;
    background: var(--jgrp-soft);
    color: var(--jgrp-dark);
    font-weight: 620;
}

#jgrp-page :is(.jgrp-option, .jgrp-checkbox) input {
    display: inline-block;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: var(--jgrp-blue);
    appearance: auto;
}

#jgrp-page .jgrp-person-grid {
    padding: 10px;
    border: 1px solid #e1ebf7;
    border-radius: 8px;
    background: #f5f9ff;
}

#jgrp-page .jgrp-term {
    padding: 9px 10px;
    border: 1px solid var(--jgrp-line);
    border-radius: 7px;
    background: #f6f9fd;
}

#jgrp-page .jgrp-term + .jgrp-term {
    margin-top: 7px;
}

#jgrp-page .jgrp-checkbox {
    display: flex;
    min-height: 29px;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    word-break: keep-all;
    cursor: pointer;
}

#jgrp-page .jgrp-checkbox small {
    margin-left: 4px;
    color: var(--jgrp-dark);
    font-size: 11px;
    font-weight: 620;
    white-space: nowrap;
}

#jgrp-page .jgrp-term summary {
    min-height: 31px;
    padding: 5px 0 2px 25px;
    color: var(--jgrp-dark);
    font-size: 12px;
    cursor: pointer;
}

#jgrp-page .jgrp-policy {
    max-width: 100%;
    max-height: 228px;
    margin-top: 5px;
    padding: 10px;
    overflow: auto;
    border: 1px solid #dbe5f2;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

#jgrp-page .jgrp-policy :is(ul, ol) {
    margin: 0;
    padding: 0 0 0 20px;
}

#jgrp-page .jgrp-policy li {
    float: none;
    width: auto;
    height: auto;
    list-style: disc;
}

#jgrp-page .jgrp-policy ol li {
    list-style: decimal;
}

#jgrp-page .jgrp-policy :is(th, td) {
    padding: 4px 6px;
    border: 1px solid var(--jgrp-line);
}

#jgrp-page .jgrp-button {
    display: inline-flex;
    min-height: 45px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid var(--jgrp-blue);
    border-radius: 7px;
    background: var(--jgrp-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 620;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

#jgrp-page .jgrp-button:hover {
    background: var(--jgrp-dark);
}

#jgrp-page .jgrp-button:disabled {
    opacity: .65;
    cursor: wait;
}

#jgrp-page .jgrp-secondary {
    border-color: #bad0eb;
    background: #fff;
    color: var(--jgrp-dark);
}

#jgrp-page .jgrp-secondary:hover {
    background: var(--jgrp-soft);
}

#jgrp-page .jgrp-submit {
    width: 100%;
}

#jgrp-page .jgrp-alert,
#jgrp-page .jgrp-field-error {
    color: var(--jgrp-error);
    font-size: 13px;
    overflow-wrap: anywhere;
}

#jgrp-page .jgrp-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #efcbd2;
    border-radius: 7px;
    background: #fff4f6;
}

#jgrp-page #jgrp-terms-error {
    margin-top: 8px;
}

#jgrp-page .jgrp-receipt {
    max-width: 590px;
    margin: 0 auto;
    padding: 20px;
}

#jgrp-page .jgrp-success {
    display: inline-grid;
    width: 39px;
    height: 39px;
    margin-bottom: 11px;
    place-items: center;
    border-radius: 50%;
    background: var(--jgrp-soft);
    color: var(--jgrp-dark);
    font-size: 21px;
    font-weight: 650;
}

#jgrp-page .jgrp-receipt dl {
    margin: 16px 0;
    padding: 5px 12px;
    border: 1px solid #e0e9f4;
    border-radius: 7px;
    background: #f5f9ff;
}

#jgrp-page .jgrp-receipt dl > div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 0;
    font-size: 13px;
}

#jgrp-page .jgrp-receipt dl > div + div {
    border-top: 1px solid #e3ecf6;
}

#jgrp-page .jgrp-receipt dt {
    color: var(--jgrp-muted);
}

#jgrp-page .jgrp-receipt dd {
    font-weight: 600;
    overflow-wrap: anywhere;
}

#jgrp-page .jgrp-receipt-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#jgrp-page .jgrp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.jgrp-stage ~ .footerarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 16px 20px;
    background: #1c2636;
    color: #e6edf7;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.jgrp-stage ~ .footerarea :is(.menu_1, .copyarea_new) {
    width: min(900px, 100%);
    height: auto;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    list-style: none;
}

.jgrp-stage ~ .footerarea .menu_1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 4px 0 8px;
    border-bottom: 1px solid #405069;
}

.jgrp-stage ~ .footerarea :is(.menu_1, .copyarea_new) li,
.jgrp-stage ~ .footerarea .menu_1 a {
    float: none;
    width: auto;
    height: auto;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
}

@media (min-width: 640px) {
    #jgrp-page {
        padding-top: 34px;
    }

    #jgrp-page .jgrp-box {
        padding: 20px;
    }

    #jgrp-page .jgrp-contact-grid .jgrp-field:nth-child(3) {
        grid-column: auto;
    }

    #jgrp-page .jgrp-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #jgrp-page .jgrp-person-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #jgrp-page .jgrp-submit {
        width: auto;
        min-width: 200px;
        justify-self: end;
    }
}
