/* General Body Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #eaf1fb;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 10px solid #4a86e8;
}

/* Header */
.event-header {
    /* 기존 스타일 제거 */
}

.event-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

.event-header p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

/* Main Content & Form */
.form-container {
    padding: 20px;
}

.section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.description-section h2 {
    color: #4a86e8;
    text-align: center;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.notice {
    font-size: 0.9em;
    color: #555;
}

/* Form Elements */
.form-label {
    font-size: 1.1em;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.form-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

input[type="text"],
input[type="tel"],
input[type="date"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

input::placeholder {
    color: #999;
}

.required-notice {
    text-align: right;
    color: #d93025;
    font-size: 0.9em;
}

/* Agreement Section */
.agreement-section h3, .agreement-section h4 {
    color: #333;
}

.agreement-box {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.agreement-box p {
    font-size: 0.9em;
}

/* Radio Button */
.radio-group {
    display: flex;
    align-items: center;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

/* Buttons */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.btn-submit {
    background-color: #4a86e8;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.btn-submit:hover:not(:disabled) {
    background-color: #357ae8;
}

.btn-submit:disabled {
    background-color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset {
    background: none;
    border: none;
    color: #4a86e8;
    cursor: pointer;
    text-decoration: underline;
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
    color: #777;
}

a {
    color: #4a86e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 추천인 코드 검증 메시지 스타일 */
.validation-message {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    display: block;
}

.validation-message.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.validation-message.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

input.valid {
    border-color: #28a745 !important;
}

input.invalid {
    border-color: #dc3545 !important;
}

/* 모달 팝업 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #4a86e8;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.modal-subtitle {
    font-size: 1em;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.btn-close {
    background-color: #4a86e8;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-close:hover {
    background-color: #357ae8;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.3em;
    }
    
    .modal-subtitle {
        font-size: 0.9em;
    }
}

