.registration-container{margin-top:20px;}

.phone-validation-status {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
}

.phone-validation-status .text-success {
    color: #28a745;
}

.phone-validation-status .text-danger {
    color: #dc3545;
}

.phone-validation-status .text-info {
    color: #17a2b8;
}

.sms-verification-container {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.sms-step-1,
.sms-step-2,
.sms-step-3 {
    text-align: center;
}

.sms-code-input {
    margin-bottom:10px;
    position: relative;
}
#login-btn{margin:0;}
.sms-code-input input {
    width: 100%;
    max-width: 250px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 1px; margin-top:10px;
}

.sms-code-input input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.resend-sms-btn{display: block;
    margin-top: 5px;
    font-size: 14px;
    text-underline-offset: 4px;
    text-decoration: underline;
    background: none;
    border: none;
    max-width: 250px;
    margin-right: auto;
    margin-left: auto;
    text-align: right;
    width: 100%;
    cursor: pointer;}
    .resend-sms-btn[disabled]{display: none;}


.sms-code-input:focus-within::after {
    opacity: 1;
}

/* SMS actions */
.sms-actions {
    margin-bottom: 15px;
}

.sms-actions .vp-btn {
    margin: 0 5px;
    min-width: 120px;
}

.sms-status,
.sms-code-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
}

.sms-status .text-success,
.sms-code-status .text-success {
    color: #155724;
}
.text-danger{color:red !important;}

.sms-status .text-info,
.sms-code-status .text-info {
    color: #0c5460;
}

/* SMS timer */
.sms-timer {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* SMS success step */
.sms-success {
    color: #28a745;
    font-size: 16px;
    font-weight: 500;
}

.sms-success i {
    font-size: 24px;
    margin-right: 8px;
}

/* Error and success containers */
.phonesync-error-container,
.phonesync-success-container {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid;
}

.phonesync-error-container {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.phonesync-success-container {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Button states */
.vp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner */
.css-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #17a2b8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.css-spinner-large {
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #569742;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .sms-verification-container {
        margin-top: 10px;
        padding: 10px;
    }
    
    .sms-code-input input {
        max-width: 100%;
        font-size: 16px;
    }
    
    .sms-actions .vp-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        min-width: auto;
    }
}

/* VP Advanced User integration */
.vp-form-group .sms-verification-container {
    margin-left: 0;
    margin-right: 0;
}

/* Form validation integration */
.vp-validate-registration .phonesync-error-container {
    margin-top: 10px;
}

/* Accessibility improvements */
.sms-code-input input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.sms-verification-container:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modal Styles */
.phonesync-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phonesync-modal {
    background:#f8f8f8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.phonesync-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phonesync-modal-header h3 {
    margin: 0;
    color: #00473A;
    font-size: 19px;
}

.phonesync-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phonesync-modal-close:hover {
    color: #333;
}

.phonesync-modal-body {
    padding: 20px;
}

.phone-display {
    margin: 15px 0;
    padding:5px;
    text-align:center;font-size:18px;
}
#modal-phone-display{display: block;
    direction: ltr;
    text-align: center;
    background: #fff;
    border: 1px solid #979797;
    text-indent: 5px;
    font-size: 16px;
    line-height: 31px;
    height: 33px;
    width: 100%;}
#send-sms-btn{margin-top:5px;}
.phonesync-modal-error {
    margin-bottom: 15px;
}

/* Modal responsive design */
@media (max-width: 768px) {
    .phonesync-modal {
        width: 95%;
        margin: 10px;
    }
    
    .phonesync-modal-header,
    .phonesync-modal-body {
        padding: 15px;
    }
}
