/* Mola Company Registration - Custom Modern Design with Two Column Layout */

.mola-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

/* Header Section */
.mola-header-section {
background: linear-gradient(135deg, #0f1a24 0%, #1a2b3c 100%);
padding: 60px 40px;
text-align: center;
margin-bottom: 40px;
color: white;
}

#company-register * { box-sizing: border-box; }
.route-extension-mola-company_register *:not(i){ font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

.mola-header-title {
font-size: 36px;
font-weight: 700;
margin: 0 0 16px 0;
color: white;
}

.mola-header-subtitle {
font-size: 18px;
font-weight: 400;
margin: 0;
color: rgba(255, 255, 255, 0.95);
}

/* Main Grid Layout */
.mola-main-grid {
display: grid;
grid-template-columns: 1fr 400px;
gap: 32px;
align-items: start;
}

/* Left Column - Form */
.mola-left-column {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
padding: 40px;
}

/* Right Column - Info Sections */
.mola-right-column {
display: flex;
flex-direction: column;
gap: 24px;
position: sticky;
top: 20px;
align-self: start;
}

/* Info Cards */
.mola-info-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
padding: 32px;
}

.mola-info-title {
color: #1A2B3C;
font-size: 20px;
font-weight: 600;
margin: 0 0 24px 0;
}

/* Steps Section */
.mola-step-item {
display: flex;
gap: 16px;
margin-bottom: 24px;
}

.mola-step-item:last-child {
margin-bottom: 0;
}

.mola-step-number {
flex-shrink: 0;
width: 40px;
height: 40px;
background: #008888;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 16px;
}

.mola-step-content {
flex: 1;
}

.mola-step-title {
font-size: 16px;
font-weight: 600;
color: #1A2B3C;
margin: 0 0 6px 0;
}

.mola-step-description {
font-size: 14px;
color: #4A5568;
margin: 0;
line-height: 1.5;
}

/* Contact Section */
.mola-contact-intro {
font-size: 14px;
color: #4A5568;
margin-bottom: 16px;
line-height: 1.5;
}

.mola-contact-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: #F7FAFC;
border-radius: 8px;
text-decoration: none;
color: #1A2B3C;
transition: all 0.2s ease;
}

.mola-contact-item:hover {
background: #EDF2F7;
transform: translateX(4px);
}

.mola-contact-icon {
width: 24px;
height: 24px;
color: #008888;
}

.mola-contact-text {
font-size: 15px;
font-weight: 500;
}

.mola-alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.mola-alert-danger { background-color: #fee; border: 1px solid #fcc; color: #c33; }
.mola-alert-success { background-color: #efe; border: 1px solid #cfc; color: #3c3; }

.mola-section { background-color: #F7FAFC; border-radius: 8px; padding: 32px; margin-bottom: 32px; border: 1px solid #e2e8f0; }
.mola-section-title { color: #1A2B3C; font-size: 20px; font-weight: 600; margin: 0 0 24px 0; padding-bottom: 12px; border-bottom: 2px solid #00A8A8; }

.mola-form-group { margin-bottom: 24px; }
.mola-form-group:last-child { margin-bottom: 0; }
.mola-form-label { display: block; color: #4A5568; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.mola-form-label.required:after { content: " *"; color: #e53e3e; }

.mola-input, .mola-textarea { width: 100%; padding: 12px 16px; font-size: 15px; color: #1A2B3C; background-color: #fff; border: 2px solid #e2e8f0; border-radius: 6px; transition: all 0.2s ease; outline: none; }
.mola-input:focus, .mola-textarea:focus { border-color: #00A8A8; box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1); }
.mola-input::placeholder, .mola-textarea::placeholder { color: #a0aec0; }
.mola-textarea { resize: vertical; min-height: 100px; }

.mola-help-text { display: block; margin-top: 6px; font-size: 13px; color: #718096; }
.mola-error-text { display: block; margin-top: 6px; font-size: 13px; color: #e53e3e; }
.mola-success-text { display: block; margin-top: 6px; font-size: 13px; color: #38a169; font-weight: 500; }

/* Subdomain Field Group */
.mola-subdomain-group { display: flex; gap: 12px; align-items: flex-start; }
.mola-subdomain-input-wrapper { flex: 1; }
.mola-subdomain-suffix { padding: 12px 16px; background-color: #F7FAFC; border: 2px solid #e2e8f0; border-radius: 6px; color: #4A5568; font-size: 15px; white-space: nowrap; }

/* Partner Row */
.mola-partner-row { display: grid; grid-template-columns: 2fr 1.5fr 1fr auto; gap: 16px; margin-bottom: 16px; padding: 20px; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; }
.mola-partner-field { display: flex; flex-direction: column; }
.mola-percentage-group { position: relative; }
.mola-percentage-input { padding-right: 40px; }
.mola-percentage-symbol { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #4A5568; font-weight: 500; pointer-events: none; }

/* Buttons */
.mola-btn { padding: 12px 24px; font-size: 15px; font-weight: 500; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mola-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1); }
.mola-btn-primary { background-color: #1A2B3C; color: #fff; }
.mola-btn-primary:hover { background-color: #0f1a24; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26, 43, 60, 0.3); }
.mola-btn-accent { background-color: #00A8A8; color: #fff; }
.mola-btn-accent:hover { background-color: #008888; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 168, 168, 0.3); }
.mola-btn-danger { background-color: #e53e3e; color: #fff; padding: 10px 16px; font-size: 14px; }
.mola-btn-danger:hover { background-color: #c53030; }
.mola-btn-icon { width: 20px; height: 20px; }
.mola-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.mola-form-actions { 
margin-top: 32px; 
padding-top: 32px; 
border-top: 1px solid #e2e8f0; 
}

.mola-submit-btn-full {
width: 100%;
justify-content: center;
padding: 16px 24px;
font-size: 16px;
}

.mola-partners-container { margin-bottom: 20px; }

/* Loading Spinner */
.mola-spinner { width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 992px) {
.mola-main-grid {
    grid-template-columns: 1fr;
}

.mola-right-column {
    position: static; /* Remove sticky on mobile */
}
}

@media (max-width: 768px) {
.mola-left-column { padding: 24px; }
.mola-section { padding: 20px; }
.mola-partner-row { grid-template-columns: 1fr; gap: 12px; }

/* Subdomain mobile layout */
.mola-subdomain-group { 
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.mola-subdomain-input-wrapper {
    grid-column: 1;
}

.mola-subdomain-suffix { 
    grid-column: 2;
    text-align: center;
}

#check-subdomain {
    grid-column: 1 / -1; /* Full width */
    width: 100%;
    justify-content: center;
}

.mola-header-section { padding: 40px 24px; }
.mola-header-title { font-size: 28px; }
.mola-header-subtitle { font-size: 16px; }
}

.select2-container--default .select2-selection--single{
    height: 42px !important;
    line-height: 42px !important;
    border: 2px solid #e2e8f0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 42px !important;
    line-height: 42px !important;
}
