/* ==========================================================================
   Counsel Modal + Multi-Step Form Styles
   Extracted as-is from mbbs-abroad-main.css — no class names changed.
   Add this whole block to your site's custom CSS file / child theme style.css.
   ========================================================================== */

/* ---- Bootstrap-style modal shell (legacy override kept as in source) ---- */
.modal-open {
    overflow: hidden
}

.modal {
    display: none;
    overflow: auto;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    -webkit-overflow-scrolling: touch;
    outline: 0
}

.modal.fade .modal-dialog {
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
    -webkit-transition: -webkit-transform .3s ease-out;
    -moz-transition: -moz-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: transform .3s ease-out
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0)
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    background-clip: padding-box;
    outline: 0
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000
}

.modal-backdrop.fade {
    opacity: 0;
    filter: alpha(opacity=0)
}

.modal-backdrop.in {
    opacity: .5;
    filter: alpha(opacity=50)
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 16.42857143px
}

.modal-header .close {
    margin-top: -2px
}

.modal-title {
    margin: 0;
    line-height: 1.42857143
}

.modal-body {
    position: relative;
    padding: 20px
}

.modal-footer {
    margin-top: 15px;
    padding: 19px 20px 20px;
    text-align: right;
    border-top: 1px solid #e5e5e5
}

.modal-footer .btn+.btn {
    margin-left: 5px;
    margin-bottom: 0
}

.modal-footer .btn-group .btn+.btn {
    margin-left: -1px
}

.modal-footer .btn-block+.btn-block {
    margin-left: 0
}

@media (min-width:768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto
    }

    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, .5)
    }

    .modal-sm {
        width: 300px
    }
}

@media (min-width:992px) {
    .modal-lg {
        width: 900px
    }
}

.modal-footer:before,
.modal-footer:after {
    content: " ";
    display: table
}

.modal-footer:after {
    clear: both
}

.modal_popup_form_header h4 {
    text-align: center;
    color: #fff;
}

.modal_popup_form_header p {
    text-align: center;
    color: #fff;
}

@media(max-width:767px) {
    #counsel>.modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
}

button.close {
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    filter: alpha(opacity=20);
}

#counsel>.modal-dialog {
    width: 85%;
    max-width: 85%;
}

#counsel>.modal-body>.close {
    color: #fff
}

#counsel>.modal-body {
    background-color: #424ea4;
}

.fade.in {
    opacity: 1;
}

/* ---- Step-form "form card" theme ---- */
.form-card {
    background: white;
    border-radius: 25px;
    padding: 0 50px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    pointer-events: none;
}

.decorative-element {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.form-content {
    position: relative;
    z-index: 1;
}

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

.form-title {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    margin-top: 10px;
    line-height: 1.2;
}

h3.form-title {
    background: none;
    -webkit-text-fill-color: #555;
    border-radius: 10px;
}

.form-step>.form-header>h3.form-title {
    background: #c2e7ff;
    font-size: 20px;
    padding: 5px;
}

.form-subtitle {
    font-size: 17px;
    color: #555 !important;
    line-height: 1.6;
    font-weight: 600;
}

.progress-container {
    margin-bottom: 24px;
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.progress-step {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
    position: relative;
    padding-top: 32px;
}

.progress-step::before {
    content: attr(data-number);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.progress-step.active {
    color: #667eea;
}

.progress-step.active::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.progress-step.completed {
    color: #10b981;
}

.progress-step.completed::before {
    content: '✓';
    background: #10b981;
    color: white;
}

.form-step {
    display: none;
    animation: fadeSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

label {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.required {
    color: #ef4444;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 15px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #1e293b;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e1;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.radio-group {
    display: block;
    gap: 14px;
}

.radio-option {
    position: relative;
    display: inline-block;
    width: 30%;
    margin-right: 15px;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #475569;
    background: #fafbfc;
    position: relative;
}

.radio-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label:hover {
    border-color: #667eea;
    background: white;
    transform: translateX(4px);
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #475569;
    background: #fafbfc;
    position: relative;
}

.checkbox-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 25%;
    margin-right: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label:hover {
    border-color: #667eea;
    background: white;
    transform: translateX(4px);
}

.radio-option input[type="radio"]:checked+.radio-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    font-weight: 600;
}

.radio-option input[type="radio"]:checked+.radio-label::before {
    border-color: #667eea;
    background: #667eea;
    box-shadow: inset 0 0 0 4px white;
}

.radio-option input[type="checkbox"]:checked+.checkbox-label {
    border-color: #47cf73;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #47cf73;
    font-weight: 600;
}

.radio-option input[type="checkbox"]:checked+.checkbox-label::before {
    border-color: #47cf73;
    background: #47cf73;
}

.radio-option input[type="checkbox"]:checked+.checkbox-label::after {
    content: "✓";
    position: absolute;
    margin-left: 1%;
    color: white;
}

.button-group {
    display: flex;
    gap: 14px;
    margin-top: 25px;
    margin-bottom: 25px;
}

button {
    flex: 1;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.success-message {
    display: none;
    text-align: center;
    animation: fadeSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.success-message.active {
    display: block;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3);
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.success-icon::after {
    content: '✓';
    font-size: 56px;
    color: white;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.success-message h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.success-message p {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
}

.error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    color: #dc2626;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    display: none;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.error-message.active {
    display: block;
}

@media (max-width: 640px) {
    .form-card {
        padding: 40px 28px;
    }

    .form-title {
        font-size: 16px;
        padding: 5px;
    }

    .form-subtitle {
        font-size: 15px;
    }

    .progress-steps {
        gap: 8px;
    }

    .progress-step {
        font-size: 11px;
        padding-top: 28px;
    }

    .progress-step::before {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .button-group {
        flex-direction: column-reverse;
    }

    button {
        width: 100%;
    }

    .radio-option {
        width: 100%;
    }
}

/* ---- Side-by-side contact fields (Step 4) ---- */
.sidebyside-1 {
    display: inline-block;
    width: 48%;
    margin-right: 30px;
}

.sidebyside-2 {
    display: inline-block;
    width: 48%;
}

@media (max-width: 640px) {
    .sidebyside-1 {
        width: 100%;
    }

    .sidebyside-2 {
        width: 100%;
    }
}

/* ---- Primary CTA button (next / exit) ---- */
.btn-primary1 {
    background-color: #23306b;
    border: solid 1px #23306b;
    line-height: 1.8;
    -webkit-box-shadow: 0 3px 0 #182457;
    box-shadow: 0 3px 0 #182457;
    border-radius: 18px;
}

.btn-primary1:hover,
.btn-primary1:focus,
.btn-primary1:active {
    background-color: #2d3978;
    border: solid 1px #23306b;
    -webkit-box-shadow: 0 3px 0 #182457;
    box-shadow: 0 3px 0 #182457
}

.btn-primary1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary1:hover::before {
    left: 100%;
}

.btn-primary1:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

.btn-primary1:active {
    transform: translateY(-1px);
}