/**
 * SingPass Login Plugin Frontend Styles
 */

 /* ============================================
   SELECT2 HELPER TEXT FIX - Add to singpass-login.css
   ============================================ */

/* Ensure Select2 containers are block-level */
.select2-container {
    width: 100% !important;
    display: block !important;
}

/* Force helper text to appear below Select2 containers */
.select2-container + .myinfo-readonly-indicator {
    display: block !important;
    width: 100% !important;
    margin-top: 6px !important;
    margin-left: 0 !important;
    clear: both !important;
}

/* Fix for form groups containing Select2 */
.form-group .select2-container + .myinfo-readonly-indicator,
.elementor-field-group .select2-container + .myinfo-readonly-indicator {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

/* Ensure Select2 wrapper doesn't interfere */
.select2-container + .myinfo-readonly-indicator {
    position: relative !important;
    z-index: 1 !important;
}

/* Force block display for all MyInfo indicators */
.myinfo-readonly-indicator {
    font-size: 11px !important;
    color: #666 !important;
    font-style: italic !important;
    margin-top: 6px !important;
    margin-left: 0 !important;
    display: block !important;
    line-height: 1.3 !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
}

/* Override any inline styles that might interfere */
.myinfo-readonly-indicator[style] {
    margin-left: 0 !important;
    display: block !important;
}

/* Select2 disabled styling */
.select2-container--disabled .select2-selection {
    background-color: #f8fffe !important;
    border-color: #23B5B5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.select2-container--disabled .select2-selection__arrow {
    display: none !important;
}

.myinfo-readonly + .select2-container .select2-selection {
    background-color: #f8fffe !important;
    border-color: #23B5B5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.cpf-no-data {
    background: #f8fafc;
    border-left: 4px solid #23B5B5;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cpf-no-data::before {
    content: "🏦";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.7;
}

.cpf-no-data p {
    color: #64748b!important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    padding-left: 40px!important;
    text-align: left!important;
}

/* Alternative minimal style */
.cpf-no-data.minimal {
    background: transparent;
    border: none;
    border-left: 3px solid #e2e8f0;
    padding: 16px 20px;
    margin: 12px 0;
    box-shadow: none;
}

.cpf-no-data.minimal::before {
    content: "ℹ️";
    font-size: 16px;
    left: 16px;
}

.cpf-no-data.minimal p {
    color: #64748b;
    font-size: 14px;
    padding-left: 32px;
}

/* Fix for Elementor field groups */
.elementor-field-group {
    position: relative;
}

.elementor-field-group .myinfo-readonly-indicator {
    position: static !important;
    width: 100% !important;
    margin-top: 6px !important;
    margin-left: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .select2-container + .myinfo-readonly-indicator,
    .myinfo-readonly-indicator {
        font-size: 10px !important;
        margin-top: 4px !important;
    }
}

/* SingPass Login Button */
.singpass-login-btn {
    background-color: #f4333d !important;
    border-color: #f4333d !important;
    color: #ffffff !important;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #f4333d;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.singpass-login-btn:hover,
.singpass-login-btn:focus {
    background-color: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 51, 61, 0.3);
    text-decoration: none;
}

.singpass-login-btn:active {
    transform: translateY(0);
}

.singpass-login-btn svg {
    fill: currentColor;
    flex-shrink: 0;
}

.singpass-login-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Login Container */
.singpass-login-container {
    margin: 20px 0;
    text-align: center;
}

/* MyInfo Fields Display */
.myinfo-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.myinfo-field-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.myinfo-field-row:last-child {
    border-bottom: none;
}

.myinfo-label {
    font-weight: 600;
    min-width: 150px;
    margin-right: 15px;
    color: #333;
    flex-shrink: 0;
}

.myinfo-value {
    flex: 1;
    word-break: break-word;
}

.myinfo-value:empty::before {
    content: "Not available";
    color: #666;
    font-style: italic;
}

/* MyInfo Icons */
.myinfo-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* User Info Panel */
.singpass-user-info {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #fafafa;
}

.singpass-user-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #f4333d;
    border-bottom: 2px solid #f4333d;
    padding-bottom: 8px;
}

/* Status Widget */
.singpass-status {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-icon {
    font-size: 18px;
    margin-right: 8px;
}

.status-text {
    font-weight: bold;
}

.sync-info {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9em;
}

.refresh-section {
    margin-top: 15px;
}

/* Notifications */
.singpass-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: slideInRight 0.3s ease-out;
}

.singpass-notification p {
    margin: 0;
    padding-right: 30px;
}

.singpass-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.singpass-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.singpass-notification .notice-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    line-height: 1;
}

.singpass-notification .notice-dismiss:before {
    content: "×";
}

/* Copy Button */
.myinfo-copy-btn {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.myinfo-copy-btn:hover {
    background: #005a87;
}

/* Refresh Button */
.refresh-myinfo-btn {
    background: #f4333d !important;
    color: white !important;
    border-color: #f4333d !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.refresh-myinfo-btn:hover {
    background: #d32f2f !important;
    border-color: #d32f2f !important;
    transform: translateY(-1px);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .myinfo-field-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .myinfo-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .singpass-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .singpass-login-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* WordPress Login Page Specific */
body.login .singpass-login-container {
    margin-top: 16px;
    margin-bottom: 16px;
}

body.login .singpass-login-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

/* Admin Bar Adjustments */
.admin-bar .singpass-notification {
    top: 52px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .singpass-user-info,
    .singpass-status {
        background: #2c2c2c;
        border-color: #444;
        color: #fff;
    }
    
    .myinfo-field-row {
        border-bottom-color: #444;
    }
    
    .myinfo-label {
        color: #ccc;
    }
}

/* Print Styles */
@media print {
    .singpass-login-btn,
    .refresh-myinfo-btn,
    .myinfo-copy-btn {
        display: none;
    }
}

/* Focus Styles for Accessibility */
.singpass-login-btn:focus,
.refresh-myinfo-btn:focus,
.myinfo-copy-btn:focus {
    outline: 2px solid #005cbb;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .singpass-login-btn {
        border: 2px solid #000;
    }
    
    .myinfo-field-row {
        border-bottom: 2px solid #000;
    }
}

/**
 * Modal styles for login required and existing application modals
 * Add to your singpass-login.css file
 */

/* Modal Overlay */
.singpass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

/* Modal Container */
.singpass-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

/* Modal Header */
.singpass-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.singpass-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.singpass-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.singpass-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Modal Content */
.singpass-modal-content {
    padding: 24px;
}

/* Existing Application Info */
.existing-app-info,
.login-required-info {
    text-align: center;
}

.existing-app-info p:first-child {
    font-size: 16px;
    color: #d32f2f;
    margin-bottom: 20px;
}

.app-details {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: left;
}

.app-details p {
    margin: 8px 0;
    color: #333;
}

.action-message {
    color: #666;
    font-size: 14px;
    margin: 16px 0;
    line-height: 1.5;
}

/* Icon Container */
.icon-container {
    margin: 0 0 20px 0;
}

/* Modal Actions */
.modal-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .button {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.modal-actions .button-primary {
    background: #f4333d;
    color: white;
    border-color: #f4333d;
}

.modal-actions .button-primary:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: translateY(-1px);
}

.modal-actions .button-secondary {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.modal-actions .button-secondary:hover {
    background: #005a87;
    border-color: #005a87;
}

.modal-actions .modal-close-btn {
    background: #f8f9fa;
    color: #666;
    border-color: #dee2e6;
}

.modal-actions .modal-close-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Help Text */
.help-text {
    margin-top: 20px;
    padding: 16px;
    background: #e7f3ff;
    border-radius: 6px;
    text-align: left;
}

.help-text small {
    color: #0073aa;
    line-height: 1.4;
}

.help-text strong {
    color: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .singpass-modal {
        width: 95%;
        margin: 10px;
    }
    
    .singpass-modal-header,
    .singpass-modal-content {
        padding: 16px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .button {
        width: 100%;
        margin: 4px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .singpass-modal {
        background: #2c2c2c;
        color: #fff;
    }
    
    .singpass-modal-header {
        background: #333;
        border-bottom-color: #444;
    }
    
    .singpass-modal-header h3 {
        color: #fff;
    }
    
    .app-details {
        background: #333;
        color: #ccc;
    }
    
    .help-text {
        background: #1e3a5f;
        color: #87ceeb;
    }
}

/**
 * Enhanced validation error styles
 * Add this to your singpass-login.css file
 */

/* Field Error States */
.field-error,
input.field-error,
textarea.field-error,
select.field-error {
    border-color: #d32f2f !important;
    border-width: 2px !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.2) !important;
}

.field-error:focus {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1) !important;
    outline: none !important;
}

/* Error Messages */
.error-message {
    color: #d32f2f !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    display: block !important;
    line-height: 1.3 !important;
}

.error-message::before {
    content: "⚠ ";
    margin-right: 2px;
}

/* Elementor specific error styling */
.elementor-field-group .field-error {
    border-color: #d32f2f !important;
    background-color: #fff5f5 !important;
}

.elementor-field-group .error-message {
    margin-top: 5px !important;
    padding: 5px 8px !important;
    background: #ffebee !important;
    border-left: 3px solid #d32f2f !important;
    border-radius: 0 4px 4px 0 !important;
}

/* Form validation summary */
.validation-summary {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #d32f2f;
}

.validation-summary h4 {
    margin: 0 0 8px 0;
    color: #d32f2f;
    font-size: 14px;
    font-weight: 600;
}

.validation-summary ul {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.validation-summary li {
    margin: 4px 0;
    font-size: 13px;
}

/* Enhanced notification styles for errors */
.singpass-notification.singpass-error {
    background-color: #ffebee !important;
    border: 1px solid #ffcdd2 !important;
    border-left: 4px solid #d32f2f !important;
    color: #c62828 !important;
}

.singpass-notification.singpass-error p {
    white-space: pre-line !important;
    line-height: 1.4 !important;
}

/* Loading state improvements */
.button.loading,
button.loading,
input[type="submit"].loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
}

.button.loading::after,
button.loading::after,
input[type="submit"].loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid transparent !important;
    border-top-color: currentColor !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

/* Prevent form submission animation during errors */
.form-has-errors .button,
.form-has-errors button,
.form-has-errors input[type="submit"] {
    animation: shake 0.5s ease-in-out !important;
}

/* Shake animation for error fields */
.shake-error {
    animation: fieldShake 0.6s ease-in-out !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Loading state protection */
.loading {
    pointer-events: none !important;
    position: relative !important;
}

.loading::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    z-index: 1 !important;
}

/* Form disabled state during submission */
form.submitting input,
form.submitting textarea,
form.submitting select,
form.submitting button {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Required field indicators */
.required-field::after {
    content: " *";
    color: #d32f2f;
    font-weight: bold;
}

/* Focus management for errors */
.field-error:focus {
    animation: focusPulse 0.3s ease-in-out;
}

@keyframes focusPulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* Responsive error styling */
@media (max-width: 768px) {
    .error-message {
        font-size: 11px !important;
        margin-top: 3px !important;
    }
    
    .validation-summary {
        padding: 10px 12px !important;
        margin: 12px 0 !important;
    }
    
    .singpass-notification.singpass-error {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
}

/* Dark mode error styling */
@media (prefers-color-scheme: dark) {
    .field-error {
        background-color: #2d1b1b !important;
        border-color: #f44336 !important;
    }
    
    .error-message {
        color: #ff6b6b !important;
    }
    
    .validation-summary {
        background: #2d1b1b !important;
        border-color: #f44336 !important;
        color: #ff6b6b !important;
    }
    
    .elementor-field-group .error-message {
        background: #2d1b1b !important;
        border-left-color: #f44336 !important;
    }
}

/* Print mode - hide errors */
@media print {
    .error-message,
    .validation-summary,
    .field-error {
        display: none !important;
    }
}

/**
 * Elementor-specific error styling
 * Add this to your singpass-login.css file
 */

/* Elementor form error states */
.elementor-form .field-error {
    border-color: #d32f2f !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 1px rgba(211, 47, 47, 0.2) !important;
}

.elementor-form .field-error:focus {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1) !important;
}

/* Elementor field error messages */
.elementor-form .field-error-message {
    color: #d32f2f !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    font-weight: 500 !important;
}

.elementor-form .field-error-message::before {
    content: "⚠ ";
    margin-right: 3px;
}

/* Elementor message styling */
.elementor-message {
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.elementor-message-danger {
    background-color: #ffebee !important;
    border: 1px solid #ffcdd2 !important;
    border-left: 4px solid #d32f2f !important;
    color: #c62828 !important;
}

.elementor-message-success {
    background-color: #e8f5e8 !important;
    border: 1px solid #c8e6c9 !important;
    border-left: 4px solid #4caf50 !important;
    color: #2e7d32 !important;
}

.elementor-message-text {
    margin: 0 !important;
}

.elementor-message ul {
    margin: 8px 0 0 20px !important;
    padding: 0 !important;
}

.elementor-message li {
    margin: 4px 0 !important;
}

/* Loading state for Elementor buttons */
.elementor-form .elementor-button.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
    position: relative !important;
}

.elementor-form .elementor-button.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid transparent !important;
    border-top-color: currentColor !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

/* Disable form during submission */
.elementor-form.submitting .elementor-field-group {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .elementor-message {
        padding: 12px !important;
        font-size: 13px !important;
    }
    
    .elementor-form .field-error-message {
        font-size: 11px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .elementor-message-danger {
        background-color: #2d1b1b !important;
        border-color: #f44336 !important;
        color: #ff6b6b !important;
    }
    
    .elementor-message-success {
        background-color: #1b2d1b !important;
        border-color: #4caf50 !important;
        color: #81c784 !important;
    }
    
    .elementor-form .field-error {
        background-color: #2d1b1b !important;
        border-color: #f44336 !important;
    }
    
    .elementor-form .field-error-message {
        color: #ff6b6b !important;
    }
}

/* ============================================
   ADDITIONAL CSS TO ADD TO singpass-login.css
   (Move these from JavaScript to CSS file)
   ============================================ */

/* MyInfo readonly field styling */
.myinfo-readonly {
    background-color: #f8fffe !important;
    border-color: #23B5B5 !important;
    color: #495057 !important;
    cursor: not-allowed !important;
}

.myinfo-readonly:focus {
    box-shadow: none !important;
    border-color: #23B5B5 !important;
}

/* MyInfo readonly indicator styling */
.myinfo-readonly-indicator {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
    display: block;
    line-height: 1.3;
}

/* Optional: Add a small icon to make it more recognizable */
.myinfo-readonly-indicator::before {
    content: "🛡️";
    margin-right: 4px;
    font-size: 10px;
    opacity: 0.7;
}

/* Ensure proper spacing for form fields */
.form-group .myinfo-readonly-indicator {
    margin-top: 6px;
}

/* Select2 specific styling for MyInfo fields */
.myinfo-readonly.select2-hidden-accessible + .select2-container .select2-selection {
    background-color: #f8fffe !important;
    border-color: #23B5B5 !important;
    cursor: not-allowed !important;
}

/* SingPass indicator animation */
.singpass-indicator {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

/* Modal body overflow for better mobile experience */
body.modal-open {
    overflow: hidden !important;
}

/* Enhanced button styling for modal actions */
.modal-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-buttons .button {
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    background: #23B5B5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: 0px;
    cursor: pointer;
    font-weight: 500;
}

.modal-buttons .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.modal-buttons .button.modal-close-btn {
    background: #30312F;
}

/* Application details styling */
.application-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #425aad;
}

.application-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* SingPass verification prompt */
.singpass-verification-prompt {
    animation: slideDown 0.4s ease-out;
}

/* Success state styling */
.loan-application-success {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease-out;
}

.loan-application-success h3 {
    margin: 0 0 15px 0;
    color: #155724;
}

.loan-application-success p {
    margin: 10px 0;
    color: #155724;
}

/* Enhanced animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .myinfo-readonly-indicator {
        display: block;
        margin-left: 0 !important;
        margin-top: 2px;
        font-size: 10px !important;
    }
    
    .modal-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .modal-buttons .button {
        width: 100%;
        margin: 5px 0;
    }
    
    .loan-application-success {
        padding: 20px 15px;
    }
    
    .success-icon {
        font-size: 48px;
    }
}