@charset "UTF-8";

:root {
    --primary-color: #1a5276;
    --accent-color: #c0392b;
    --success-color: #27ae60;
    --text-color: #2c3e50;
    --bg-light: #f8f9fa;
    --border-color: #e0e3e7;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: #eef2f7;
    margin: 0;
    padding: 15px;
    color: var(--text-color);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    background: white;
    padding: 30px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Header */
.conf-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.conf-header h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 0 10px;
    line-height: 1.6;
    letter-spacing: 1px;
}

.conf-header .conf-subtitle {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
}

.conf-header .conf-org {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    line-height: 1.6;
}

.conf-header .conf-date {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Form */
.form-notice {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #fff8e1;
    border-radius: 6px;
    border: 1px solid #ffe082;
}

.required-star {
    color: var(--accent-color);
    font-weight: bold;
}

.form-section {
    margin-bottom: 20px;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 10px;
}

.form-section h2 {
    font-size: 1.1rem;
    margin: 0 0 15px;
    color: var(--primary-color);
    padding-bottom: 8px;
    border-bottom: 1px solid #dde;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

.required::after {
    content: "*";
    color: var(--accent-color);
    margin-left: 3px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,82,118,0.15);
}

textarea {
    resize: vertical;
}

/* Radio / Checkbox */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 8px 0 15px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #154360;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Payment section */
.payment-section {
    display: none;
    text-align: center;
    padding: 20px;
}

.payment-section h2 {
    color: var(--success-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.payment-qr {
    margin: 15px auto;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    display: inline-block;
}

.payment-qr img {
    max-width: 220px;
    max-height: 220px;
}

.payment-qr .qr-placeholder {
    width: 220px;
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.payment-tip {
    font-size: 0.85rem;
    color: #888;
    margin: 10px 0 20px;
    line-height: 1.6;
}

.payment-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.payment-form label {
    text-align: left;
}

/* File upload */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 10px;
    background: white;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
}

.file-upload-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area .upload-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.file-upload-area .upload-text {
    font-size: 0.9rem;
    color: #666;
}

.file-preview {
    display: none;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--success-color);
}

/* Steps indicator */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.step {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step.done {
    color: var(--success-color);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.85rem;
}

.step.active .step-num {
    background: var(--primary-color);
    color: white;
}

.step.done .step-num {
    background: var(--success-color);
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #eee;
    margin: 0 10px;
}

.step-line.done {
    background: var(--success-color);
}

/* Validation */
.error {
    color: var(--accent-color);
    font-size: 0.82rem;
    margin-top: -6px;
    margin-bottom: 6px;
    display: none;
}

.error-show {
    display: block;
}

.input-error {
    border-color: var(--accent-color) !important;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-success {
    background: var(--success-color);
    color: white;
}

.toast-error {
    background: var(--accent-color);
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 20px 16px;
    }

    .conf-header h1 {
        font-size: 1.2rem;
    }

    input, select, textarea {
        padding: 12px;
        font-size: 16px;
    }

    .steps {
        font-size: 0.75rem;
    }

    .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .step-line {
        width: 25px;
    }
}
