/**
 * FILE: css/style.css
 * Save this in: /wp-content/plugins/multi-step-registration/css/style.css
 */

.msrf-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Progress Bar */
.msrf-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.msrf-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.msrf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.msrf-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.msrf-progress-step.active .msrf-step-number {
    background: #3d5495;
    color: white;
}

.msrf-progress-step.completed .msrf-step-number {
    background: #10b981;
    color: white;
}

.msrf-step-title {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.msrf-progress-step.active .msrf-step-title {
    color: #3d5495;
    font-weight: 500;
}

/* Form Steps */
.msrf-step {
    display: none;
}

.msrf-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.msrf-step h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: capitalize;
    background-color: #3d5495;
    padding: 10px;
}

.msrf-step h3 {
    font-size: 18px;
    color: #374151;
    margin: 24px 0 16px;
    font-weight: 500;
}

/* Form Elements */
.msrf-form-group {
    margin-bottom: 20px;
}

.msrf-form-group label {
    display: flex;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.msrf-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.msrf-input:focus {
    outline: none;
    border-color: #3d5495;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.msrf-input-error {
    border-color: #ef4444 !important;
}

.msrf-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

textarea.msrf-input {
    resize: vertical;
    min-height: 80px;
}

select.msrf-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
}

input[type="file"].msrf-input {
    padding: 10px;
    cursor: pointer;
}

.msrf-input-code {
    width: 24%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
}

.msrf-input-code:focus {
    outline: none;
    border-color: #3d5495;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.msrf-input-phone {
    width: 75%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.msrf-input-phone:focus {
    outline: none;
    border-color: #3d5495;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Form Row */
.msrf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .msrf-form-row {
        grid-template-columns: 1fr;
    }
}

/* Radio Cards */
.msrf-radio-card {
    display: block;
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msrf-radio-card:hover {
    border-color: #3d5495;
    background: #f9fafb;
}

.msrf-radio-card input[type="radio"] {
    margin-right: 12px;
}

.msrf-radio-card input[type="radio"]:checked ~ .msrf-radio-content {
    color: #3d5495;
}

.msrf-radio-card:has(input:checked) {
    border-color: #3d5495;
    background: #eff6ff;
}

.msrf-radio-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    display: inline-block;
}

.msrf-radio-content p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Checkbox */
.msrf-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 12px;
}

.msrf-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Membership Table */
.msrf-membership-table {
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.msrf-membership-table h3 {
    margin-top: 0;
}

/* Terms Content */
.msrf-terms-content {
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
}

.msrf-terms-content h3 {
    margin-top: 0;
    color: #1f2937;
}

.msrf-terms-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 20px;
}

.msrf-terms-content li {
    margin-bottom: 8px;
    color: #374151;
}

.msrf-terms-points {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.msrf-terms-points p {
    margin: 8px 0;
    color: #374151;
    line-height: 1.6;
}

/* Navigation Buttons */
.msrf-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 12px;
}

.msrf-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msrf-btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.msrf-btn-prev:hover {
    background: #e5e7eb;
}

.msrf-btn-next,
.msrf-btn-submit {
    background: #3d5495;
    color: white;
    margin-left: auto;
}

.msrf-btn-next:hover,
.msrf-btn-submit:hover {
    background: #3d5495;
}

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

/* Messages */
.msrf-message {
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.msrf-message strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

.msrf-message small {
    display: block;
    margin-top: 8px;
    opacity: 0.8;
    font-size: 12px;
}

.msrf-message.msrf-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.msrf-message.msrf-success strong {
    color: #047857;
}

.msrf-message.msrf-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.msrf-message.msrf-error strong {
    color: #b91c1c;
}

/* Responsive */
@media (max-width: 768px) {
    .msrf-container {
        padding: 20px;
        margin: 20px;
    }

    .msrf-progress-bar {
        margin-bottom: 30px;
    }

    .msrf-step-title {
        font-size: 10px;
    }

    .msrf-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .msrf-step h2 {
        font-size: 20px;
    }

    .msrf-form-navigation {
        flex-direction: column;
    }

    .msrf-btn {
        width: 100%;
    }

    .msrf-btn-next,
    .msrf-btn-submit {
        margin-left: 0;
    }
}

/* Loading State */
.msrf-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.msrf-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3d5495;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Social Links Multiple Input */
.msrf-social-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msrf-social-link-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.msrf-social-link-item .social-platform {
    flex: 0 0 150px;
}

.msrf-social-link-item .social-url {
    flex: 1;
}

.msrf-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msrf-btn-add-social {
    background: #10b981;
    color: white;
}

.msrf-btn-add-social:hover {
    background: #059669;
    transform: scale(1.05);
}

.msrf-btn-remove-social {
    background: #ef4444;
    color: white;
}

.msrf-btn-remove-social:hover {
    background: #dc2626;
    transform: scale(1.05);
}
 
th {
    font-size: 14px !important;
    text-transform: capitalize !important;
}
label.form-check-label {
    margin: 10px;
}

/* Error styling for inline radio buttons */
.msrf-input-error .form-check-inline {
    border: 1px solid #dc3545;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8d7da;
}

/* Error styling for radio button tables */
table.msrf-input-error {
    border: 2px solid #dc3545 !important;
}

table.msrf-input-error thead {
    background-color: #f8d7da !important;
}

.radio-group-wrapper {
    display: inline-block;
    margin-bottom: 5px;
}

.msrf-form-group {
    position: relative;
}

.msrf-form-group .msrf-error {
    display: block;
    margin-top: 5px;
    margin-bottom: 0;
    clear: both;
}

.msrf-input-error.radio-group-wrapper {
    border: 1px solid #dc3545;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #fff5f5;
}

/* Bank Details Section Styles */
.msrf-bank-details {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid #3b82f6;
}

.msrf-bank-details h3 {
    margin: 0 0 20px 0;
    color: #1e40af;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.msrf-bank-details h3:before {
    content: "🏦";
    font-size: 24px;
}

.msrf-bank-info-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.msrf-bank-info-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #f0f9ff;
    align-items: center;
}

.msrf-bank-info-row:last-child {
    border-bottom: none;
}

.msrf-bank-label {
    font-weight: 600;
    min-width: 180px;
    color: #1e40af;
    font-size: 14px;
}

.msrf-bank-value {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.msrf-payment-note {
    margin-top: 20px;
    padding: 15px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.msrf-payment-note strong {
    color: #92400e;
    font-weight: 700;
}

/* Payment Section Styles */
.msrf-payment-section {
    margin: 30px 0;
    padding: 25px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.msrf-payment-section h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.msrf-payment-section h3:before {
    content: "💳";
    font-size: 24px;
}


.msrf-error {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

.msrf-input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.msrf-checkbox-label.msrf-input-error {
    color: #dc2626;
    background-color: #fef2f2;
    padding: 5px;
    border-radius: 4px;
}

/* Fix reCAPTCHA overlapping navigation buttons */
.msrf-recaptcha-wrapper {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
}

.msrf-navigation,
.msrf-btn-prev,
.msrf-btn-next,
.msrf-btn-submit {
    position: relative;
    z-index: 10;
}

.msrf-membership-table table th:nth-child(3),
.msrf-membership-table table th:nth-child(4),
.msrf-membership-table table td:nth-child(3),
.msrf-membership-table table td:nth-child(4) {
    transition: opacity 0.3s ease;
}

/* =====================================================================
   MSRF Modern Button Styles
   ===================================================================== */

.msrf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    line-height: 1;
    text-decoration: none;
}

/* Primary Add Button */
.msrf-btn-add-representative {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    margin-top: 16px;
}

.msrf-btn-add-representative:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* Outline Danger (Remove) */
.msrf-btn-outline-danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    margin-top: 12px;
}

.msrf-btn-outline-danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Button disabled state */
.msrf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* NEW Login Process Styles */

/* Auth screens */
.msrf-auth-container { max-width: 700px; margin: 40px auto; padding: 20px; }
.msrf-auth-box { background: white; border-radius: 12px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.msrf-tab-buttons { display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 30px; }
.msrf-tab-btn { flex: 1; padding: 15px; background: none; border: none; font-size: 16px; font-weight: 600; color: #6b7280; cursor: pointer; }
.msrf-tab-btn.active { color: #3d5495; border-bottom: 3px solid #3d5495; margin-bottom: -2px; }
.msrf-tab-content { display: none; }
.msrf-tab-content.active { display: block; }

/* Continue/restart screen */
.msrf-continue-container { max-width: 800px; margin: 40px auto; padding: 20px; }
.msrf-continue-box { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-align: center; }
.msrf-continue-options { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 40px 0; }
.msrf-option-card { background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px; text-align: center; }
.msrf-btn { padding: 12px 24px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; }
.msrf-btn-primary { background: #3d5495; color: white; }
.msrf-btn-secondary { background: #6b7280; color: white; }

.ova-page-content {
    padding-top: 100px !important;
}
.msrf-continue-box h2, .msrf-auth-box h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    margin-top: 20px;
}  
.msrf-continue-box h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    margin-top: auto;
}
.msrf-continue-box  p {
    font-size: 14px;
    color: #4b5563;
}

.msrf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: msrf-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Add spinner styles if not already present */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 0.8s linear infinite;
    margin-right: 5px;
    vertical-align: middle;
}

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

/* Button disabled state */
#start-new:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state for draft data */
body.loading-draft .msrf-container {
    opacity: 0.7;
}

body.loading-draft .msrf-container::after {
    content: 'Loading your saved draft...';
    display: block;
    text-align: center;
    padding: 20px;
    color: #3d5495;
    font-weight: 600;
}

.msrf-draft-file {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
    font-style: italic;
}

.msrf-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .msrf-two-column {
        grid-template-columns: 1fr;
    }
}


/* Payment Summary Section */
.msrf-payment-summary-section {
    animation: fadeInUp 0.4s ease-out;
}

.msrf-summary-grid {
    gap: 16px;
}

.msrf-summary-row {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msrf-summary-row:hover {
    transform: translateX(4px);
}

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

/* Responsive */
@media (max-width: 768px) {
    .msrf-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .msrf-summary-row span:last-child {
        text-align: left !important;
    }
}

/* NEW Login Process Styles */

/* Responsive Design */
@media (max-width: 768px) {
    .msrf-bank-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .msrf-bank-label {
        min-width: auto;
        font-size: 13px;
    }
    
    .msrf-bank-value {
        font-size: 13px;
    }
    
    .msrf-bank-details,
    .msrf-payment-section {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .msrf-bank-details,
    .msrf-payment-section {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .msrf-social-link-item {
        flex-wrap: wrap;
    }
    
    .msrf-social-link-item .social-platform {
        flex: 1 1 calc(50% - 5px);
    }
    
    .msrf-social-link-item .social-url {
        flex: 1 1 100%;
        order: 3;
    }
    
    .msrf-btn-icon {
        flex: 0 0 40px;
    }
}