/* 
 * Custom Registration Form Styles for Twenty Twenty-Four Theme
 * Add these styles to your theme's style.css file
 */

/* Main container */
.custom-registration-form {
    max-width: 600px;
    margin: 2.5rem auto;
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: var(--wp--preset--font-family--inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    color: #1e1e1e;
    margin-top: 50px!important;
}

/* Heading */
.custom-registration-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--wp--preset--font-family--cardo, Georgia, serif);
    font-weight: 500;
    line-height: 1.2;
    color: #1e1e1e;
}

/* Form rows for side-by-side fields */
.custom-registration-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

/* Single field container */
.custom-registration-form .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Half-width field */
.custom-registration-form .form-group.half {
    padding: 0 0.75rem;
    width: 50%;
}

/* Handle responsive layout */
@media (max-width: 640px) {
    .custom-registration-form .form-group.half {
        width: 100%;
    }
}

/* Form labels */
.custom-registration-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e1e1e;
}

/* Form inputs */
.custom-registration-form input[type="text"],
.custom-registration-form input[type="email"],
.custom-registration-form input[type="password"],
.custom-registration-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
    box-sizing: border-box;
}

/* Focus states */
.custom-registration-form input[type="text"]:focus,
.custom-registration-form input[type="email"]:focus,
.custom-registration-form input[type="password"]:focus,
.custom-registration-form select:focus {
    border-color: #666;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

/* Submit button */
.custom-registration-form input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1e1e1e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.custom-registration-form input[type="submit"]:hover {
    background: #333;
    transform: translateY(-1px);
}

.custom-registration-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Required field indicator */
.custom-registration-form .required {
    color: #d63638;
    margin-left: 0.2rem;
}

/* Error messages */
.custom-registration-form .registration-errors {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.custom-registration-form .error {
    color: #d63638;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Password strength meter */
.password-strength-meter {
    margin-top: 0.5rem;
    height: 1.5rem;
    position: relative;
}

.password-strength-bar {
    height: 4px;
    margin-top: 0.5rem;
    background-color: #e2e4e7;
    position: relative;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-text {
    font-size: 0.8rem;
    color: #757575;
    margin-top: 0.25rem;
    display: block;
}

/* Success message */
.registration-success {
    background: #edf7ed;
    border-left: 4px solid #4caf50;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
    color: #1e4620;
}

/* Login link styles */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}
.login-link p{
    text-align: center;
   
}

.login-link a {
    color: #1e1e1e;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.login-link a:hover {
    color: #444;
}

/**
 * Additional CSS styles for the Trade User Approval System
 * Add these to your login-styles.css file
 */

/* Pending registration message */
.registration-pending-message {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    border-radius: 0 4px 4px 0;
    font-family: var(--wp--preset--font-family--inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

.registration-pending-message p {
    color: #6d6d00;
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.registration-pending-message h2 {
    color: #6d6d00;
    margin-top: 0;
    font-family: var(--wp--preset--font-family--cardo, Georgia, serif);
    font-size: 1.5rem;
}

/* Pending status text on login form */
.login-pending-notice {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.login-pending-notice p {
    color: #6d6d00;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Admin approval interface styles */
.admin-approval-controls {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.admin-approval-controls .button-approve {
    background: #4caf50;
    border-color: #43a047;
    color: white;
}

.admin-approval-controls .button-approve:hover {
    background: #43a047;
}

.admin-approval-controls .button-deny {
    background: #f44336;
    border-color: #e53935;
    color: white;
    margin-left: 10px;
}

.admin-approval-controls .button-deny:hover {
    background: #e53935;
}

/* Status badges in admin area */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.pending {
    background-color: #ffb900;
    color: #6d6d00;
}

.status-badge.approved {
    background-color: #4caf50;
    color: white;
}

.status-badge.retail {
    background-color: #2196f3;
    color: white;
}

/* Additional Trade User Fields Styling */
#trade-user-fields {
   
}

#trade-user-fields h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #1e1e1e;
}

/* Radio button styling */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
}

/* File upload styling */
.custom-registration-form input[type="file"] {
    padding: 0.5rem 0;
    width: 100%;
}

/* Field notes */
.field-note {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Textarea styling */
.custom-registration-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}

.custom-registration-form textarea:focus {
    border-color: #666;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

/* Admin Trade User Details Page Styling */
.trade-user-details {
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trade-user-details h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.status-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.status-section h3 {
    margin-top: 0;
}

.approval-actions {
    margin-top: 1rem;
}

.status-date {
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.user-info-section {
    margin-bottom: 2rem;
}

.reference-documents-section h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.document-item {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 4px;
}

.document-item h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.document-preview {
    margin-bottom: 1rem;
    text-align: center;
}

.document-preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
}

.document-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #666;
}

.document-actions {
    text-align: center;
}/* Simplified styles for single-page registration form */

/* Remove any previous step indicator styles */
.registration-steps-progress,
.registration-step,
.registration-step-connector,
.registration-progress,
.registration-progress-bar,
.step-indicator, 
.inactive-step, 
.active-step, 
.completed-step, 
.step-divider {
    display: none;
}

/* Section titles */
.section-title {
    font-size: 1.3rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #1e1e1e;
}

/* Trade user fields styling */
#trade-user-fields {
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Radio button styling */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}


.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
}

/* Field notes */
.field-note {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Submit button styling */
.custom-registration-form input[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #1e1e1e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 1.5rem;
}

.custom-registration-form input[type="submit"]:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Ensure all form fields have consistent styling */
.custom-registration-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
    box-sizing: border-box;
}

.custom-registration-form input[type="tel"]:focus {
    border-color: #666;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

/* Fix for any potential width issues */
.custom-registration-form .form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Ensure labels are consistent */
.custom-registration-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e1e1e;
}

/* Make sure all inputs have consistent margins */
.custom-registration-form input[type="text"],
.custom-registration-form input[type="email"],
.custom-registration-form input[type="password"],
.custom-registration-form input[type="tel"],
.custom-registration-form select,
.custom-registration-form textarea {
    margin-bottom: 0.25rem;
}

/* Add specific phone field styling if needed */
#phone {
    font-family: var(--wp--preset--font-family--inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

/* Clean Modern File Upload Styling */

/* Enhanced File Upload Styling with Better Visual Feedback */

/* File upload container */
.file-upload-container {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Main drop zone with enhanced states */
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 25px 20px;
    border: 2px dashed #484848;
    border-radius: 8px;
    background-color: #f8fbff;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    margin-bottom: 8px;
}

/* Active drag state */
.file-drop-area.is-active {
    border-color: #1f75cb;
    background-color: #eaf4ff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(31, 117, 203, 0.2);
}

/* File selected state */
.file-drop-area.has-file {
    border-color: #4caf50;
    background-color: #f1f8e9;
    min-height: 120px;
    border-style: solid;
}

/* Upload icon with animations */
.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #000000;
    border-radius: 50%;
    margin-bottom: 15px;
    color: white;
    transition: all 0.3s ease;
}

.file-drop-area.is-active .upload-icon {
    background-color: #1f75cb;
    transform: scale(1.1);
}

.upload-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}

.file-drop-area.is-active .upload-icon svg {
    transform: translateY(-2px);
}

/* File message text with enhanced states */
.file-message {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-drop-area.is-active .file-message {
    color: #1f75cb;
    font-weight: 600;
}

.file-drop-area.has-file .file-message {
    color: #4caf50;
    font-weight: 600;
}

/* File input (hidden) */
.file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Enhanced file status bar */
.file-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #eaf4ff;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.file-status-bar.no-file {
    background-color: #f5f5f5;
    border-left: 3px solid #ddd;
}

.file-status-bar.file-selected {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

/* File status content */
.file-status-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.file-status-icon {
    color: #3487db;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.file-selected .file-status-icon {
    color: #4caf50;
}

.file-status-text {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-selected .file-status-text {
    color: #2e7d32;
}

/* Enhanced remove button */
.file-status-right {
    display: flex;
    align-items: center;
}

.file-status-remove {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: none;
}

.file-status-remove:hover {
    background-color: #ffebee;
    color: #d32f2f;
    transform: scale(1.1);
}

.file-selected .file-status-remove {
    display: block;
}

/* Hide/show elements based on state */
.has-file .upload-icon {
    display: none !important;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.file-drop-area.has-file::before {
    content: "✓";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    animation: checkmark 0.5s ease-in-out;
}

/* Error states */
.file-size-error {
    margin-top: 8px;
    padding: 10px;
    background-color: #ffebee;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #d32f2f;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Document field notes */
.file-field-note {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Custom file input label */
.file-upload-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e1e1e;
}

/* Loading state */
.file-upload-loading {
    position: relative;
}

.file-upload-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .file-drop-area {
        min-height: 150px;
        padding: 15px;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
    }
    
    .upload-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .file-message {
        font-size: 0.9rem;
    }
    
    .file-status-bar {
        padding: 10px 12px;
    }
    
    .file-status-text {
        font-size: 0.8rem;
    }
}

/* Focus states for accessibility */
.file-input:focus + .file-drop-area {
    outline: 2px solid #1f75cb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .file-drop-area {
        border-width: 3px;
    }
    
    .file-status-bar {
        border-width: 2px;
        border-style: solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .file-drop-area,
    .upload-icon,
    .file-message,
    .file-status-bar {
        transition: none;
    }
    
    .checkmark,
    .slideDown,
    .spin {
        animation: none;
    }
}

/* Quick fix to ensure remove button is always visible */
.file-status-remove {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block !important; /* Force it to show */
}

.file-status-remove:hover {
    background-color: #ffebee;
    color: #d32f2f;
    transform: scale(1.1);
}

/* Alternative: Only hide initially, then show when file has content */
.file-status-bar.no-file .file-status-remove {
    display: none !important;
}

/* Show when there's actually a file selected (this will work with your existing JS) */
.file-status-bar:not(.no-file) .file-status-remove {
    display: block !important;
}

/* Add these styles to your existing registration-styles.css file */

.form-submission-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.form-submission-message.loading {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    color: #495057;
}

.form-submission-message.success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.form-submission-message.error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

input[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}