@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Nanum Pen Script', cursive;
}

body {
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--light-color);
}

header {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    text-align: center;
    margin-bottom: 20px;
}

header nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

header nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary-color);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 40px;
}

footer {
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
}

footer a:hover {
    color: white;
}

.container {
    width: 90%;
    max-width: 600px;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 20px 0;
}

p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

button {
    font-family: var(--font-family);
    font-size: 1.5rem;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#retry-btn {
    background-color: var(--secondary-color);
}

#retry-btn:hover {
    background-color: #5a6268;
}

.progress {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.5s;
}

#answers {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.answer-btn {
    width: 100%;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 2px solid #dee2e6;
}

.answer-btn:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

/* 제휴 문의 폼 스타일 */
#contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.form-group label {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1.1rem;
    box-sizing: border-box;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.button-group button {
    flex: 1;
}
