.msa-form-wrapper {
	font-family: 'Poppins', sans-serif;
	background: #fff;
	border-radius: 24px;
	padding: 0;
	max-width: 860px;
	margin: 3rem auto;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
	position: relative;
	border: 1px solid rgba(0, 0, 0, 0.05);
}
.msa-navigation-last{
	display:block !important;
}
.msa-navigation-buttons-last {
    width: 100%;
    justify-content: end;
    display: flex;
    gap: 15px;
}
.msa-navigation-last{
	display: block;
}
.msa-navigation-buttons-last {
    width: 100%;
}
#msa-payment-form{
	width: 100%;
	height: auto;
}
.msa-consent-label{
	flex-direction: row !important;
    gap: 10px;
    align-items: baseline;
}
input.msa-consent-checkbox {
    width: fit-content;
}
.cancel-appointment,.keep-appointment{
	background-color: #FF9933;
}
.reschedule-appointment,.yes-cancell{
	background-color: #128807;
}

.cancel-appointment:hover, .cancel-appointment:focus, .keep-appointment:hover, .keep-appointment:focus{
	background-color: #128807;
}
.reschedule-appointment:hover, .reschedule-appointment:focus, .yes-cancell:hover, .yes-cancell:focus{
	background-color: #FF9933;
}
.msa-form-wrapper{
    border-top: 8px solid #FF9933;
	border-bottom: 8px solid #128807;
	background-color: #f5f5f5;
}
.msa-form-wrapper h2 {
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	text-align: center;
	margin: 1.5rem 0 0.25rem;
	color: #172129;
}
.msa-form-wrapper label span {
    margin-bottom: 7px;
}

.msa-form-wrapper p {
	color: #4f5564;
	text-align: left;
	margin-bottom: 1rem;
	font-size: 14px;
}
.msa-form-wrapper form {
	padding: 2.75rem 2.75rem 2em 2.75em;
	position: relative;
	border-radius: 24px;
}
.msa-reschedule-wrapper #msa-reschedule-form{
padding: 0 2.75rem 2em 2.75em;
}
.msa-step {
	display: none;
	background: transparent;
	padding: 0;
	margin-bottom: 0;
}
.msa-step.active {
	display: block;
}
.msa-conditional {
	display: none;
}
.msa-conditional.msa-visible {
	display: block;
}
.msa-marriage-location-wrap {
	display: none;
}
.msa-marriage-location-wrap.msa-visible {
	display: table-row;
}
.msa-spouse-visa-field {
	display: none;
}
.msa-spouse-visa-field.msa-visible {
	display: table-row;
}
.msa-step h3 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #172129;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 0;
}
.msa-review-authorize-fees {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.msa-review-authorize-fees label {
    margin-bottom: 0 !important;
}
.msa-step label {
	display: flex;
	flex-direction: column;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: #4f5564;
}
.msa-field-error-message {
	margin-top: 0.7rem;
	font-size: 0.82rem;
	color: #b91c1c !important;
	line-height: 1.2;
}
.msa-step input.msa-field-error,
.msa-step select.msa-field-error,
.msa-step textarea.msa-field-error {
	border-color: #b91c1c;
	box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}
.msa-step input:not([type=file]),
.msa-step select,
.msa-step textarea {
	border: 1px solid rgba(20, 32, 77, 0.2);
	border-radius: 12px;
	padding: 0.9rem;
	background: #fff;
	font-size: 0.95rem;
	color: #4f5564;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
	height:auto;
}
.msa-step input:focus,
.msa-step select:focus,
.msa-step textarea:focus {
	outline: none;
	border-color: #fb8c00;
	box-shadow: 0 0 0 2px rgba(251, 140, 0, 0.25);
}
.msa-navigation {
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 2rem;
}
.msa-submit[disabled]{
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}


.msa-navigation button {
	border: none;
	background: #fb8c00;
	color: #fff;
	padding: 0.95rem 2.2rem;
	border-radius: 22px;
	font-weight: 700;
	letter-spacing: 0.3px;
	font-size: 0.95rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 25px rgba(251, 140, 0, 0.35);
}
.msa-navigation button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(251, 140, 0, 0.45);
}
.msa-navigation .msa-submit.msa-loading {
	transform: none;
	cursor: wait;
	position: relative;
	pointer-events: none;
}
.msa-navigation .msa-submit.msa-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 4px solid rgb(255 255 255 / 54%);
    border-top-color: #fff;
    border-radius: 50%;
    top: 30%;
    left: 44%;
    transform: translate(-50%, -50%);
    animation: msa-spin 0.8s linear infinite;
}
.msa-navigation .msa-submit.msa-loading span {
	visibility: hidden;
}
.msa-save-progress {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.msa-response,
.msa-save-message {
	display: none;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
}
.msa-success {
	background: #fff;
	color: #065f46;
	margin-top: 0;
    text-align: center;
    padding: 70px 0;
}
.msa-error {
	background: #fde2e1;
	color: #b91c1c;
}
.msa-tracking-note {
	font-size: 0.85rem;
	color: #4b5563;
	margin-top: 1.5rem;
	text-align: center;
}
.msa-review-summary {
	background: #f8f9fb;
	padding: 1.5rem;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	margin-bottom: 1.5rem;
}
.msa-review-summary h4 {
	color: #0c2340;
	font-weight: 700;
	margin-bottom: 0.75rem;
	margin-top: 0;
}
.msa-review-summary-data {
	padding-left: 0.25rem;
}

.msa-review-payment-total {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid rgba(251, 140, 0, 0.3);
}

.msa-review-payment-total p {
	margin: 0.5rem 0;
	font-size: 0.95rem;
	color: #4f5564;
	text-align: right;
}

.msa-review-payment-total p:last-child {
	margin-top: 1rem;
	font-size: 1.15rem;
	color: #fb8c00;
	border-top: 1px solid rgba(251, 140, 0, 0.2);
	padding-top: 1rem;
}
.msa-review-file-group {
	padding: 0.85rem;
	border-radius: 0.85rem;
	background: #fff;
	border: 1px dashed rgba(15, 23, 42, 0.1);
}
.msa-review-file-group-label {
	font-weight: 600;
	color: #0c2340;
	margin-bottom: 0.65rem;
	display: block;
}
.msa-review-file-item {
	font-size: 0.95rem;
	line-height: 1.4;
	color: #0b1638;
}
.msa-review-summary-files {
	padding: 0;
	background: #fff;
	border-radius: 1rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
}
.msa-review-summary-files .msa-review-file-empty
.msa-review-file-item span,
.msa-review-file-group .msa-review-file-link {
	color: #0b1638;
	line-height: 1.6;
}

.msa-calendar-layout {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) 1.2fr;
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
}

.msa-calendar-panel,
.msa-calendar-times-panel {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
	padding: 1.5rem;
}

.msa-calendar-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.25rem;
}

.msa-calendar-panel-label {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
}

.msa-calendar-panel-subtext {
	margin: 0;
	color: #5f7187;
	font-size: 0.9rem;
}

.msa-calendar-panel-controls {
	display: flex;
	gap: 0.5rem;
}

.msa-calendar-nav,.msa-schedule-calendar-nav {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #eef2ff;
	color: #1d4ed8;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
	padding:0;
}


.msa-calendar-days {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.msa-calendar-day-card,.msa-schedule-calendar-day {
	border: 1px solid rgba(79, 70, 229, 0.2);
	background: #f8fafc;
	border-radius: 16px;
	padding: 0.8rem;
	text-align: center;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
	color: #0f172a;
}

.msa-calendar-day-card--active,
.msa-schedule-calendar-day--active {
	background: #1d4ed8;
	color: #fff;
	box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2);
}

.msa-slot-panels {
	max-height: 360px;
	overflow-y: auto;
	display: grid;
	grid-auto-rows: minmax(0, auto);
	gap: 0.5rem;
}

.msa-slot-panel {
	display: none;
}

.msa-slot-panel--active {
	display: block;
}

.msa-slot-list {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax(150px, 1fr) );
	gap: 0.5rem;
}

.msa-calendar-slot,.msa-schedule-slot {
	border-radius: 20px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	padding: 0.85rem 1rem;
	background: #f8fafc;
	min-height: 48px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	color: #0f172a;
	transition: background 0.2s ease, transform 0.2s ease;
}

.msa-calendar-slot--booked,
.msa-schedule-slot--booked {
	background: #e5e7eb;
	border-color: rgba(15, 23, 42, 0.1);
	color: #6b7280;
	cursor: not-allowed;
}

.msa-calendar-slot--selected,
.msa-schedule-slot--selected {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
	box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
}

.msa-calendar-selection {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.msa-calendar-selection input.msa-meeting-slot-display {
	border-radius: 16px;
	border: 1px solid rgba(15, 23, 42, 0.15);
	padding: 0.9rem;
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	background: #f8fafc;
}

.msa-calendar-times-panel {
	border: 1px solid rgba(79, 70, 229, 0.15);
	background: #fff;
}

.msa-calendar-times-header {
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.msa-navigation {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
}

.msa-navigation button {
	min-width: 120px;
}
@media (max-width: 768px) {
	.msa-navigation-buttons-last {
    width: 100%;
    justify-content: end;
    display: block;
    gap: 15px;
}
	.msa-navigation-buttons-last button {
    margin: 5px 0;
}
	.msa-reschedule-calendar .msa-calendar-layout {
		grid-template-columns: 1fr;
	}
	.keep-appointment{
		margin-top: 10px;
	}
	.msa-form-wrapper {
		margin: 1.5rem auto;
	}
	.msa-form-wrapper form {
		padding: 2rem;
	}
	.msa-navigation {
		flex-direction: column;
		align-items: stretch;
	}
	.msa-navigation button {
		width: 100%;
		text-align: center;
	}
}

/* Stripe Payment Element styling */
#msa-payment-form {
	margin-bottom: 1.5rem;
	padding: 0.75rem;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background-color: #f9f9f9;
}

.StripeElement {
	box-sizing: border-box;
	height: 40px;
	padding: 10px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background-color: white;
	box-shadow: 0 1px 3px 0 #e6ebf1;
	-webkit-transition: box-shadow 150ms ease;
	transition: box-shadow 150ms ease;
}

.StripeElement--focus {
	box-shadow: 0 1px 3px 0 #cfd7df;
	border-color: #80bdff;
	outline: 0;
}

.StripeElement--invalid {
	border-color: #fa755a;
}

@keyframes msa-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
