#smr-registration-wrapper {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

#smr-registration-wrapper label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.smr-field {
    margin-bottom: 15px;
}

.smr-field input[type="text"],
.smr-field input[type="email"],
.smr-field input[type="password"],
.smr-field select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#smr_submit_btn { 
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

#smr_submit_btn {
    background: #0073aa;
    color: #fff;
}

#smr_submit_btn:hover {
    background: #005f8d;
}#smr-messages {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

#smr-messages.smr-error {
    border: 1px solid #e53e3e;
    background: #fff5f5;
    color: #c53030;
}

#smr-messages.smr-success {
    border: 1px solid #38a169;
    background: #f0fff4;
    color: #2f855a;
}

.smr-mobile-wrapper {
    display: flex;
    align-items: center;
}

.smr-flag {
    width: 24px;
    height: 16px;
    margin-right: 6px;
    position: relative;
    display: inline-block;
}

.smr-flag-india {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(to bottom,
        #ff9933 33.33%,
        #ffffff 33.33%,
        #ffffff 66.66%,
        #138808 66.66%);
    border: 1px solid #ccc;
}

.smr-mobile-prefix {
    margin-right: 6px;
    font-weight: 600;
}

.smr-password-wrapper {
    display: flex;
    align-items: center;
}

.smr-password-wrapper input {
    flex: 1;
}

.smr-toggle-password {
    margin-left: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
}


/* Multistep styling */
#smr-steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}
.smr-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}
.smr-step-active {
    border-color: #0073aa;
    background-color: #0073aa;
    color: #fff;
}
.smr-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.smr-primary-btn {
    background: #0073aa;
    color: #fff;
}
.smr-primary-btn:hover {
    background: #005f8d;
}


/* Spacing & premium field styling */
.smr-field {
    margin-bottom: 20px;
}

#smr-registration-wrapper {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.smr-field input[type="text"],
.smr-field input[type="email"],
.smr-field input[type="password"],
.smr-field select {
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smr-field input:focus,
.smr-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0,115,170,0.15);
}

/* Eye icon inside password field */
.smr-password-wrapper {
    position: relative;
    display: block;
}

.smr-password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.smr-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smr-eye-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #6b7280;
}

/* ensure the path has fill to appear subtle */
.smr-eye-icon path {
    fill: #9ca3af;
}


/* Linear progress bar with steps */
#smr-progress-container {
    margin-bottom: 24px;
}

.smr-progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.smr-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0073aa, #119CFF);
    transition: width 0.25s ease-out;
}

#smr-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smr-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background-color: #fff;
}

.smr-step-active {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.18);
}


/* Elementor-aligned palette using global variables with fallbacks */
:root {
    --smr-primary: var(--e-global-color-primary, #6EC1E4);
    --smr-primary-dark: #3895ba;
    --smr-border-subtle: #d4d4d8;
    --smr-surface: #ffffff;
    --smr-text-main: #111827;
    --smr-text-muted: #6b7280;
}

/* Card refinement */
#smr-registration-wrapper {
    color: var(--smr-text-main);
    background: var(--smr-surface);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

/* Headings inside steps */
.smr-step-header {
    margin-bottom: 14px;
}

.smr-step-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.smr-step-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--smr-text-muted);
}

.smr-step-footnote {
    margin-top: 4px;
}

.smr-footnote-text {
    font-size: 12px;
    margin: 0;
    color: var(--smr-text-muted);
}

/* Inputs & spacing */
.smr-field {
    margin-bottom: 18px;
}

.smr-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--smr-text-main);
}

.smr-field input[type="text"],
.smr-field input[type="email"],
.smr-field input[type="password"],
.smr-field select {
    font-size: 14px;
    line-height: 1.4;
    border-radius: 6px;
    border: 1px solid var(--smr-border-subtle);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background-color: #f9fafb;
}

.smr-field input:focus,
.smr-field select:focus {
    outline: none;
    border-color: var(--smr-primary);
    box-shadow: 0 0 0 1px rgba(110, 193, 228, 0.4);
    background-color: #ffffff;
}
.smr-inline-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.smr-inline-group input[type="email"] {
    flex: 1;
}

/* Buttons styled closer to Elementor primary buttons */
.smr-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    gap: 8px;
}

#smr_submit_btn,.smr-primary-btn,
.smr-secondary-btn {
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    padding: 8px 18px;
    border: 1px solid transparent;
}

.smr-primary-btn,
#smr_submit_btn {
    background: var(--smr-primary);
    color: #ffffff;
    border-color: var(--smr-primary);
}

.smr-primary-btn:hover,
#smr_submit_btn:hover {
    background: var(--smr-primary-dark);
    border-color: var(--smr-primary-dark);
}

.smr-secondary-btn {
    background: #f3f4f6;
    color: var(--smr-text-main);
    border-color: #e5e7eb;
}

.smr-secondary-btn:hover {
    background: #e5e7eb;
}

/* Linear progress bar with steps aligned to Elementor palette */
#smr-progress-container {
    margin-bottom: 24px;
}

.smr-progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.smr-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--smr-primary), var(--smr-primary-dark));
    transition: width 0.25s ease-out;
}

#smr-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smr-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--smr-text-muted);
    background-color: #ffffff;
}

.smr-step-active {
    border-color: var(--smr-primary);
    background: var(--smr-primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(110,193,228,0.32);
}

/* Mobile wrapper & flag kept subtle */
.smr-mobile-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.smr-mobile-prefix {
    font-weight: 600;
    color: var(--smr-text-main);
}

/* Password icon styling */
.smr-password-wrapper {
    position: relative;
    display: block;
}

.smr-password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.smr-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smr-eye-icon {
    width: 18px;
    height: 18px;
}

.smr-eye-icon path {
    fill: #9ca3af;
}


/* Mentor dashboard styling */
#smr-dashboard-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 18px 38px rgba(15,23,42,0.07);
    margin: 20px 0;
}

#smr-dashboard-wrapper h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.smr-dashboard-message {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.smr-dashboard-message.smr-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.smr-dashboard-message.smr-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.smr-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 20px;
}

.smr-dashboard-card {
    border-radius: 12px;
    padding: 16px 18px;
    background: #f9fafb;
}

.smr-dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .smr-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* --- ODIApreneur layout tuning: keep card proportional inside Elementor column --- */
#smr-registration-wrapper {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 20px;
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,0.32);
    box-shadow: 0 22px 45px rgba(15,23,42,0.08);
    background: #ffffff;
}

@media (max-width: 767px) {
    #smr-registration-wrapper {
        max-width: 100%;
        margin: 16px auto;
        border-radius: 18px;
        padding: 18px 16px 16px;
    }
}

/* Make form elements stretch nicely within Elementor column */
#smr-registration-wrapper form#smr-registration-form {
    width: 100%;
}

/* === Password eye icon inside field === */
.smr-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.smr-password-wrapper input[type="password"],
.smr-password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.smr-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.smr-eye-icon {
    width: 18px;
    height: 18px;
    fill: #111827; /* near-black */
}

/* --- Strong override for password eye button (no pill, icon only) --- */
.smr-password-wrapper .smr-toggle-password {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    transform: none;
    margin: 0;
    padding: 0;
    width: 32px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smr-password-wrapper .smr-toggle-password::before,
.smr-password-wrapper .smr-toggle-password::after {
    content: none !important;
}

.smr-password-wrapper .smr-toggle-password .smr-eye-icon {
    width: 18px;
    height: 18px;
    fill: #111827;
}

/* Final override: password eye icon as inline span inside field */
.smr-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.smr-password-wrapper input[type="password"],
.smr-password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.smr-password-wrapper .smr-toggle-password {
    all: unset;
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.smr-password-wrapper .smr-toggle-password .smr-eye-icon {
    width: 18px;
    height: 18px;
    fill: #111827;
}
