/**
 * MEC Organizer Manager - Registration Form Styles
 * Matches the Mahj Hub design
 */

/* Modal Wrapper */
.mecom-host-registration-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Modal Container */
.mecom-host-registration-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Top accent bar */
.mecom-host-registration-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #3D4F5F;
}

/* Hide accent bar when class applied */
.mecom-host-registration-modal.mecom-no-accent-bar::before {
    display: none;
}

/* Close Button */
.mecom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s;
}

.mecom-modal-close:hover {
    color: #333;
}

/* Logo */
.mecom-modal-logo {
    text-align: center;
    padding: 40px 20px 20px;
}

.mecom-modal-logo img {
    max-width: 80px;
    height: auto;
}

/* Form Title */
.mecom-form-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 30px;
    padding: 0 40px;
    position: relative;
}

/* Decorative lines on title */
.mecom-form-title::before,
.mecom-form-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #ddd;
}

.mecom-form-title::before {
    left: 20px;
}

.mecom-form-title::after {
    right: 20px;
}

/* Form Step */
.mecom-form-step {
    padding: 0 50px 40px;
}

.mecom-form-step[style*="display: none"],
.mecom-form-step[style*="display:none"] {
    display: none !important;
}

/* Required Note */
.mecom-required-note {
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
}

/* Form Groups */
.mecom-form-group {
    margin-bottom: 24px;
}

.mecom-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.mecom-form-group input[type="text"],
.mecom-form-group input[type="email"],
.mecom-form-group input[type="tel"],
.mecom-form-group input[type="url"],
.mecom-form-group input[type="password"],
.mecom-form-group select,
.mecom-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mecom-form-group input:focus,
.mecom-form-group select:focus,
.mecom-form-group textarea:focus {
    outline: none;
    border-color: #3D4F5F;
    box-shadow: 0 0 0 3px rgba(61, 79, 95, 0.1);
}

.mecom-form-group input::placeholder,
.mecom-form-group textarea::placeholder {
    color: #999;
}

/* Field Hints */
.mecom-field-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    font-style: italic;
}

/* Phone Input */
.mecom-phone-input-wrapper {
    display: flex;
    gap: 10px;
}

.mecom-phone-country {
    width: 80px !important;
    flex-shrink: 0;
}

.mecom-phone-input-wrapper input[type="tel"] {
    flex: 1;
}

/* Password Input */
.mecom-password-wrapper {
    position: relative;
}

.mecom-password-wrapper input {
    padding-right: 50px;
}

.mecom-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.mecom-password-toggle:hover {
    color: #333;
}

/* reCAPTCHA */
.mecom-recaptcha-group {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.mecom-recaptcha-group .g-recaptcha {
    transform-origin: left top;
}

/* Form Buttons */
.mecom-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.mecom-form-buttons.mecom-single-button {
    justify-content: center;
}

.mecom-form-buttons.mecom-single-button .mecom-btn {
    min-width: 200px;
}

.mecom-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    border: 2px solid transparent;
}

.mecom-btn-primary {
    background: #3D4F5F;
    color: #fff;
    border-color: #3D4F5F;
}

.mecom-btn-primary:hover {
    background: #2d3d4a;
    border-color: #2d3d4a;
}

.mecom-btn-secondary {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.mecom-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.mecom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Optional Note */
.mecom-optional-note {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Verification Code Inputs */
.mecom-verification-code {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.mecom-code-input {
    width: 55px !important;
    height: 65px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 12px;
}

.mecom-code-input:focus {
    border-color: #3D4F5F;
    outline: none;
}

.mecom-verify-message {
    text-align: center;
    color: #666;
    margin-bottom: 10px;
}

.mecom-verify-phone {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0;
}

.mecom-wrong-number {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.mecom-wrong-number a {
    color: #333;
    text-decoration: underline;
}

.mecom-resend-timer {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.mecom-resend-link {
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
}

.mecom-resend-link a {
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
}

.mecom-resend-link a.disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Social Links */
.mecom-social-links-wrapper {
    margin-bottom: 10px;
}

.mecom-social-link-row {
    margin-bottom: 10px;
}

.mecom-social-link-row:last-child {
    margin-bottom: 0;
}

.mecom-add-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.mecom-add-social-btn:hover {
    border-color: #3D4F5F;
    color: #3D4F5F;
}

/* Character Count */
.mecom-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Thank You Step */
.mecom-thank-you-step {
    text-align: center;
    padding: 40px 50px 60px;
}

.mecom-thank-you-content {
    margin: 60px 0;
}

.mecom-thank-you-message {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mecom-thank-you-note {
    font-size: 15px;
    color: #666;
}

/* Loading Overlay */
.mecom-form-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 20px;
}

.mecom-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3D4F5F;
    border-radius: 50%;
    animation: mecom-spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.mecom-form-loading p {
    color: #666;
    font-size: 14px;
}

/* Error States */
.mecom-form-group.has-error input,
.mecom-form-group.has-error select,
.mecom-form-group.has-error textarea {
    border-color: #dc3545;
}

.mecom-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Skip Verification Link - Hidden (verification is now required) */
.mecom-skip-verification,
.mecom-skip-note {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .mecom-host-registration-wrapper {
        padding: 10px;
    }
    
    .mecom-form-step {
        padding: 0 25px 30px;
    }
    
    .mecom-form-title {
        font-size: 22px;
        padding: 0 20px;
    }
    
    .mecom-form-title::before,
    .mecom-form-title::after {
        width: 20px;
    }
    
    .mecom-form-title::before {
        left: 10px;
    }
    
    .mecom-form-title::after {
        right: 10px;
    }
    
    .mecom-form-buttons {
        flex-direction: column;
    }
    
    .mecom-btn {
        width: 100%;
    }
    
    .mecom-verification-code {
        gap: 10px;
    }
    
    .mecom-code-input {
        width: 45px !important;
        height: 55px;
        font-size: 20px;
    }
    
    .mecom-phone-input-wrapper {
        flex-direction: column;
    }
    
    .mecom-phone-country {
        width: 100% !important;
    }
}

/* Progress indicator (optional - can be added later) */
.mecom-progress-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.mecom-progress-step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s;
}

.mecom-progress-step.active {
    background: #3D4F5F;
}

.mecom-progress-step.completed {
    background: #28a745;
}
