.e123_main_content #block-e123-enar-sub-content {
    background-color: #ffffff;
    color: #575757;
    border-radius: 20px;
    box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.08), 0 1px 3px 1px rgba(60, 64, 67, 0.16);
    overflow: hidden;
    padding: 20px;
    display: inline-block;
    width: 100%;
    margin-bottom: 0px;
}

.e123_main_content #block-e123-enar-sub-page-title {
    display: none;
}

.e123_main_content #block-e123-enar-sub-content>div>h1 {    
    border-bottom: 1px solid #dddddd;
    color: #108372;
    font-size: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    margin-top: 50px;    
}

.e123_adv_role_reg_form.container {    
    font-family: "Microsoft JhengHei", "微軟正黑體" !important;
    max-width: 550px;
    width: 100%;
    margin-top: 0px;
    padding-left: 0;
    padding-right: 0;
}

.e123_adv_role_reg_form .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f9fc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.e123_adv_role_reg_form h2 {     
    font-size: 27px;
    margin-top: 30px;
    margin-bottom: 30px;    
}
.e123_adv_role_reg_form h2 ~ h2 {
    border-top: 1px solid #ededed;    
    margin-top: 50px;
    padding-top: 50px;
}

.e123_adv_role_reg_form .form-group {
    margin-bottom: 20px;
}

.e123_adv_role_reg_form label {    
    color: #262626;
    font-size: 22px;
    font-weight: 600;
    min-height: 44px;
}

.e123_adv_role_reg_form .required {
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: text-bottom;
    font-size: 17px;
    color: #a51b00;
}

.e123_adv_role_reg_form input[type="text"],
.e123_adv_role_reg_form input[type="number"],
.e123_adv_role_reg_form input[type="tel"],
.e123_adv_role_reg_form input[type="email"],
.e123_adv_role_reg_form input[type="url"],
.e123_adv_role_reg_form select {
    width: 100%;    
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    padding: 10px 12px;    
}

.e123_adv_role_reg_form input:focus,
.e123_adv_role_reg_form select:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.e123_adv_role_reg_form input::placeholder {
    color: #aaa;
    font-size: 14px;
}

.e123_adv_role_reg_form .readonly-field {
    background-color: #f8f8f8;
    color: #666;
    cursor: not-allowed;
}

.e123_adv_role_reg_form .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.e123_adv_role_reg_form .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.e123_adv_role_reg_form .btn-preview,
.e123_adv_role_reg_form .btn-submit {
    background-color: #108372;
    border: 2px solid #108372;
    border-radius: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 33px;
    min-width: 100px;        
    padding: 4px 21px !important;    
}

.e123_adv_role_reg_form .btn-preview:hover,
.e123_adv_role_reg_form .btn-submit:hover {
    background-color: #fff;
    color: #108372;
}

.e123_adv_role_reg_form .btn-submit:disabled {
    background-color: #a0aec0;
    border-color: #a0aec0;
    cursor: not-allowed;
    color: white; /* Ensure text remains white when button is disabled */
}

.e123_adv_role_reg_form .loading-text {
    color: white;
    font-weight: 600;
}


/* Warning styles */
.e123_adv_role_reg_form .warning-container {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
}

.e123_adv_role_reg_form .warning-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #856404;
}

.e123_adv_role_reg_form .warning-list {
    margin: 0;
    padding-left: 20px;
}

.e123_adv_role_reg_form .warning-list li {
    margin-bottom: 5px;
}


/* Status styles */
.e123_adv_role_reg_form .status-container {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.e123_adv_role_reg_form .status-list {
    margin: 0;
    padding-left: 20px;
}

.e123_adv_role_reg_form .status-list li {
    margin-bottom: 5px;
}


/* Preview Styles */
.e123_adv_role_reg_form #previewContainer h1 {
    color: #000;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}
.e123_adv_role_reg_form #previewContent {
    background-color: white;
    padding: 0;    
}

.e123_adv_role_reg_form .preview-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;    
    padding-bottom: 20px;
}

.e123_adv_role_reg_form .preview-label {
    color: #000;    
    font-size: 20px;
    font-weight: bold;
}

.e123_adv_role_reg_form .preview-value {
    color: #666666;
    font-weight: bold;    
}

/* Loading Spinner */
.e123_adv_role_reg_form .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: e123_kol_reg_form_spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes e123_kol_reg_form_spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.e123_adv_role_reg_form .success-message {
    text-align: center;
    /* padding: 40px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); */
}

.e123_adv_role_reg_form .success-icon {
    font-size: 60px;
    color: #48bb78;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: #f0fff4;
    border-radius: 50%;
    display: inline-block;
}

/* PDF Upload Styles */
.e123_adv_role_reg_form .pdf-upload-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
}
.e123_adv_role_reg_form .pdf-upload-section h3 {
    font-size: 22px;
    color: #262626;
    margin: 0 0 20px;
}

.e123_adv_role_reg_form .pdf-upload-section .form-group {
    margin-bottom: 0;
}

.e123_adv_role_reg_form .file-upload-container {
    margin: 0;
}
.e123_adv_role_reg_form .file-upload-container #pdfUpload {
    width: 100%;
}

.e123_adv_role_reg_form .pdf-preview {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.e123_adv_role_reg_form .pdf-preview span {
    margin-left: 10px;
    word-break: break-word;
}

.e123_adv_role_reg_form .loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: e123_kol_reg_form_spin 1s ease-in-out infinite;
}

.e123_adv_role_reg_form .upload-feedback {    
    font-size: 0.9em;
    margin-top: 10px;
}

.e123_adv_role_reg_form .pdf-preview-container {
    margin-top: 10px;
}


.e123_adv_role_reg_form .clear-pdf-btn {
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #f8f9fa;
    color: #e53e3e;
    border: 1px solid #e53e3e;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.e123_adv_role_reg_form .clear-pdf-btn:hover {
    background-color: #fee2e2;
}


/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .e123_adv_role_reg_form .container {
        padding: 15px;
        border-radius: 0;
    }

    .e123_adv_role_reg_form input[type="text"],
    .e123_adv_role_reg_form input[type="number"],
    .e123_adv_role_reg_form input[type="tel"],
    .e123_adv_role_reg_form input[type="email"],
    .e123_adv_role_reg_form input[type="url"],
    .e123_adv_role_reg_form select {
        padding: 10px;
    }

    .e123_adv_role_reg_form .form-actions {
        flex-direction: column;
        gap: 20px;
    }

    .e123_adv_role_reg_form .btn {
        width: 100%;
    }
    
    .e123_adv_role_reg_form .pdf-upload-section {
        padding: 10px;
    }
}