/**
 * MORS Frontend Styles - Modern & Attractive Design
 */

.mors-form-container {
    max-width: 450px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Styles */
.mors-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mors-modal.show {
    opacity: 1;
    visibility: visible;
}

.mors-modal-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.mors-modal.show .mors-modal-content {
    transform: scale(1);
}

.mors-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mors-modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mors-form-container {
        padding: 15px;
        margin: 20px auto;
        min-height: auto;
    }

    .mors-form-wrapper {
        padding: 30px 25px;
        border-radius: 20px;
    }

    .mors-form-header h2 {
        font-size: 24px;
    }

    .mors-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 16px 20px;
    }

    .mors-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mors-form-container {
        padding: 10px;
        margin: 10px auto;
    }

    .mors-form-wrapper {
        padding: 25px 20px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .mors-form-header {
        margin-bottom: 25px;
    }

    .mors-form-header h2 {
        font-size: 22px;
    }

    .mors-form-group {
        margin-bottom: 20px;
    }

    .mors-input {
        padding: 14px 18px;
    }

    .mors-btn {
        padding: 14px 20px;
    }
}

.mors-form-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 50px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.mors-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2d3748 0%, #1a202c 100%);
}

.mors-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.mors-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mors-form-header p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.mors-form-group {
    margin-bottom: 24px;
}

.mors-form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.mors-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mors-input-prefix {
    position: absolute;
    left: 16px;
    color: #718096;
    font-weight: 500;
    z-index: 1;
    font-size: 14px;
}

.mors-input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 60px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
    box-sizing: border-box;
}

.mors-input:focus {
    outline: none;
    border-color: #2d3748;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

.mors-input-otp {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
    padding-left: 16px;
    font-family: 'Courier New', monospace;
}

.mors-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #718096;
}

.mors-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.mors-btn-primary {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #374151;
    box-shadow: none;
}

.mors-btn-primary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mors-btn-primary:active {
    transform: translateY(0);
}

.mors-btn-block {
    width: 100%;
}

.mors-btn-link {
    background: transparent;
    color: #667eea;
    padding: 10px;
    margin-top: 12px;
    font-size: 14px;
}

.mors-btn-link:hover {
    color: #1a202c;
    text-decoration: underline;
}

.mors-btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

.mors-form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.mors-form-message.show {
    display: block;
}

.mors-form-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.mors-form-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.mors-step {
    animation: fadeIn 0.3s ease;
}

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

.mors-resend-otp {
    margin-top: 16px;
    text-align: center;
    display: block;
    width: 100%;
}

.mors-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 14px;
}

.mors-alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

/* Responsive */
@media (max-width: 768px) {
    .mors-form-container {
        margin: 20px;
        max-width: 100%;
    }
    
    .mors-form-wrapper {
        padding: 30px 24px;
    }
    
    .mors-form-header h2 {
        font-size: 24px;
    }
}

/* Loading state */
.mors-form.loading .mors-btn-text {
    opacity: 0;
}

.mors-form.loading .mors-btn-loader {
    display: inline-block !important;
}


/* RTL Support */
body.rtl .mors-input-prefix {
    left: auto;
    right: 16px;
}

body.rtl .mors-input {
    padding-left: 16px;
    padding-right: 60px;
}

/* Google Login Styles */
.mors-social-login-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.mors-social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.mors-social-login-divider span {
    background: #ffffff;
    padding: 0 16px;
    color: #64748b;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.mors-btn-google {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #374151 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
}

.mors-btn-google:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mors-google-icon {
    flex-shrink: 0;
}

.mors-google-btn-text {
    flex: 1;
    text-align: center;
}

.mors-btn-google .mors-btn-loader {
    margin-left: 8px;
}

/* Phone Button Styles - Similar to Google Button */
.mors-btn-phone {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #374151 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
}

.mors-btn-phone:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mors-btn-phone .mors-btn-loader {
    margin-left: 8px;
}

.mors-phone-icon {
    flex-shrink: 0;
    color: #10b981; /* Green color for phone icon */
}

.mors-btn-phone .mors-btn-text {
    flex: 1;
    text-align: center;
}

/* Google Button Loading State */
.mors-btn-google.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Google Button Success State */
.mors-btn-google.success {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: white !important;
}


/* Login Placeholder */
.mors-login-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #374151;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: none;
}

.mors-login-placeholder:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mors-login-placeholder:active {
    transform: translateY(0);
}

/* Modal Trigger Links */
a.mors-modal-trigger,
button.mors-modal-trigger {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
}

a.mors-modal-trigger:hover,
button.mors-modal-trigger:hover {
    color: #1a202c;
    text-decoration: underline;
}

button.mors-modal-trigger {
    font-family: inherit;
}

/* Responsive Google Button */
@media (max-width: 480px) {
    .mors-btn-google,
    .mors-btn-phone {
        padding: 14px 20px !important;
        font-size: 16px !important;
    }

    .mors-google-icon,
    .mors-phone-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .mors-login-placeholder {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Template 2: Modern Styles */
.mors-template-2 .mors-modern-wrapper,
.mors-modal .mors-template-2 .mors-modern-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.mors-template-2 .mors-modern-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.mors-template-2 .mors-modern-header h2 {
    color: white;
    margin-bottom: 10px;
}

.mors-template-2 .mors-modern-header p {
    color: rgba(255, 255, 255, 0.9);
}

.mors-icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mors-icon-circle .mors-icon {
    color: white;
}

.mors-template-2 .mors-btn-modern {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mors-template-2 .mors-btn-modern:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mors-btn-icon {
    margin-right: 8px;
}

.mors-template-2 .mors-modern-modal,
.mors-modal.mors-template-2 .mors-modal-content {
    background: white;
}

.mors-template-2 .mors-modern-modal .mors-modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -40px -40px 30px -40px;
    padding: 40px;
    border-radius: 20px 20px 0 0;
}

.mors-template-2 .mors-modern-group label {
    color: #4a5568;
    font-weight: 600;
}

.mors-template-2 .mors-modern-input {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mors-template-2 .mors-modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mors-template-2 .mors-modern-divider {
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Template 3: Minimal Styles */
.mors-template-3 .mors-minimal-wrapper,
.mors-modal .mors-template-3 .mors-minimal-wrapper {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
}

.mors-template-3 .mors-minimal-header {
    text-align: center;
    margin-bottom: 25px;
}

.mors-template-3 .mors-minimal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.mors-template-3 .mors-minimal-header p {
    display: none;
}

.mors-template-3 .mors-btn-minimal {
    background: #2d3748;
    color: white;
    border: none;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 8px;
}

.mors-template-3 .mors-btn-minimal:hover {
    background: #1a202c;
}

.mors-template-3 .mors-minimal-modal,
.mors-modal.mors-template-3 .mors-modal-content {
    background: white;
    border-radius: 12px;
}

.mors-template-3 .mors-minimal-group label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
}

.mors-template-3 .mors-minimal-input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
}

.mors-template-3 .mors-minimal-input:focus {
    border-color: #2d3748;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

.mors-template-3 .mors-minimal-divider {
    margin: 20px 0;
    color: #718096;
}

.mors-template-3 .mors-help-text {
    display: none;
}

/* Name field styles */
.mors-name-field {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.mors-name-field label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
}

.mors-name-field input,
.mors-name-field input[type="text"],
.mors-modal .mors-name-field input,
.mors-modal .mors-name-field input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    background-color: #ffffff !important;
    color: #2d3748 !important;
}

.mors-name-field input:focus,
.mors-modal .mors-name-field input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Template-specific name field styles */
.mors-template-2 .mors-name-field,
.mors-modal.mors-template-2 .mors-name-field {
    border-top-color: rgba(102, 126, 234, 0.2);
}

.mors-template-3 .mors-name-field,
.mors-modal.mors-template-3 .mors-name-field {
    border-top-color: #cbd5e1;
}

/* Ensure name field inputs are always editable */
.mors-name-field input[type="text"],
.mors-modal .mors-name-field input[type="text"],
.mors-template-4 .mors-name-field input,
.mors-template-5 .mors-name-field input,
.mors-template-6 .mors-name-field input,
.mors-template-7 .mors-name-field input,
.mors-template-8 .mors-name-field input,
.mors-template-9 .mors-name-field input,
.mors-template-10 .mors-name-field input {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    background-color: inherit !important;
    color: inherit !important;
}

.mors-name-field input[type="text"]:disabled,
.mors-name-field input[type="text"][readonly] {
    pointer-events: auto !important;
    background-color: inherit !important;
    opacity: 1 !important;
}

/* Template 4: Dark Styles */
.mors-template-4 .mors-dark-wrapper,
.mors-modal.mors-dark-modal .mors-dark-wrapper {
    background: #1a202c;
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.mors-template-4 .mors-dark-header h2,
.mors-template-4 .mors-dark-header p {
    color: white;
}

.mors-template-4 .mors-btn-dark {
    background: #4a5568;
    color: white;
    border: none;
}

.mors-template-4 .mors-btn-dark:hover {
    background: #718096;
}

.mors-template-4 .mors-dark-modal-content,
.mors-modal.mors-dark-modal .mors-modal-content {
    background: #2d3748;
    color: white;
}

.mors-template-4 .mors-dark-group label,
.mors-modal.mors-dark-modal .mors-dark-group label {
    color: #e2e8f0;
}

.mors-template-4 .mors-dark-input,
.mors-modal.mors-dark-modal .mors-dark-input {
    background: #4a5568;
    border-color: #718096;
    color: white;
}

.mors-template-4 .mors-dark-input::placeholder {
    color: #a0aec0;
}

.mors-template-4 .mors-dark-input:focus {
    border-color: #667eea;
    background: #4a5568;
}

.mors-template-4 .mors-dark-divider {
    color: #a0aec0;
}

/* Template 5: Colorful Styles */
.mors-template-5 .mors-colorful-wrapper,
.mors-modal .mors-template-5 .mors-colorful-wrapper {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.mors-template-5 .mors-colorful-header h2,
.mors-template-5 .mors-colorful-header p {
    color: white;
}

.mors-template-5 .mors-btn-colorful {
    background: white;
    color: #f5576c;
    border: none;
    font-weight: 600;
}

.mors-template-5 .mors-btn-colorful:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.mors-template-5 .mors-colorful-modal,
.mors-modal.mors-template-5 .mors-modal-content {
    background: white;
}

.mors-template-5 .mors-colorful-input {
    border: 2px solid #e2e8f0;
}

.mors-template-5 .mors-colorful-input:focus {
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

.mors-template-5 .mors-colorful-divider {
    color: rgba(255, 255, 255, 0.8);
}

/* Template 6: Glassmorphism Styles */
.mors-template-6 .mors-glass-wrapper,
.mors-modal .mors-template-6 .mors-glass-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.mors-template-6 .mors-glass-header h2,
.mors-template-6 .mors-glass-header p {
    color: #2d3748;
}

.mors-template-6 .mors-btn-glass {
    background: rgba(102, 126, 234, 0.8);
    color: white;
    border: none;
    backdrop-filter: blur(10px);
}

.mors-template-6 .mors-btn-glass:hover {
    background: rgba(102, 126, 234, 1);
}

.mors-template-6 .mors-glass-modal-content,
.mors-modal.mors-glass-modal .mors-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.mors-template-6 .mors-glass-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(5px);
}

.mors-template-6 .mors-glass-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #667eea;
}

/* Template 7: Card Styles */
.mors-template-7 .mors-card-wrapper,
.mors-modal .mors-template-7 .mors-card-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mors-template-7 .mors-btn-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mors-template-7 .mors-btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mors-template-7 .mors-card-modal,
.mors-modal.mors-template-7 .mors-modal-content {
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mors-template-7 .mors-card-input {
    border: 2px solid #e2e8f0;
}

.mors-template-7 .mors-card-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Template 8: Neomorphism Styles */
.mors-template-8,
.mors-modal.mors-template-8 {
    background: #e0e5ec;
}

.mors-template-8 .mors-neo-wrapper,
.mors-modal .mors-template-8 .mors-neo-wrapper {
    background: #e0e5ec;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 8px 8px 16px #b8bec5, -8px -8px 16px #ffffff;
}

.mors-template-8 .mors-btn-neo {
    background: #e0e5ec;
    color: #2d3748;
    border: none;
    box-shadow: 5px 5px 10px #b8bec5, -5px -5px 10px #ffffff;
}

.mors-template-8 .mors-btn-neo:hover {
    box-shadow: inset 5px 5px 10px #b8bec5, inset -5px -5px 10px #ffffff;
}

.mors-template-8 .mors-neo-modal {
    background: rgba(224, 229, 236, 0.95);
}

.mors-template-8 .mors-neo-modal-content,
.mors-modal.mors-template-8 .mors-modal-content {
    background: #e0e5ec;
    box-shadow: 8px 8px 16px #b8bec5, -8px -8px 16px #ffffff;
}

.mors-template-8 .mors-neo-input {
    background: #e0e5ec;
    border: none;
    box-shadow: inset 4px 4px 8px #b8bec5, inset -4px -4px 8px #ffffff;
}

.mors-template-8 .mors-neo-input:focus {
    box-shadow: inset 2px 2px 4px #b8bec5, inset -2px -2px 4px #ffffff;
}

/* Template 9: Gradient Styles */
.mors-template-9 .mors-gradient-wrapper,
.mors-modal .mors-template-9 .mors-gradient-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
}

.mors-template-9 .mors-gradient-header h2,
.mors-template-9 .mors-gradient-header p {
    color: white;
}

.mors-template-9 .mors-btn-gradient {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.mors-template-9 .mors-btn-gradient:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mors-template-9 .mors-gradient-modal,
.mors-modal.mors-template-9 .mors-modal-content {
    background: rgba(255, 255, 255, 0.95);
}

.mors-template-9 .mors-gradient-input {
    border: 2px solid #e2e8f0;
}

.mors-template-9 .mors-gradient-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mors-template-9 .mors-gradient-divider {
    color: rgba(255, 255, 255, 0.8);
}

/* Template 10: Bold Styles */
.mors-template-10 .mors-bold-wrapper,
.mors-modal .mors-template-10 .mors-bold-wrapper {
    background: #000000;
    border-radius: 0;
    padding: 50px;
    border: 4px solid #ffffff;
}

.mors-template-10 .mors-bold-header h2 {
    color: white;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mors-template-10 .mors-bold-header p {
    color: #a0aec0;
    font-weight: 600;
}

.mors-template-10 .mors-btn-bold {
    background: #ffffff;
    color: #000000;
    border: 4px solid #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 30px;
}

.mors-template-10 .mors-btn-bold:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

.mors-template-10 .mors-bold-modal-content,
.mors-modal.mors-template-10 .mors-modal-content {
    background: #000000;
    border: 4px solid #ffffff;
    color: white;
}

.mors-template-10 .mors-bold-header h2,
.mors-template-10 .mors-bold-header p {
    color: white;
}

.mors-template-10 .mors-bold-group label {
    color: white;
    font-weight: 700;
}

.mors-template-10 .mors-bold-input {
    background: #1a202c;
    border: 3px solid #ffffff;
    color: white;
    font-weight: 600;
}

.mors-template-10 .mors-bold-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.mors-template-10 .mors-bold-divider {
    color: #ffffff;
    font-weight: 700;
}

/* Name Modal Specific Styles */
#mors-name-modal .mors-modal-content {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#mors-name-modal .mors-form-group {
    margin-bottom: 25px;
}

#mors-name-modal .mors-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

#mors-name-modal .mors-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

#mors-name-modal .mors-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

#mors-name-modal .mors-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #718096;
}

#mors-name-modal .mors-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#mors-name-modal .mors-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#mors-name-modal .mors-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

#mors-name-modal .mors-form-message {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

#mors-name-modal .mors-form-message.show {
    display: block;
}

#mors-name-modal .mors-form-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

#mors-name-modal .mors-form-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

#mors-name-modal.loading .mors-button {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

