/* �{�N�ƹB���Z�u�ۥͳ��W�t�μ˦� */
@charset "UTF-8";

:root {
    --primary-color: #1a5f7a;
    --primary-dark: #134b5f;
    --primary-light: #2d8cb8;
    --secondary-color: #57c5b6;
    --accent-color: #ffc93c;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* �D�e�� */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* �D�d���ϰ� */
.main-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

/* ������T */
.header-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.header-banner h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header-banner .subtitle {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* �B�J���ܾ� */
.step-indicator {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.step {
    display: flex;
    align-items: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 15px;
}

.step.active:not(:last-child)::after {
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* ���e�ϰ� */
.content-area {
    padding: 30px;
}

/* �\��d������ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* �y�{�����϶� */
.process-section {
    margin-top: 30px;
}

.process-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.process-block {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.process-block h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.process-block ul {
    list-style: none;
    padding-left: 0;
}

.process-block li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 14px;
}

.process-block li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ����˦� */
.form-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
}

.form-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-label .required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-control:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%236c757d" d="M6 8L1 3h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Radio �M Checkbox �˦� */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-item input, .checkbox-item input {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* ���s�˦� */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 95, 122, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
    color: var(--text-dark);
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ��ƪ��� */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover {
    background: var(--bg-light);
}

.data-table .label-cell {
    background: var(--bg-light);
    font-weight: 600;
    width: 150px;
    color: var(--text-dark);
}

/* ���ܰT�� */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-info {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    color: #0d6efd;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid var(--success-color);
    color: #155724;
}

/* �P�N�Ѱ϶� */
.agreement-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.agreement-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.agreement-box p, .agreement-box li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ���� */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* �������� */
.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 50px;
}

.success-message {
    text-align: center;
    padding: 30px;
}

.success-message h2 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.info-box {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
}

.info-box .info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.info-box .info-item:last-child {
    border-bottom: none;
}

.info-box .info-label {
    color: var(--text-light);
}

.info-box .info-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* RWD �T�����]�p */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-banner {
        padding: 30px 20px;
    }
    
    .header-banner h1 {
        font-size: 22px;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .data-table .label-cell {
        width: 120px;
    }
}

/* �ʵe�ĪG */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ���J�ʵe */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
