/* ============================================================
   Barclays — Multi-Step Registration Form CSS
   Save as: css/multistep-form.css
   Add this to your page: <link rel="stylesheet" href="css/multistep-form.css">
   ============================================================ */

/* ── Page background ── */
.contact_us_area {
    background: #f4f4f7 !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* ── Outer wrapper card ── */
.ms-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
    padding: 40px 40px 35px;
    margin-bottom: 30px;
}

/* ── Step indicator bar ── */
.ms-steps {
    list-style: none;
    display: flex;
    margin: 0 0 35px 0;
    padding: 0;
    border-radius: 40px;
    overflow: hidden;
    border: 2px solid #e3e3ef;
    background: #f2f2f7;
}

.ms-steps li {
    flex: 1;
    text-align: center;
    padding: 11px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #aaaaaa;
    background: #f2f2f7;
    cursor: default;
    transition: background 0.3s, color 0.3s;
    letter-spacing: 0.2px;
    font-family: 'Poppins', sans-serif;
}

.ms-steps li.active {
    background: linear-gradient(to right, #21d397 0%, #7450fe 100%);
    color: #ffffff;
}

.ms-steps li.done {
    background: #d4f5eb;
    color: #1daf80;
}

/* ── Step title & description ── */
.ms-step-title {
    font-family: 'Poppins', sans-serif;
    color: #222222;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ms-step-desc {
    color: #888888;
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 28px;
    font-family: 'Poppins', sans-serif;
}

/* ── Section headings inside the form ── */
.ms-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #333333;
    margin: 30px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.ms-section-title:first-of-type {
    margin-top: 0;
}

/* ── Fieldset panels (show / hide) ── */
.ms-fieldset {
    display: none;
}

.ms-fieldset.active {
    display: block;
    animation: msFadeIn 0.35s ease forwards;
}

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

/* ── Field wrapper ── */
.ms-field {
    margin-bottom: 20px;
    position: relative;
}

/* ── Labels ── */
.ms-field label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 7px;
}

.ms-field label .req {
    color: #e74c3c;
    margin-left: 2px;
}

/* ── Inputs & Selects ── */
.ms-field input[type="text"],
.ms-field input[type="date"],
.ms-field input[type="email"],
.ms-field input[type="password"],
.ms-field input[type="number"],
.ms-field input[type="tel"],
.ms-field select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d8d8e8;
    border-radius: 7px;
    padding: 0 15px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #333333;
    background: #fafafa;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ms-field input[type="text"]:focus,
.ms-field input[type="email"]:focus,
.ms-field input[type="password"]:focus,
.ms-field input[type="number"]:focus,
.ms-field input[type="tel"]:focus,
.ms-field select:focus {
    border-color: #7450fe;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(116, 80, 254, 0.13);
}

/* ── Select arrow ── */
.ms-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><polyline points='0,0 7,9 14,0' fill='none' stroke='%237450fe' stroke-width='2'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ── Error state ── */
.ms-field.has-error input[type="text"],
.ms-field.has-error input[type="email"],
.ms-field.has-error input[type="password"],
.ms-field.has-error input[type="number"],
.ms-field.has-error input[type="tel"],
.ms-field.has-error select {
    border-color: #e74c3c;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.10);
}

.ms-error {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    margin-top: 5px;
}

.ms-field.has-error .ms-error {
    display: block;
}

/* ── Two-column row ── */
.ms-row {
    display: flex;
    gap: 18px;
}

.ms-row > div {
    flex: 1;
    min-width: 0;
}

/* ── Navigation bar (Back / Next) ── */
.ms-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1.5px solid #f0f0f0;
}

/* Back button */
.ms-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7450fe;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.ms-btn-back:hover {
    color: #21d397;
}

/* Next / Submit button — reuses your site's .more-btn */
.ms-btn-next,
.ms-btn-submit {
    position: relative;
    z-index: 1;
    min-width: 160px;
    height: 48px;
    line-height: 48px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    padding: 0 28px;
    text-align: center;
    text-transform: uppercase;
    background-size: 200% auto;
    color: #ffffff;
    border-radius: 100px;
    background-image: linear-gradient(to right, #21d397 0%, #7450fe 50%, #21d397 100%);
    border: none;
    cursor: pointer;
    transition: all 500ms;
    font-family: 'Poppins', sans-serif;
}

.ms-btn-next:hover,
.ms-btn-submit:hover {
    background-position: right center;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(116, 80, 254, 0.35);
}

/* ── Info / alert message box ── */
#success_fail_info_ms .alert {
    padding: 12px 18px;
    border-radius: 7px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}

#success_fail_info_ms .alert-danger {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    color: #c0392b;
}

/* ── Summary box (Step 2) ── */
.ms-summary-box {
    background: #f8f7ff;
    border: 1.5px solid #e0dcff;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 10px;
}

.ms-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    padding: 9px 0;
    border-bottom: 1px dashed #e2dffb;
}

.ms-summary-row:last-child {
    border-bottom: none;
}

.ms-summary-row span:first-child {
    color: #999999;
    font-weight: 500;
    min-width: 160px;
}

.ms-summary-row span:last-child {
    font-weight: 600;
    color: #222222;
    text-align: right;
    word-break: break-all;
}

/* ── Sidebar ── */
.ms-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.ms-sidebar h5 {
    font-family: 'Poppins', sans-serif;
    color: #222222;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f0f0f0;
}

.ms-sidebar p {
    color: #777777;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.9;
    margin-bottom: 18px;
}

.ms-sidebar a {
    color: #7450fe;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.ms-sidebar a:hover {
    color: #21d397;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ms-sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .ms-wrapper {
        padding: 25px 18px 22px;
    }

    .ms-row {
        flex-direction: column;
        gap: 0;
    }

    .ms-steps li {
        font-size: 11px;
        padding: 10px 4px;
    }

    .ms-step-title {
        font-size: 20px;
    }

    .ms-btn-next,
    .ms-btn-submit {
        min-width: 130px;
        font-size: 12px;
        padding: 0 20px;
    }

    .ms-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .ms-summary-row span:last-child {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ms-steps {
        border-radius: 8px;
    }

    .ms-steps li {
        font-size: 10px;
        padding: 9px 2px;
    }
}

/* ============================================================
   Intro block (above the form)
   ============================================================ */
.ms-intro-block {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ms-intro-header {
    background: linear-gradient(to right, #21d397 0%, #7450fe 100%);
    padding: 28px 35px;
}

.ms-intro-title {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.ms-intro-tagline {
    color: rgba(255,255,255,0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    margin: 0;
    line-height: 1;
}

.ms-intro-body {
    padding: 30px 35px;
}

.ms-intro-section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 10px 0;
}

.ms-intro-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.ms-intro-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.ms-intro-list li {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #555555;
    padding: 5px 0 5px 22px;
    position: relative;
    line-height: 1.7;
}

.ms-intro-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #21d397;
    font-weight: 700;
}

.ms-intro-notice {
    background: #f8f7ff;
    border-left: 4px solid #7450fe;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.ms-intro-notice .ms-intro-section-heading {
    color: #7450fe;
}

.ms-intro-notice .ms-intro-text {
    margin-bottom: 0;
}

.ms-intro-notice a {
    color: #7450fe;
    font-weight: 600;
    text-decoration: none;
}

.ms-intro-tip {
    background: #fffbf0;
    border-left: 4px solid #f0a500;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ms-intro-tip-icon {
    font-size: 20px;
    color: #f0a500;
    line-height: 1.6;
    flex-shrink: 0;
}

.ms-intro-tip .ms-intro-text {
    margin-bottom: 0;
    color: #7a6000;
}

/* ── Sidebar info list ── */
.ms-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ms-info-list li {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555555;
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-info-list li:last-child {
    border-bottom: none;
}

.ms-info-list li .fa {
    color: #21d397;
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Step 3 finish confirmation box ── */
.ms-finish-box {
    background: linear-gradient(135deg, #e8fff7 0%, #f3f0ff 100%);
    border: 1.5px solid #b2f0da;
    border-radius: 10px;
    padding: 28px 30px;
    text-align: center;
    margin-bottom: 10px;
}

.ms-finish-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(to right, #21d397 0%, #7450fe 100%);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
}

.ms-finish-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #444444;
    margin: 0;
    line-height: 1.7;
}

/* ── Alert danger inside the form ── */
.ms-alert-danger {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 7px;
    color: #c0392b;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding: 12px 18px;
    margin-bottom: 15px;
}

/* ── Utility spacing ── */
.mt-30 { margin-top: 30px; }
.mb-50 { margin-bottom: 50px; }

/* ── Responsive tweaks for intro ── */
@media (max-width: 767px) {
    .ms-intro-header { padding: 22px 20px; }
    .ms-intro-title  { font-size: 20px; }
    .ms-intro-body   { padding: 22px 20px; }
    .ms-intro-notice,
    .ms-intro-tip    { margin-top: 20px; }
}