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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 120px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 40px;
    text-align: center;
}

.input-form {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field label {
    font-size: 16px;
    font-weight: 600;
    color: #4d4d4d;
}

.input-field input[type="text"],
.input-field input[type="date"],
.input-field input[type="time"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field input[type="text"]:focus,
.input-field input[type="date"]:focus,
.input-field input[type="time"]:focus {
    outline: none;
    border-color: #3366cc;
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.input-field input::placeholder {
    color: #999999;
}

.gender-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.gender-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 8px;
    background-color: #f2f2f2;
    color: #4d4d4d;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.gender-btn:hover {
    background-color: #e8e8e8;
}

.gender-btn.active {
    background-color: #3366cc;
    color: #ffffff;
}

.gender-btn:active {
    transform: scale(0.98);
}

.submit-btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 12px;
    background-color: #3366cc;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #2852a3;
    box-shadow: 0 4px 12px rgba(51, 102, 204, 0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* 결과 영역 스타일 */
.result-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.result-title {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
}

.result-content {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px;
    min-height: 400px;
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.loading p {
    color: #666666;
    font-size: 18px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f2f2f2;
    border-top: 4px solid #3366cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.back-btn {
    width: 300px;
    height: 60px;
    border: none;
    border-radius: 12px;
    background-color: #e6e6e6;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    align-self: center;
    margin-top: 20px;
}

.back-btn:hover {
    background-color: #d9d9d9;
}

.back-btn:active {
    transform: scale(0.98);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .page-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .input-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .input-form {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .gender-buttons {
        flex-direction: column;
        gap: 8px;
    }
}
