/* ============================================================
   register.css — 網上報名頁面專屬樣式
   依賴：main.css
   ============================================================ */

/* ============================================================
   Registration Steps
   ============================================================ */
.steps-section {
    padding: 80px 20px;
    background: var(--light-color);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 50px; left: 10%; right: 10%;
    height: 4px;
    background: #ddd;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-icon {
    width: 100px; height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.3);
    transition: all 0.4s ease;
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(26, 95, 122, 0.4);
}

.step-number {
    position: absolute;
    top: -10px; right: calc(50% - 60px);
    width: 35px; height: 35px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.step h3 { font-size: 1.2rem; color: var(--dark-color); margin-bottom: 10px; }
.step p { color: #666; font-size: 0.95rem; max-width: 180px; margin: 0 auto; }

/* ============================================================
   Main Registration Section
   ============================================================ */
.register-section {
    padding: 100px 20px;
    background: #fff;
}

.register-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ============================================================
   Registration Form
   ============================================================ */
.register-form-wrapper {
    background: #fff;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.register-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 6px;
    background: var(--gradient-2);
}

.form-header { margin-bottom: 35px; }
.form-header h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 10px; }
.form-header p { color: #666; }

.whatsapp-cta-box { padding: 20px 0; }

.whatsapp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 22px 32px;
    background: #25D366;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    display: flex;
}

.whatsapp-cta-btn:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-cta-btn i { font-size: 1.8rem; }

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group label .required { color: var(--error-color); margin-left: 3px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.form-group input.error,
.form-group select.error { border-color: var(--error-color); }

.form-group .error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ============================================================
   Course Selection
   ============================================================ */
.course-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.course-option { position: relative; }
.course-option input { position: absolute; opacity: 0; cursor: pointer; }

.course-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    font-weight: 400;
}

.course-option label i { font-size: 1.5rem; color: var(--primary-color); }

.course-option input:checked + label {
    background: rgba(26, 95, 122, 0.1);
    border-color: var(--primary-color);
}

.course-option label:hover { background: rgba(26, 95, 122, 0.05); }

/* ============================================================
   Time Preference
   ============================================================ */
.time-options { display: flex; flex-wrap: wrap; gap: 10px; }

.time-option { position: relative; }
.time-option input { position: absolute; opacity: 0; cursor: pointer; }

.time-option label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0;
}

.time-option input:checked + label {
    background: rgba(26, 95, 122, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.time-option label:hover { background: rgba(26, 95, 122, 0.05); }

/* Checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; }

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   Submit Button
   ============================================================ */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

/* ============================================================
   Info Cards（右欄）
   ============================================================ */
.info-cards { display: flex; flex-direction: column; gap: 25px; }

.info-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.4s ease;
}

.info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

.info-card .icon {
    width: 60px; height: 60px;
    background: var(--gradient-2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #fff;
}

.info-card h3 { font-size: 1.3rem; color: var(--dark-color); margin-bottom: 15px; }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card ul li { display: flex; align-items: center; gap: 10px; color: #555; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.info-card ul li:last-child { border-bottom: none; }
.info-card ul li i { color: var(--secondary-color); font-size: 0.9rem; }

.contact-card {
    background: var(--gradient-1);
    color: #fff;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(26, 95, 122, 0.3);
}

.contact-card h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-card p { opacity: 0.9; margin-bottom: 25px; }

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37,211,102,0.4);
}

.wa-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,211,102,0.5); color: #fff; }

/* ============================================================
   FAQ（報名頁版）
   ============================================================ */
.faq-register {
    padding: 100px 20px;
    background: var(--light-color);
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover { background: rgba(26, 95, 122, 0.03); }
.faq-question h3 { font-size: 1.1rem; color: var(--dark-color); font-weight: 600; }
.faq-question i { color: var(--primary-color); font-size: 1.2rem; transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-content { padding: 0 30px 25px; color: #666; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; }

/* ============================================================
   Success Modal
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-overlay .modal-content {
    background: #fff;
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    animation: modalPop 0.4s ease;
}

.modal-overlay .success-icon {
    width: 100px; height: 100px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.modal-overlay .success-icon i { font-size: 3rem; color: #fff; }

.modal-overlay .modal-content h3 { font-size: 1.8rem; color: var(--dark-color); margin-bottom: 15px; }
.modal-overlay .modal-content p { color: #666; margin-bottom: 30px; }

.modal-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.modal-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(26,95,122,0.4); color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .register-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .steps-container { flex-direction: column; gap: 30px; }
    .steps-container::before { display: none; }
    .step-number { right: calc(50% - 50px); }
    .form-row { grid-template-columns: 1fr; }
    .course-options { grid-template-columns: 1fr; }
    .register-form-wrapper { padding: 30px 20px; }
}
