/* Hebrew Registration Form Styles - RTL Support */

.nvm-reg-container {
    direction: rtl;
    text-align: right;
    font-family: 'Arial', 'Helvetica', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Initial Choice Section */
.nvm-reg-initial-choice {
    text-align: center;
    padding: 40px 20px;
}

.nvm-reg-initial-choice h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.nvm-reg-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.nvm-reg-choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
}

.nvm-reg-choice-btn i {
    font-size: 20px;
}

.nvm-reg-choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 138, 47, 0.3);
}

.nvm-reg-choice-btn:active {
    transform: translateY(0);
}

 .nvm-reg-form .form-heading-section{
    grid-column: 1 / -1;
}

/* Sign-in Section */
.nvm-reg-signin-section {
    background: #f8f9fa;
    border: 2px solid #63395F;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.nvm-reg-signin-section h2 {
    color: #63395F;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Assistant', sans-serif;
}

.nvm-reg-signin-form {
    max-width: 400px;
    margin: 0 auto;
}

.nvm-reg-signin-form .nvm-reg-form-group {
    margin-bottom: 15px;
}

.nvm-reg-signin-form .nvm-reg-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-family: 'Assistant', sans-serif;
}

.nvm-reg-signin-form .nvm-reg-form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Assistant', sans-serif;
    direction: rtl;
    text-align: right;
}

.nvm-reg-signin-form .nvm-reg-form-group input:focus {
    outline: none;
    border-color: #D98A2F;
    box-shadow: 0 0 0 2px rgba(217, 138, 47, 0.2);
}

.nvm-reg-signin-form .nvm-reg-form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}


.nvm-reg-signin-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    background-color: #D98A2F;
    color: white;
}

.nvm-reg-signin-form button:hover {
    background-color: #bf7828;
    box-shadow: 0 4px 8px rgba(217, 138, 47, 0.3);
}

.nvm-reg-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.nvm-reg-form .nvm-reg-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.nvm-reg-form .nvm-reg-form-group.full-width {
    grid-column: 1 / -1;
}

.nvm-reg-form label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.nvm-reg-form input,
.nvm-reg-form textarea,
.nvm-reg-form select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    direction: rtl;
    text-align: right;
}

.nvm-reg-form input:focus,
.nvm-reg-form textarea:focus,
.nvm-reg-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.nvm-reg-form input.error,
.nvm-reg-form textarea.error {
    border-color: #dc3545;
}

.nvm-reg-form textarea {
    min-height: 100px;
    resize: vertical;
}

.nvm-reg-form select {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Remove any additional arrows */
    background-clip: padding-box;
}

/* Checkbox Group Styling - Enhanced Design */
.nvm-reg-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007cba #e9ecef;
}

.nvm-reg-checkbox-group::-webkit-scrollbar {
    width: 6px;
}

.nvm-reg-checkbox-group::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.nvm-reg-checkbox-group::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 3px;
}

.nvm-reg-checkbox-group::-webkit-scrollbar-thumb:hover {
    background: #005a8b;
}

.nvm-reg-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: normal;
    margin-bottom: 0;
}

.nvm-reg-checkbox-group label:hover {
    background: #f0f8ff;
    border-color: #007cba;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.15);
    color: #007cba;
}

.nvm-reg-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #007cba;
    flex-shrink: 0;
    /* Hide the default checkmark */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.nvm-reg-checkbox-group input[type="checkbox"]:checked {
    background: #007cba;
    border-color: #007cba;
}

.nvm-reg-checkbox-group input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.nvm-reg-checkbox-group input[type="checkbox"]:checked + span,
.nvm-reg-checkbox-group input[type="checkbox"]:checked {
    font-weight: 600;
}

.nvm-reg-checkbox-group label:has(input:checked) {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-color: #007cba;
    color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

/* Remove the duplicate checkmark from label since we have it in the checkbox */

/* Required field asterisk styling - make asterisks red */
.nvm-reg-form label {
    color: #333;
}

.nvm-reg-form label .nvm-reg-required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

/* Button Loading States */
.nvm-reg-form .nvm-reg-btn {
    position: relative;
    transition: all 0.3s ease;
}

.nvm-reg-form .nvm-reg-btn:disabled,
.nvm-reg-form .nvm-reg-btn.nvm-reg-btn-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.nvm-reg-form .nvm-reg-btn.loading {
    color: transparent;
}

.nvm-reg-form .nvm-reg-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Loading state for different button types */
.nvm-reg-form .nvm-reg-btn-primary.loading::after {
    border-color: #ffffff;
    border-top-color: transparent;
}

.nvm-reg-form .nvm-reg-btn-secondary.loading::after {
    border-color: #6c757d;
    border-top-color: transparent;
}

.nvm-reg-form .nvm-reg-btn-outline.loading::after {
    border-color: #007cba;
    border-top-color: transparent;
}

/* Warning button style for reset button */
.nvm-reg-form .nvm-reg-btn-warning {
    background-color: #63395F;
    color: white;
    border: 1px solid #63395F;
}

.nvm-reg-form .nvm-reg-btn-warning:hover {
    background-color: #4a2a47;
    border-color: #4a2a47;
    color: white;
}

.nvm-reg-form .nvm-reg-btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 57, 95, 0.5);
}

/* Service checkbox group specific styling */
.nvm-reg-service-checkbox-group {
    max-height: 500px;
}

.nvm-reg-location-checkbox-group {
    max-height: 350px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nvm-reg-checkbox-group {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px;
    }
    
    .nvm-reg-checkbox-group label {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* File Input Styling */
.nvm-reg-form input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.nvm-reg-form input[type="file"]:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

/* Pricing Rows Styling */
.nvm-reg-pricing-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.nvm-reg-pricing-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nvm-reg-pricing-row:hover {
    background: #f0f8ff;
    border-color: #007cba;
}

.nvm-reg-pricing-service,
.nvm-reg-pricing-amount {
    display: flex;
    flex-direction: column;
}

.nvm-reg-pricing-service label,
.nvm-reg-pricing-amount label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.nvm-reg-pricing-service input,
.nvm-reg-pricing-amount input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.nvm-reg-pricing-service input:focus,
.nvm-reg-pricing-amount input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.nvm-reg-pricing-amount input {
    text-align: right;
    direction: ltr;
}

/* Responsive pricing rows */
@media (max-width: 768px) {
    .nvm-reg-pricing-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .nvm-reg-pricing-service,
    .nvm-reg-pricing-amount {
        width: 100%;
    }
}

.nvm-reg-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* Terms Checkbox Styling */
.nvm-reg-form input[type="checkbox"] {
    width: auto;
    margin-left: 10px;
    cursor: pointer;
}

.nvm-reg-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.4;
}

.nvm-reg-form .nvm-reg-form-actions {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.nvm-reg-form-actions-bottom {
    position: sticky;
    bottom: 0;
    margin-top: 40px;
    padding: 20px;
    background: #ffffff;
    border-top: 2px solid #f0f0f0;
    z-index: 100;
    box-shadow: none;
    margin-left: -20px; /* Offset container padding */
    margin-right: -20px; /* Offset container padding */
    border-radius: 0 0 8px 8px;
}

/* Ensure buttons look premium in the sticky bar */
.nvm-reg-form-actions-bottom .nvm-reg-form-buttons {
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile: 2x2 grid for sticky bottom buttons */
@media (max-width: 768px) {
    .nvm-reg-form-actions-bottom {
        padding: 12px 16px;
        margin-left: -20px;
        margin-right: -20px;
    }

    .nvm-reg-form-actions-bottom .nvm-reg-form-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nvm-reg-form-actions-bottom .nvm-reg-form-buttons button {
        padding: 10px 12px;
        font-size: 13px;
        min-width: unset;
        width: 100%;
    }
}

.nvm-reg-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    pointer-events: none;
}

.nvm-reg-messages .nvm-reg-alert {
    pointer-events: auto;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nvm-reg-messages .message.warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.nvm-reg-messages .message.info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.nvm-reg-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.nvm-reg-form button {
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nvm-reg-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nvm-reg-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nvm-reg-btn-primary {
    background-color: #D98A2F;
    color: white;
}

.nvm-reg-btn-primary:hover {
    background-color: #bf7828;
    box-shadow: 0 4px 12px rgba(217, 138, 47, 0.3);
}

.nvm-reg-btn-secondary {
    background-color: #63395F;
    color: white;
}

.nvm-reg-btn-secondary:hover {
    background-color: #4a2a47;
    box-shadow: 0 4px 12px rgba(99, 57, 95, 0.3);
}

