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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 768px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: radial-gradient(44.26% 64.88% at -2.09% 5.39%, #00A9EA 0%, #2C327C 100%);
}

.top-image {
    width: 768px;
    max-width: 100%;
    display: block;
}

.top-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bottom-image {
    width: 768px;
    max-width: 100%;
    display: block;
}

.bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card {
    max-width: calc(768px - 50px);
    width: calc(100% - 50px);
    background: white;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

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

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: -4px;
}

.form-input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* iOS Safari에서 select의 둥근 테두리 제거 및 텍스트 색상 수정 */
select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* iOS에서 select option 색상도 명시적으로 설정 */
select.form-input option {
    color: #333;
    background-color: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.submit-button {
    height: 48px;
    width: 100%;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 8px;
}

.submit-button:hover {
    background-color: #357abd;
}

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

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 개인정보 약관 섹션 */
.privacy-section {
    margin-top: 8px;
    padding: 20px;
    background-color: #f2f2f2;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.privacy-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.privacy-checkbox-label span {
    color: #645faa;
    font-weight: bold;
}

.privacy-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4a90e2;
    flex-shrink: 0;
}

.privacy-checkbox:required:invalid {
    border-color: #e74c3c;
}

.privacy-divider {
    height: 1px;
    background-color: #ddd;
    margin: 16px 0;
}

.privacy-content {
    font-size: 11px;
    line-height: 1.3;
    color: #555;
}

.privacy-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    margin-top: 8px;
}

.privacy-title:first-child {
    margin-top: 0;
}

.required-mark {
    color: #e74c3c;
}

.privacy-text {
    line-height: 1.3;
    color: #555;
}

.privacy-list {
    list-style: none;
    padding-left: 0;
}

.privacy-list li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1;
    color: #555;
}

.privacy-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

/* Mobile (~767px) */
@media (max-width: 767px) {
    .container {
        width: 100%;
        max-width: 768px;
    }
    
    .top-image {
        width: 100%;
        max-width: 768px;
    }
    
    .bottom-image {
        width: 100%;
        max-width: 768px;
    }
    
    .card {
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        padding: 24px 20px;
    }
    
    .form {
        gap: 16px;
    }
    
    .form-input {
        height: 44px;
        font-size: 15px;
    }
    
    .privacy-content {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* Tablet/PC (768px 이상) */
@media (min-width: 768px) {
    .container {
        width: 768px;
        max-width: 100%;
    }
    
    .top-image {
        width: 768px;
        max-width: 100%;
    }
    
    .bottom-image {
        width: 768px;
        max-width: 100%;
    }
    
    .card {
        max-width: calc(768px - 50px);
        width: calc(768px - 50px);
        padding: 40px 32px;
    }
    
    .form {
        gap: 24px;
    }
}
