/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #9BAFD9 0%, #B8C5E0 50%, #E8EEF5 100%);
    min-height: 100vh;
    display: flex;
    color: #333;
}

/* Sidebar Navigation */
.sidebar {
    width: 150px;
    background: linear-gradient(180deg, #8FA2C8 0%, #9BAFD9 100%);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C3E50;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sidebar-icon.active {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-icon svg {
    width: 40px;
    height: 40px;
}

/* Main Content */
.main-content {
    margin-left: 150px;
    flex: 1;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.register-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 50px 90px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 40px;
    text-align: left;
}

/* Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

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

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

.form-group.address-field {
    grid-column: 1 / 2;
}

.form-group.postal-field {
    grid-column: 2 / 3;
}

.form-group.delivery-field {
    grid-column: 1 / 2;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a52;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Noto Sans TC', sans-serif;
    background: #E8EEF5;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: #D8E4F5;
    box-shadow: 0 0 0 3px rgba(155, 175, 217, 0.3);
}

.form-group input::placeholder {
    color: #999;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Terms Section */
.terms-section {
    background: #F5F8FC;
    border-left: 4px solid #9BAFD9;
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 10px;
}

.terms-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 15px;
}

.terms-section ol {
    padding-left: 20px;
    color: #555;
    margin-bottom: 20px;
}

.terms-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #1a3a52;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Button */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-register-submit {
    padding: 18px 80px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    color: #555;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-register-submit:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-register-submit:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 100px;
        padding: 20px 0;
        gap: 20px;
    }

    .sidebar-icon {
        width: 60px;
        height: 60px;
    }

    .sidebar-icon svg {
        width: 30px;
        height: 30px;
    }

    .main-content {
        margin-left: 100px;
        padding: 40px 30px;
    }

    .register-container {
        padding: 40px 40px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 15px;
        gap: 10px;
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .sidebar-icon svg {
        width: 24px;
        height: 24px;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }

    .register-container {
        padding: 30px 25px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

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

    .form-group.address-field,
    .form-group.postal-field,
    .form-group.delivery-field {
        grid-column: 1 / -1;
    }

    .terms-section {
        padding: 20px;
    }

    .terms-section h3 {
        font-size: 16px;
    }

    .terms-section li {
        font-size: 14px;
    }

    .btn-register-submit {
        width: 100%;
        padding: 15px 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }

    .register-container {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form-group label {
        font-size: 15px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 15px;
        font-size: 15px;
    }

    .terms-section {
        padding: 15px;
    }

    .terms-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .terms-section li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .btn-register-submit {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* Hide scrollbar for sidebar on mobile */
@media (max-width: 768px) {
    .sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .sidebar {
        scrollbar-width: none;
    }
}