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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: bold;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-step.completed::after {
    background-color: #3498db;
}

.progress-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
}

.progress-step.active .progress-circle {
    background-color: #3498db;
    color: #fff;
}

.progress-step.completed .progress-circle {
    background-color: #27ae60;
    color: #fff;
}

.progress-label {
    font-size: 14px;
    color: #7f8c8d;
}

.progress-step.active .progress-label,
.progress-step.completed .progress-label {
    color: #2c3e50;
    font-weight: bold;
}

/* Form Container */
.form-container {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

/* Error Messages */
.error-messages {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 25px;
}

.error-messages ul {
    list-style-type: none;
    color: #c62828;
}

.error-messages li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.error-messages li::before {
    content: '×';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.form-section h3 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* University Selection */
.university-selection {
    margin-bottom: 20px;
}

.university-group {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.university-group h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.university-option {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.university-option input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.1);
    flex-shrink: 0;
}

.university-option label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    font-weight: normal;
    flex-grow: 1;
}

.university-name {
    font-weight: bold;
    color: #2c3e50;
}

.ielts-requirement {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 2px;
}

/* Major Selection */
.major-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.major-group h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.major-option {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.major-option input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.1);
    flex-shrink: 0;
}

.major-option label {
    cursor: pointer;
    font-weight: normal;
    flex-grow: 1;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

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

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-submit {
    background-color: #27ae60;
    color: #fff;
}

.btn-submit:hover {
    background-color: #229954;
}

/* Preview Page */
.preview-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.preview-section h3 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.preview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.preview-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.preview-label {
    font-weight: bold;
    color: #2c3e50;
    width: 120px;
    margin-right: 20px;
}

.preview-value {
    color: #34495e;
    word-break: break-word;
}

.preview-confirmation {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.preview-confirmation input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.preview-confirmation label {
    color: #2c3e50;
    font-size: 14px;
}

/* Success Page */
.success-container {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 30px;
}

.success-container h2 {
    color: #27ae60;
    margin-bottom: 20px;
    font-size: 32px;
}

.application-code {
    background-color: #f8f9fa;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0 30px;
    display: inline-block;
    border: 2px solid #e0e0e0;
}

.instructions {
    background-color: #e3f2fd;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    margin: 30px 0;
    text-align: left;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.instructions ul {
    list-style-type: none;
    padding: 0;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #34495e;
}

.instructions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .progress-bar {
        padding: 0 10px;
    }
    
    .progress-label {
        font-size: 12px;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}