/* Form Section */
.form-section {
    background: #f0f2f5;
    padding: 3rem 0 5rem;
    min-height: 100vh;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.form-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Form Cards */
.application-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.form-card-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.form-card-title i {
    color: #3498db;
    margin-right: 0.5rem;
}

.form-card-desc {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
}

.form-group select {
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-label:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: #3498db;
    background-color: #3498db;
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: #2c3e50;
    font-weight: 600;
}

.radio-text {
    color: #555;
    font-size: 1.05rem;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    border-color: #3498db;
    background-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
    color: #2c3e50;
    font-weight: 600;
}

.checkbox-text {
    color: #555;
    font-size: 1.05rem;
}

/* Discount Sections */
.discount-section-form {
    margin-bottom: 2rem;
}

.discount-section-form:last-child {
    margin-bottom: 0;
}

.discount-subtitle {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid #3498db;
}

/* Price Card */
.price-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #3498db;
}

.price-breakdown {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1rem;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.discount-row {
    color: #e74c3c;
}

.price-row.total-row {
    border-top: 3px solid #2c3e50;
    margin-top: 1rem;
    padding-top: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.price-value {
    font-weight: 600;
    color: #2c3e50;
}

.price-value.total {
    color: #3498db;
    font-size: 1.8rem;
}

.price-note {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95rem;
    border-left: 4px solid #ffc107;
}

.price-note i {
    margin-right: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Contact Info Box */
.contact-info-box {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #4a5f7f 100%);
    color: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.contact-info-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-box p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-info-box strong {
    color: #3498db;
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.modal-icon.success i {
    color: #27ae60;
}

.modal-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.modal-content .btn {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-section {
        padding: 2rem 0 3rem;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-card-title {
        font-size: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .price-row {
        font-size: 1rem;
    }
    
    .price-row.total-row {
        font-size: 1.2rem;
    }
    
    .price-value.total {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .modal-icon {
        font-size: 4rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .radio-label,
    .checkbox-label {
        padding: 0.8rem;
    }
    
    .radio-text,
    .checkbox-text {
        font-size: 0.95rem;
    }
    
    .price-breakdown {
        padding: 1.5rem;
    }
}
