/**
 * Model Registration Wizard Styles
 *
 * @package ModelAgency
 * @since 1.0.0
 */

/* Wizard Container */
.ma-register-model-wizard { 
    margin: 0 auto; 
    background: #ffffff00;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.ma-wizard-progress {
    margin-bottom: 40px;
}

.ma-progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 30px;
}

.ma-progress-fill {
    height: 100%;
    background: var(--ma-primary, #000000);
    transition: width 0.3s ease;
}

/* Wizard Steps */
.ma-wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ma-step {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: default;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.ma-step.active,
.ma-step.completed {
    opacity: 1;
}

.ma-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.ma-step.active .ma-step-number {
    background: var(--ma-primary, #000000);
    color: #fff;
}

.ma-step.completed .ma-step-number {
    background: var(--ma-accent, #B42E78);
    color: #fff;
}

.ma-step.completed .ma-step-number::before {
    content: '\2713';
    font-size: 20px;
}

.ma-step-title {
    display: block;
    font-size: 14px;
    color: #666;
}

.ma-step.active .ma-step-title,
.ma-step.completed .ma-step-title {
    color: #333;
    font-weight: 500;
}

/* Form Steps */
.ma-wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ma-wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ma-wizard-step h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
}

.ma-step-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Form Elements */
.ma-form-group {
    margin-bottom: 25px;
}

.ma-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.ma-col-6 {
    flex: 1;
}

.ma-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.ma-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.ma-form-control:focus {
    outline: none;
    border-color: var(--ma-primary, #000000);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.ma-form-control.error {
    border-color: #dc3545;
}

.required {
    color: #dc3545;
}

.ma-field-error {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.ma-field-info {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Password Strength */
.ma-password-strength {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

.ma-password-strength.weak {
    color: #dc3545;
}

.ma-password-strength.medium {
    color: #ffc107;
}

.ma-password-strength.strong {
    color: #4CAF50;
}

/* Checkboxes */
.ma-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.ma-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ma-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.ma-checkbox span {
    font-size: 15px;
    color: #333;
}

/* Photo Upload */
.ma-photo-section {
    margin-bottom: 40px;
}

.ma-photo-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.ma-photo-info {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.ma-photo-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.ma-photo-dropzone {
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ma-photo-dropzone.drag-over {
    background: #e3f2fd;
    border-color: var(--ma-primary, #000000);
}

.ma-photo-dropzone i {
    font-size: 48px;
    color: #999;
    display: block;
    margin-bottom: 15px;
}

.ma-photo-dropzone p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.ma-photo-input {
    display: none;
}

/* Photo Previews */
.ma-photo-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ma-photo-preview {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.ma-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ma-photo-preview.ma-uploading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.ma-photo-preview.ma-uploading span {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.ma-photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ma-photo-preview:hover .ma-photo-remove {
    opacity: 1;
}

.ma-photo-remove:hover {
    background: #dc3545;
}

/* Social Links */
.ma-social-links .ma-form-group {
    margin-bottom: 15px;
}

.ma-social-links label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ma-social-links label i {
    font-size: 18px;
    color: #666;
}

/* Availability Calendar */
.ma-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.ma-calendar-day {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ma-calendar-day:hover {
    background: #e0e0e0;
}

.ma-day-checkbox {
    margin-right: 10px;
}

.ma-day-checkbox:checked + .ma-day-name {
    font-weight: 600;
    color: var(--ma-primary, #000000);
}

.ma-calendar-day:has(.ma-day-checkbox:checked) {
    background: #e3f2fd;
    border: 1px solid var(--ma-primary, #000000);
}

/* Terms Section */
.ma-terms-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

/* Summary */
.ma-registration-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 25px;
    margin-top: 30px;
}

.ma-registration-summary h3 {
    margin-bottom: 20px;
    color: #333;
}

.ma-summary-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.ma-summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ma-summary-section h4 {
    margin-bottom: 10px;
    color: var(--ma-primary, #000000);
    font-size: 18px;
}

.ma-summary-section p {
    margin: 5px 0;
    color: #666;
}

/* Navigation Buttons */
.ma-register-model-wizard .ma-wizard-navigation {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.ma-register-model-wizard .ma-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ma-register-model-wizard .ma-btn i {
    font-size: 20px;
}

.ma-register-model-wizard .ma-btn-primary {
    background: var(--ma-primary, #000000);
    color: #fff;
}

.ma-register-model-wizard .ma-btn-primary:hover {
    background: var(--ma-primary-hover, #54595F);
}

.ma-register-model-wizard .ma-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.ma-register-model-wizard .ma-btn-secondary:hover {
    background: #5a6268;
}

.ma-register-model-wizard .ma-btn-success {
    background: var(--ma-accent, #B42E78);
    color: #fff;
}

.ma-register-model-wizard .ma-btn-success:hover {
    background: #9f2768;
}

.ma-register-model-wizard .ma-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Force visibility for navigation buttons */
.ma-register-model-wizard .ma-wizard-navigation .ma-btn {
    display: inline-flex !important;
    visibility: visible !important;
}

.ma-register-model-wizard .ma-wizard-navigation .ma-btn[style*="display: none"] {
    display: none !important;
}

/* En la sección de Form Grid existente, agregar: */
.ma-form-group.ma-col-4 {
    width: calc(33.333% - 10px);
}

/* Para mantener responsividad en móviles */
@media (max-width: 768px) {
    .ma-form-group.ma-col-4 {
        width: 100%;
    }
}

/* Loading Overlay */
.ma-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ma-loading-overlay p {
    color: #fff;
    margin-top: 20px;
    font-size: 18px;
}

/* Spinner */
.ma-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--ma-primary, #000000);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.ma-spinner-small {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--ma-primary, #000000);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.ma-messages {
    margin-top: 20px;
}

.ma-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.ma-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ma-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
     
    .ma-wizard-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .ma-step-title {
        display: none;
    }
    
    .ma-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ma-col-6 {
        width: 100%;
    }
    
    .ma-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .ma-calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .ma-photo-preview-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ma-register-model-wizard .ma-wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .ma-register-model-wizard .ma-btn {
        width: 100%;
        justify-content: center;
    }
}