.form-signing__iframe-wrapper {
    width: 100%;
}

.form-signing__iframe-wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.form-signing__buttons {
    display: flex;
    gap: 32px;
    justify-content: center;
}

/* Status/info messages (and the spinner) are centered in the modal area */
.form-signing__modal {
    text-align: center;
}

/* Review step (step 2 of signing-enabled forms) */
.rg-review-step__intro {
    margin-bottom: 24px;
}

.rg-review-step__data {
    margin-bottom: 32px;
}

.rg-review-step__row {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.rg-review-step__label {
    width: 40%;
    font-weight: 600;
}

.rg-review-step__value {
    width: 60%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rg-review-step__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Secondary path: submit + plain PDF download as a small text link on its own row */
.rg-download-alt {
    width: 100%;
    margin-top: 8px;
}

button.rg-download-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

button.rg-download-link:hover {
    text-decoration: none;
}

/* Submit in progress: lock the button row, spinner on the clicked button */
.rg-buttons-loading .gform_button,
.rg-buttons-loading .rg-download-link {
    pointer-events: none;
}

.rg-buttons-loading .gform_button:not(.rg-btn-loading),
.rg-buttons-loading .rg-download-link:not(.rg-btn-loading) {
    opacity: 0.5;
}

.rg-btn-loading::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 10px;
    vertical-align: -0.15em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rg-btn-spin 0.7s linear infinite;
}

@keyframes rg-btn-spin {
    to { transform: rotate(360deg); }
}

/* Highlight required fields left empty when pressing Continue */
.gfield.rg-field-error input,
.gfield.rg-field-error select,
.gfield.rg-field-error textarea {
    border-color: #c02b0a !important;
}

.rg-validation-message {
    color: #c02b0a;
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .rg-review-step__row {
        flex-direction: column;
        gap: 4px;
    }

    .rg-review-step__label,
    .rg-review-step__value {
        width: 100%;
    }
}

/* Signed .asice download button below the confirmation */
.rg-asice-download {
    display: inline-block;
    margin-top: 30px;
}

/* Overlay z-index */
.basicLightbox {
	z-index: 1005;
}

/* All fields styling */
.gform_page_fields table {
	border: none;
	background-color: unset !important;
}
.gform_page_fields table tbody {
	display: block;
}

.gform_page_fields table tbody table tbody tr:nth-child(odd) {
    background-color: unset;
    border: none;
    width: 30%;
    display: inline-block;
    position: relative;
}
.gform_page_fields table tbody table tbody tr:nth-child(even) {
    background-color: unset;
    border: none;
    width: 63%;
    display: inline-block;
    position: relative;
}

.gform_page_fields table tbody td {
	border: none;
	padding: 0.8em 0.5em 0.8em 0;
}

.gform_page_fields table tbody table tbody font {
	color: #181818;
	font-family: 'Helvetica Neue', sans-serif !important;
    font-size: 16px !important;
}
.gform_page_fields table tbody table tbody font strong {
    font-weight: 400;
}

#content .gform_page_fields table tbody table tbody ul.bulleted li {
	margin-left: 0 !important;
}
.gform_page_fields table tbody table tbody ul.bulleted li:before {
	content: unset !important;
}


/* iframe Lightbox */
#isign-gateway {
	border-radius: 16px;
}
.basicLightbox__placeholder, iframe:first-child:last-child {
	/* max-width: 550px !important; */
    width: 100%;
}
.basicLightbox__placeholder {
	padding: 0 15px;
}

/* Close button */
#closeLightbox {
	position: absolute;
    top: 4px;
    right: 10px;
    font-size: 1.5em;
	padding: unset;
}

/* Loading spinner shown in the signing modal while waiting on the server */
.rg-signing-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 14px;
	border: 4px solid rgba(0, 0, 0, 0.12);
	border-top-color: #F33A3B;
	border-radius: 50%;
	animation: rg-signing-spin 0.9s linear infinite;
}
@keyframes rg-signing-spin {
	to { transform: rotate(360deg); }
}
