.olink_adv_role_reg_form {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
}

.olink_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);
}

.olink_adv_role_reg_form #formContainer,
.olink_adv_role_reg_form #previewContainer {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px #d1e6ef;
    max-width: 1200px;
    margin: 0 auto 150px;
    padding: 30px;
}

.olink_adv_role_reg_form #successContainer {
    max-width: 1200px;
    margin: 0 auto 150px;
}

.olink_adv_role_reg_form h1 {
    text-align: center;
    color: #322959;
    font-size: 24px;
    margin-bottom: 30px;
}

.olink_adv_role_reg_form h2 {
    color: #4B4E59;
    font-size: 27px !important;
    font-weight: 500;
    margin-bottom: 30px;
}

.olink_adv_role_reg_form h2~h2 {
    border-top: 1px solid #dedede;
    margin-top: 40px;
    padding-top: 30px;
}

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

.olink_adv_role_reg_form .required {
    margin-left: 2px;
}

.olink_adv_role_reg_form input[type="text"],
.olink_adv_role_reg_form input[type="number"],
.olink_adv_role_reg_form input[type="tel"],
.olink_adv_role_reg_form input[type="email"],
.olink_adv_role_reg_form input[type="url"] {
    /* transition: border 0.3s ease; */
    border: #d6d8eb 1px solid;
    border-radius: 8px;
    color: #686868;
    font-family: Helvetica, 微軟正黑體, Microsoft JhengHei, PingFang TC 細明體_HKSCS-ExtB, "Ming(for ISO10646)ExtB", Arial, sans-serif;
    font-size: 18px;
    line-height: 40px;
    width: 100%;
    margin-top: 0;
    padding: 0 20px;
}

.olink_adv_role_reg_form select {
    appearance: none;
    background: url(/themes/contrib/aristotle/dist/images/cart/form-select-dropdown-arrow.svg) right 20px center no-repeat;
    border: #d6d8eb 1px solid;
    border-radius: 8px;
    color: #686868;
    display: block;
    font-family: Helvetica, 微軟正黑體, Microsoft JhengHei, PingFang TC 細明體_HKSCS-ExtB, "Ming(for ISO10646)ExtB", Arial, sans-serif;
    font-size: 18px;
    line-height: 40px;
    margin-top: 0;
    padding: 0 50px 0 20px;
}

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

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

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

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

.olink_adv_role_reg_form .btn {
    border: none;
    border-radius: 8px !important;
    display: block;
    color: #461f00;
    font-size: 18px;
    font-weight: 400;
    line-height: 40px;
    min-width: auto;
    min-height: auto;
    width: 155px;
    padding: 0 10px;
}

.olink_adv_role_reg_form .btn-submit {
    background-color: #2c5282;
    color: white;
}

.olink_adv_role_reg_form .btn-submit:hover {
    background-color: #1a365d;
}

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

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


/* Warning styles */
.olink_adv_role_reg_form .warning-container {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    color: #856404;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 15px;
}

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

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

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

.olink_adv_role_reg_form .warning-list li a {
    padding: 0 5px;
    color: #856404;
    text-decoration: underline;
}

.olink_adv_role_reg_form .warning-list li a:hover {
    color: #5a3e00;
    text-decoration: none;
}

.olink_adv_role_reg_form .warning-list li a:visited {
    color: #856404;
}

.olink_adv_role_reg_form .warning-list li a:visited:hover {
    color: #5a3e00;
    text-decoration: none;
}



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

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

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


/* Preview Styles */
.olink_adv_role_reg_form #previewContent {
    margin-bottom: 40px;
}

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

.olink_adv_role_reg_form .preview-label {
    font-weight: bold;
    color: #4B4E59;
}

.olink_adv_role_reg_form .preview-value {
    color: #4B4E59;
    margin-top: 10px;
}

/* Loading Spinner */
.olink_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: olink_kol_reg_form_spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Success Message */
.olink_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);
}

.olink_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;
}

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

    .olink_adv_role_reg_form #formContainer,
    .olink_adv_role_reg_form #previewContainer {
        padding: 20PX;
    }

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

    .olink_adv_role_reg_form .btn {
        width: 100%;
    }
}