/*  Theme Name: Hello Elementor Child
    Author: Asymmetric
	Author URI: https://asymmetric.pro/
	Template: hello-elementor
	Version: 1.0.0
*/

/* B2B Multi-Step Registration Form Styles */

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.step-navigation li {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-navigation li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-navigation li.active::after {
    background: #28a745;
}

.step-navigation .step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.step-navigation li.active .step-number {
    background: #28a745;
    color: white;
}

.step-navigation li.completed .step-number {
    background: #28a745;
    color: white;
}

/* Step Content */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Form Fields */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #28a745;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* File Upload Styling */
.form-row input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #28a745;
    border-radius: 5px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-row input[type="file"]:hover {
    background: #e8f5e8;
    border-color: #1e7e34;
}

.form-row small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #e8f5e8;
    border-color: #28a745;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #28a745;
    border-color: #28a745;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Button Styling */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.form-row.error input,
.form-row.error select {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Success Messages */
.success-message {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2b-registration-form {
        padding: 15px;
        margin: 10px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-navigation li:not(:last-child)::after {
        display: none;
    }
    
/*     .form-navigation {
        flex-direction: column;
    } */
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .step h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row select,
    .form-row textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
}

/* WooCommerce Integration Styles */
.woocommerce .b2b-registration-form {
    margin: 20px 0;
}

.woocommerce-form-register .b2b-registration-form {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Hide default WooCommerce registration fields when B2B form is active */
.woocommerce-form-register .woocommerce-form-row:not(.b2b-registration-form) {
    display: none;
}

/* Email validation styling */
.email-validation {
    margin-top: 5px;
    font-size: 12px;
}

.email-validation.valid {
    color: #28a745;
}

.email-validation.invalid {
    color: #dc3545;
}

/* Same as billing checkbox styling */
.same-as-billing-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

/* Step indicator improvements */
.step-navigation .step-title {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.step-navigation li.active .step-title {
    color: #28a745;
    font-weight: 500;
}

/* Form validation improvements */
.woocommerce-error,
.woocommerce-message {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 5px;
}

.woocommerce-error {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.woocommerce-message {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    color: #0c4a6e;
}

/* Loading state */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #28a745;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* File upload preview */
.file-preview {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e8f5e8;
    border-radius: 4px;
    font-size: 12px;
    color: #1e7e34;
    display: none;
}

.file-preview.show {
    display: block;
}

/* Required field indicator */
.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Default hide for logged out users */
body.user-logged-out .variations_form .woocommerce-variation-price {
    display: none !important;
}

/* Show for logged in users */
body.user-logged-in .variations_form .woocommerce-variation-price {
    display: block !important;
}