:root {
    --color-bk: #202020;
    --color-gy: #909090;
    --color-wh: #ffffff;

    --color-bg: #F8FAFC;
    --color-line: #E6E8EB;
    --color-bg-hl: #fff9f3;
    --color-hl: #eb5500;

    --font-xl: 28px;
    --font-l: 24px;
    --font-m: 20px;
    --font-s: 18px;
    --font-xs: 16px;

    --size-xl: 120px;
    --size-l: 80px;
    --size-m: 60px;
    --size-s: 40px;
    --size-xs: 20px;
}

/* ---------------- COMMON ---------------- */

::selection {
    background-color: var(--color-bg-hl);
    color: var(--color-hl);
}

* {
    font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--color-wh);
}

body > img{
    max-width: 640px;
    width: 100%;
    object-fit: contain;
}

footer{
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 var(--size-s) 320px var(--size-s);
}

footer > p{
    font-size: var(--font-s);
    font-weight: 300;
    color: var(--color-gy);
}

form{
    min-width: 320px;
    position: fixed;
    bottom: 0;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: var(--color-wh);
    padding: calc(1.2 * var(--size-xs));
    padding-top: calc(1.6 * var(--size-xs));
    border-top-left-radius: calc(1.2 * var(--size-xs));
    border-top-right-radius: calc(1.2 * var(--size-xs));
    z-index: 100;
    animation: shadowPulse 2s ease-in-out infinite;
}

@keyframes shadowPulse {
    0% {
        box-shadow: 0px -16px 32px #eb55001A;
    }
    50% {
        box-shadow: 0px -16px 48px #eb550040;
    }
    100% {
        box-shadow: 0px -16px 32px #eb55001A;
    }
}

form > h2{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--color-bk);
    margin-bottom: calc(0.8 * var(--size-xs));
}

form > h2 > span{
    font-weight: 700;
    color: var(--color-hl);
}

form > h2 > img{
    height: var(--font-xl);
    object-fit: contain;
    margin-right: calc(0.6 * var(--size-xs));
}

form > .form-row-1{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    column-gap: calc(0.8 * var(--size-xs));
}

.form-row-1 > input{
    width: 100%;
    font-size: var(--font-xs);
    font-weight: 400;
    color: var(--color-bk);
    padding: calc(0.75 * var(--size-xs)) var(--size-xs);
    background-color: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: 6px;
    outline: none;
}

.form-row-1 > input:focus{
    border: 1px solid var(--color-hl);
}

.form-row-1 > .phone-wrapper{
    width: 100%;
    display: grid;
    grid-template-columns: 4fr 1fr 8fr 1fr 8fr;
    align-items: center;
    padding: 0px var(--size-xs);
    background-color: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: 6px;
}

.form-row-1 > .phone-wrapper > input{
    width: 100%;
    font-size: var(--font-xs);
    font-weight: 400;
    color: var(--color-bk);
    padding: calc(0.75 * var(--size-xs)) 0;
    text-align: center;
    border: none;
    background-color: var(--color-bg);
}

.form-row-1 > .phone-wrapper > input:focus{
    outline: 1px solid var(--color-hl);
}

.form-row-2{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: calc(0.8 * var(--size-xs));
    margin: calc(0.8 * var(--size-xs)) 0;
}

.form-row-2 > span{
    width: 264px;
    display: inline-block;
    font-size: var(--font-xs);
    color: var(--color-bk);
    text-align: right;
    font-weight: 600;
}

.form-row-2 > select{
    width: 100%;
    font-size: var(--font-xs);
    font-weight: 400;
    color: var(--color-bk);
    padding: calc(0.7 * var(--size-xs)) var(--size-xs);
    background-color: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: 6px;
    outline: none;
}

.form-row-2 > select:focus{
    border: 1px solid var(--color-hl);
}

.form-row-3{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: calc(0.8 * var(--size-xs));
    align-items: flex-start;
}

.form-row-3 .checkbox-wrapper{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.form-row-3 .checkbox-wrapper > input{
    accent-color: var(--color-hl);
}

.form-row-3 .checkbox-wrapper > label{
    font-size: 14px;
    color: var(--color-bk);
    font-weight: 300;
}

.form-row-3 .checkbox-wrapper > span{
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gy);
    text-decoration: underline;
}

form #form-submit{
    width: 100%;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--color-wh);
    background: var(--color-hl);
    padding: 16px var(--size-xs);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.popup h3{
    font-size: var(--font-m);
    font-weight: 700;
    color: var(--color-bk);
    margin-bottom: calc(0.4 * var(--size-xs));
}

.popup h4{
    font-size: var(--font-s);
    font-weight: 600;
    color: var(--color-bk);
    margin-top: var(--size-xs);
    margin-bottom: calc(0.4 * var(--size-xs));
}
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    min-width: 280px;
    max-width: 640px;
    max-height: 80%;

    background: #fff;
    padding: calc(1.5 * var(--size-xs)) calc(1.2 * var(--size-xs));
    border-radius: var(--size-xs);

    overflow: hidden;
}

.popup-body {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 10px;
    font-size: var(--font-xs);
    color: var(--color-bk);
    word-break: keep-all;
    line-height: 150%;
}

.popup-close {
    position: absolute;
    top: calc(1.4 * var(--size-xs));
    right: calc(1.2 * var(--size-xs));

    border: none;
    background: none;
    font-size: var(--font-m);
    cursor: pointer;
}

@media screen and (max-width: 640px) {

    :root {
    --font-xl: 28px;
    --font-l: 24px;
    --font-m: 20px;
    --font-s: 18px;
    --font-xs: 16px;

    --size-xl: 108px;
    --size-l: 72px;
    --size-m: 54px;
    --size-s: 36px;
    --size-xs: 18px;
}

.form-row-3{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    column-gap: initial;
    grid-template-columns: initial;
    gap: var(--size-xs);
}
    
}

@media screen and (max-width: 480px) {

    
    :root {
    --font-xl: 25px;
    --font-l: 21px;
    --font-m: 19px;
    --font-s: 17px;
    --font-xs: 15px;

    --size-xl: 96px;
    --size-l: 64px;
    --size-m: 48px;
    --size-s: 32px;
    --size-xs: 16px;
}

.form-row-2{
    margin: calc(0.6 * var(--size-xs)) 0;
}

}

@media screen and (max-width: 375px) {
    :root {
        --font-xl: 24px;
        --font-l: 20px;
        --font-m: 18px;
        --font-s: 16px;
        --font-xs: 14px;
    }

    form > h2{
    font-size: var(--font-l);
}

form > h2 > img{
    height: var(--font-l);
}


    .form-row-1 > .phone-wrapper{
        padding: 0 12px;
    }

    .form-row-2 > span{
        width: 100%;
    }
}