@font-face {
    font-family: 'Helvetica Now Display';
    src: url('../font/HelveticaNowDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Now Display';
    src: url('../font/HelveticaNowDisplay-ExtLt.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'PP Editorial';
    src: url('../font/PPEditorialNew-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Now Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 40px;
    transition: background-color 0.5s ease;
}

.container {
    display: none;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.container.active {
    display: flex;
}

/* 로딩 */
.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    z-index: 999;
}

.loading.active {
    display: block;
}

/* 색상 질문 페이지 */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#colorQuestion h1 {
    color: black;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 1000px;
}

.progress-indicator {
    font-size: 32px;
    color: black;
    opacity: 0.6;
    white-space: nowrap;
    margin-left: 40px;
}

.input-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    font-size: 32px;
    border: none;
    background: transparent;
    outline: none;
    color: black;
}

input[type="text"]::placeholder {
    color: black;
    opacity: 0.6;
}

.submit-btn {
    font-size: 32px;
    background: none;
    border: none;
    padding: 15px 0;
    cursor: pointer;
    color: black;
    font-weight: 400;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.7;
}

.submit-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Thank you 페이지 */
#thankYouPage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 20px 40px;
    z-index: 3000;
    flex-direction: column;
    justify-content: flex-start;
}

#thankYouPage.active {
    display: flex;
}

#thankYouPage h1 {
    color: black;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 1000px;
    margin-bottom: 20px;
}

.closing-message {
    font-family: 'Helvetica Now Display', sans-serif;
    font-size: 32px;
    color: black;
    opacity: 0.6;
    text-align: left;
}

.closing-message span {
    color: black;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    body {
        padding: 15px 20px;
    }

    /* 색상 질문 페이지 - 모바일 */
    #colorQuestion {
        justify-content: flex-start;
        gap: 40px;
        padding-bottom: 50px;
    }

    .top-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #colorQuestion h1 {
        font-size: 48px;
        max-width: 100%;
    }

    .progress-indicator {
        font-size: 20px;
        margin-left: 0;
        align-self: flex-end;
        width: 100%;
        text-align: right;
    }

    .input-area {
        gap: 10px;
        margin-top: auto;
    }

    input[type="text"] {
        font-size: 20px;
        padding: 10px 12px;
    }

    input[type="text"]::placeholder {
        font-size: 20px;
    }

    .submit-btn {
        font-size: 20px;
        padding: 10px 5px;
        min-width: 60px;
        flex-shrink: 0;
    }

    /* Thank you 페이지 - 모바일 */
    #thankYouPage {
        padding: 15px 20px;
    }

    #thankYouPage h1 {
        font-size: 48px;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .closing-message {
        font-size: 20px;
    }
}

/* 작은 모바일 (iPhone SE 등) */
@media (max-width: 375px) {
    body {
        padding: 12px 16px;
    }

    #colorQuestion {
        gap: 30px;
        padding-bottom: 70px;
    }

    #colorQuestion h1 {
        font-size: 36px;
    }

    .progress-indicator {
        font-size: 18px;
    }

    .input-area {
        gap: 8px;
    }

    input[type="text"] {
        font-size: 18px;
        padding: 8px 10px;
    }

    input[type="text"]::placeholder {
        font-size: 18px;
    }

    .submit-btn {
        font-size: 18px;
        padding: 8px 4px;
        min-width: 55px;
    }

    #thankYouPage h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .closing-message {
        font-size: 18px;
    }
}