/* Banimode Custom Registration Styles */

/* Mobile Form Styles */
.banimode-mobile-form {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.banimode-mobile-form-container h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.banimode-mobile-form-container p {
    margin: 0 0 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.banimode-form-group {
    margin-bottom: 20px;
    text-align: right;
}

.banimode-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.banimode-form-group input[type="tel"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    direction: ltr;
    transition: border-color 0.3s ease;
}

.banimode-form-group input[type="tel"]:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.banimode-form-actions {
    margin-top: 25px;
}

.banimode-form-actions .button {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.banimode-form-actions .button-primary {
    background: #007cba;
    color: white;
}

.banimode-form-actions .button-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.banimode-form-actions .button:not(.button-primary) {
    background: #6c757d;
    color: white;
}

.banimode-form-actions .button:not(.button-primary):hover {
    background: #545b62;
}

/* User Info Styles */
.banimode-user-info {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    text-align: right;
}

.banimode-user-info h4 {
    margin: 0 0 15px;
    color: #155724;
    font-size: 18px;
}

.banimode-user-details {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.banimode-user-details p {
    margin: 5px 0;
    color: #333;
}

.banimode-user-details strong {
    color: #007cba;
}

/* Loading Styles */
.banimode-loading {
    text-align: center;
    padding: 30px;
}

.banimode-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: banimode-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes banimode-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.banimode-loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Messages Styles */
.banimode-messages {
    margin-top: 20px;
}

.banimode-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.banimode-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.banimode-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.banimode-message.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Modal Styles */
.banimode-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banimode-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.banimode-modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banimode-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.banimode-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.banimode-modal-close:hover {
    color: #333;
    background-color: #f5f5f5;
}

.banimode-modal-body {
    padding: 20px 25px 25px;
}

/* Address List Styles */
.banimode-addresses-list {
    margin: 20px 0;
}

.banimode-address-item {
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banimode-address-item:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

.banimode-address-item.selected {
    border-color: #007cba;
    background-color: #e8f5e8;
}

.banimode-address-item input[type="radio"] {
    margin-left: 10px;
}

.banimode-address-details {
    margin-right: 30px;
}

.banimode-address-details h5 {
    margin: 0 0 8px;
    color: #333;
    font-size: 16px;
}

.banimode-address-details p {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

.banimode-address-details .address-alias {
    font-weight: bold;
    color: #007cba;
}

.banimode-address-details .address-full {
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banimode-mobile-form {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .banimode-mobile-form-container h3 {
        font-size: 20px;
    }
    
    .banimode-mobile-form-container p {
        font-size: 14px;
    }
    
    .banimode-form-group input[type="tel"] {
        max-width: 100%;
        font-size: 14px;
    }
    
    .banimode-form-actions .button {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px;
    }
    
    .banimode-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .banimode-modal-header {
        padding: 15px 20px 10px;
    }
    
    .banimode-modal-body {
        padding: 15px 20px 20px;
    }
    
    .banimode-address-item {
        padding: 12px;
    }
    
    .banimode-address-details {
        margin-right: 25px;
    }
}

@media (max-width: 480px) {
    .banimode-mobile-form {
        padding: 15px;
    }
    
    .banimode-mobile-form-container h3 {
        font-size: 18px;
    }
    
    .banimode-form-actions .button {
        width: 100%;
        margin: 5px 0;
    }
    
    .banimode-modal-content {
        width: 98%;
        margin: 10px;
    }
}

/* RTL Support */
.rtl .banimode-mobile-form-container {
    text-align: right;
}

.rtl .banimode-form-group {
    text-align: right;
}

.rtl .banimode-form-group input[type="tel"] {
    text-align: center;
}

.rtl .banimode-user-info {
    text-align: right;
}

.rtl .banimode-address-details {
    margin-right: 0;
    margin-left: 30px;
}

/* Animation for modal appearance */
.banimode-modal {
    animation: banimode-fadeIn 0.3s ease-out;
}

.banimode-modal-content {
    animation: banimode-slideIn 0.3s ease-out;
}

@keyframes banimode-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes banimode-slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .banimode-mobile-form {
        border: 2px solid #000;
    }
    
    .banimode-form-group input[type="tel"] {
        border: 2px solid #000;
    }
    
    .banimode-address-item {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .banimode-modal,
    .banimode-modal-content {
        animation: none;
    }
    
    .banimode-spinner {
        animation: none;
    }
    
    .banimode-form-actions .button {
        transition: none;
    }
}
