/**
 * Registration Page Styles
 * Custom styling for the MemberPress registration/signup pages
 * Matching the member profile/directory design
 */

/* Reset and base */
.mepr-signup-form,
.mepr-signup-form * {
    box-sizing: border-box;
}

/* Main signup form container */
.mepr-signup-form {
    max-width: 120rem;
    margin: 2rem auto;
    padding: 0;
    background: #ffffff;
    border-radius: 4px;
}

/* Form sections */
.mepr-signup-form > div:first-child {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Price/Terms section */
.mp-form-row.mepr_price {
    border-radius: 4px;
    padding: 0rem;
    margin-bottom: 2rem !important;
    display: flex;
}

.mepr_price_cell_label {
    font-weight: 600;
    color: #022c68;
    font-size: 1.1em;
    max-width:200px;
}

.mepr_price_cell {
    font-size: 1.3em;
    font-weight: bold;
}

/* Form rows */
.mp-form-row {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Labels to the Left Layout */
.mepr-signup-form .mp-form-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
}

.mepr-signup-form .mp-form-row .mp-form-label {
    flex: 0 0 200px !important;
    padding-top: 12px !important;
    margin-bottom: 0 !important;
}

.mepr-signup-form .mp-form-row .mp-form-label label {
    margin-bottom: 0 !important;
}

.mepr-signup-form .mp-form-row > div:not(.mp-form-label) {
    flex: 1 !important;
}

/* Keep checkbox and multiselect fields stacked */
.mepr-signup-form .mp-form-row:has(.mepr-checkboxes-field),
.mepr-signup-form .mp-form-row:has(.mepr-multiselect-field),
.mepr-signup-form .mp-form-row:has(select[multiple]) {
    display: block !important;
}

.mepr-signup-form .mp-form-row:has(.mepr-checkboxes-field) .mp-form-label,
.mepr-signup-form .mp-form-row:has(.mepr-multiselect-field) .mp-form-label,
.mepr-signup-form .mp-form-row:has(select[multiple]) .mp-form-label {
    flex: none !important;
    max-width: none !important;
    padding-top: 0 !important;
    display: block !important;
    margin-bottom: 8px !important;
}

/* Card styling for checkbox and multiselect fields */
.mepr-signup-form .mp-form-row:has(.mepr-checkboxes-field),
.mepr-signup-form .mp-form-row:has(.mepr-multiselect-field) {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 2px !important;
    padding: 2rem 2.5rem !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced spacing for labels inside cards */
.mepr-signup-form .mp-form-row:has(.mepr-checkboxes-field) .mp-form-label label,
.mepr-signup-form .mp-form-row:has(.mepr-multiselect-field) .mp-form-label label {
    font-weight: 600 !important;
    font-size: 17px !important;
    color: #333 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: block !important;
}

/* Labels */
.mp-form-label label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95em;
}

/* Required indicator */
.mp-form-label .cc-error {
    color: #dc2626;
    font-size: 0.85em;
    font-weight: normal;
    margin-left: 0.5em;
}

/* Input fields */
.mepr-form-input,
.mepr-form-input.mepr-select-field,
textarea.mepr-form-input {
    width: 100%;
    padding: 0.75rem;
    /* border: 1px solid #d1d5db; */
    border-radius: 4px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mepr-form-input:focus,
.mepr-form-input.mepr-select-field:focus,
textarea.mepr-form-input:focus {
    outline: none;
    border-color: #10c2ba;
    box-shadow: 0 0 0 3px rgba(16, 194, 186, 0.1);
}

/* Checkboxes and radio buttons - Three column layout */
.mp-form-row input[type="checkbox"],
.mp-form-row input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Checkbox Fields - 3 Column Layout */
.mp-form-row .mepr-checkboxes-field,
.mepr-signup-form .mepr-checkboxes-field {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem 1.25rem !important;
    margin-top: 1rem !important;
    padding-top: 0.5rem !important;
}

.mepr-checkboxes-field .mepr-checkboxes-field-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.25rem 0 !important;
}

.mepr-checkboxes-field .mepr-form-checkboxes-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
    position: relative !important;
    background: #fff !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.mepr-checkboxes-field .mepr-form-checkboxes-input:hover {
    border-color: #9ca3af !important;
}

.mepr-checkboxes-field .mepr-form-checkboxes-input:focus {
    outline: 2px solid #022c68 !important;
    outline-offset: 2px !important;
}

.mepr-checkboxes-field .mepr-form-checkboxes-input:checked {
    background: #022c68 !important;
    border-color: #022c68 !important;
}

.mepr-checkboxes-field .mepr-form-checkboxes-input:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 2px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.mepr-checkboxes-field .mepr-form-checkboxes-label {
    margin: 0 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

/* Multiselect Field Styling */
.mepr-multiselect-field,
select[multiple].mepr-form-input {
    min-height: 200px !important;
    padding: 0.75rem !important;
    margin-top: 1rem !important;
    border: none !important;
    border-radius: 0 !important;
    background: #fafafa !important;
}

select[multiple].mepr-form-input option {
    padding: 0.5rem !important;
    cursor: pointer !important;
}

select[multiple].mepr-form-input option:checked {
    background: linear-gradient(0deg, #3b82f6 0%, #3b82f6 100%) !important;
    color: white !important;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 968px) {
    .mp-form-row .mepr-checkboxes-field,
    .mepr-signup-form .mepr-checkboxes-field {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .mp-form-row .mepr-checkboxes-field,
    .mepr-signup-form .mepr-checkboxes-field {
        grid-template-columns: 1fr !important;
    }
}

/* Hidden fields */
.mepr-hidden {
    display: none;
}

/* Submit button */
.mepr-submit,
input[type="submit"].mepr-submit {
    width: 250px;
    padding: 1rem;
    background-color: #022c68;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1.5rem;
}

.mepr-submit:hover,
input[type="submit"].mepr-submit:hover {
    background-color: #10c2ba;
}

/* Validation errors */
.mepr-form-has-errors .mepr-form-input {
    border-color: #dc2626;
}

.mepr_error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success messages */
.mepr_success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Force single column layout for MemberPress checkout */
.mepr-checkout-container {
    flex-direction: column-reverse !important;
    max-width: 800px;
    margin: 0 auto;
}

.mepr-checkout-container .invoice-wrapper {
    width: 100% !important;
    padding: 2rem !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
    background: #f7f7f7;
    border-radius: 4px 4px 0 0;
}

.mepr-checkout-container .form-wrapper {
    width: 100% !important;
    border-left: none !important;
    padding: 2rem !important;
    background: #ffffff;
    border-radius: 0 0 4px 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .mepr-signup-form {
        margin: 1rem;
    }
    
    .mepr-signup-form > div:first-child {
        padding: 1.5rem;
    }
    
    .mepr-checkout-container .invoice-wrapper,
    .mepr-checkout-container .form-wrapper {
        padding: 1.5rem !important;
    }
    
    .mp-form-row.mepr_price {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Stack labels on mobile for better readability */
    .mepr-signup-form .mp-form-row {
        display: block !important;
    }
    
    .mepr-signup-form .mp-form-row .mp-form-label {
        flex: none !important;
        max-width: none !important;
        padding-top: 0 !important;
        margin-bottom: 8px !important;
    }
    
    /* Adjust card padding on mobile */
    .mepr-signup-form .mp-form-row:has(.mepr-checkboxes-field),
    .mepr-signup-form .mp-form-row:has(.mepr-multiselect-field) {
        padding: 1.5rem 1.25rem !important;
    }
}

.mp_wrapper {border:1px solid #ddd;
padding:20px;}

.mepr_payment_method-wrapper {
    flex-direction:column;
}

