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

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

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

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #33334d;
    text-align: center;
    letter-spacing: 0;
    line-height: 1.2;
}

.input-card {
    background-color: #ffffff;
    border: 1px solid #e5e5f2;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#fortuneForm {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.field-label {
    font-size: 16px;
    font-weight: 600;
    color: #4d4d66;
    letter-spacing: 0;
    line-height: 1.2;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    height: 48px;
    background-color: #fafafc;
    border: 1px solid #e0e0eb;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    color: #33334d;
    letter-spacing: 0;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.input-box input::placeholder {
    color: #9999a6;
}

.input-box input:focus {
    outline: none;
    border-color: #8066e5;
    background-color: #ffffff;
}

.gender-selection {
    display: flex;
    gap: 12px;
}

.gender-button {
    flex: 1;
    max-width: 120px;
    height: 44px;
    background-color: #f2f2f7;
    border: 1px solid #d9d9e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666680;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gender-button:hover {
    background-color: #e8e8f2;
    border-color: #c9c9db;
}

.gender-button.active {
    background-color: #8066e5;
    border-color: #8066e5;
    color: #ffffff;
}

.submit-button {
    width: 100%;
    height: 56px;
    background-color: #8066e5;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-button:hover {
    background-color: #6f54d9;
}

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

.submit-button:disabled {
    background-color: #c9c9db;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .input-card {
        padding: 24px;
    }

    .gender-button {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .input-card {
        padding: 20px;
    }

    .gender-selection {
        flex-direction: column;
    }

    .gender-button {
        max-width: none;
    }
}
