/**
 * Thanks Page Template Styles
 * Thank-you page template styles
 *
 * @package Experis_Academy
 */

/* Mobile: height by content, background covers screen (min-height: 100vh) */
.site-main--thanks {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background: var(--thanks-bg-url) center center / cover no-repeat;
	background-color: var(--color-violet-gradient-end, #4f4296);
	display: flex;
	align-items: center;
	padding: 72px 0;
}

/* Desktop: fixed one-screen height */
@media (min-width: 901px) {
	.site-main--thanks {
		height: 100vh;
		min-height: 100vh;
	}
}
@media (max-width: 768px){
	.site-main--thanks{
		padding: 34px 0 !important;
	}
}
.thanks__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
	direction: rtl;
}

.thanks__content {
	min-width: 0;
}

.thanks__entry {
	font-family: var(--font-family-hebrew);
	color: var(--color-white, #fff);
	text-align: right;
	direction: rtl;
}

/* Normal spacing between elements (Gutenberg + content) – fixes global reset */
.thanks__entry > * + * {
	margin-top: 1.25em;
}

.thanks__entry > *:first-child {
	margin-top: 0;
}

.thanks__entry p {
	font-size: var(--font-size-lg);
	line-height: 1.6;
	margin-bottom: 0;
}

.thanks__entry p + p {
	margin-top: 1em;
}

.thanks__entry h1,
.thanks__entry h2,
.thanks__entry h3,
.thanks__entry h4 {
	color: var(--color-white);
	margin-bottom: 0.25em;
}

.thanks__entry h1 { margin-top: 0; }
.thanks__entry h2,
.thanks__entry h3,
.thanks__entry h4 {
	margin-top: 1.25em;
}

.thanks__entry h2:first-child,
.thanks__entry h3:first-child,
.thanks__entry h4:first-child {
	margin-top: 0;
}

.thanks__entry ul,
.thanks__entry ol {
	margin: 1em 0;
	padding-inline-end: 1.5em;
}

.thanks__form-col {
	min-width: 0;
}

.thanks__form-card {
	background: var(--color-white, #fff);
	border-radius: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	padding: 40px;
}

/* Gravity Forms – scoping for thanks page form */
.thanks__form-card .gform_wrapper {
	margin: 0;
}

.thanks__form-card .gform_wrapper label {
	font-family: var(--font-family-hebrew);
	color: var(--color-violet-primary);
}

.thanks__form-card .gform_wrapper input[type="text"],
.thanks__form-card .gform_wrapper input[type="email"],
.thanks__form-card .gform_wrapper input[type="tel"],
.thanks__form-card .gform_wrapper textarea {
	box-sizing: border-box;
	height: 44px;
	border: 1px solid rgba(92, 75, 185, 1);
	border-radius: 8px;
	padding: 0 16px;
	font-family: var(--font-family-hebrew);
	direction: rtl;
	color: var(--color-violet-primary);
}

.thanks__form-card .gform_wrapper textarea {
	height: auto;
	min-height: 44px;
	padding-block: 12px;
}

.thanks__form-card .gform_wrapper input:focus,
.thanks__form-card .gform_wrapper textarea:focus {
	border-color: var(--color-violet-primary);
	outline: 2px solid var(--color-violet-primary);
	outline-offset: 2px;
}

input#gform_submit_button_3 {
	width: 100%;
	border-radius: 90px;
	padding: 20px;
}

/* File upload – Same as friend page, applies to all file fields (Gravity Forms) */
.thanks__form-card .gform_wrapper .ginput_container_fileupload,
.thanks__form-card .gform_wrapper .gfield--type-fileupload .ginput_container {
	display: block;
	border: 1px solid rgba(92, 75, 185, 0.45);
	border-radius: 8px;
	background: #fff;
	min-height: 44px;
	height: 44px;
	box-sizing: border-box;
	padding-inline: 16px;
	padding-block: 0;
	position: relative;
	background-image: url(../img/upload-file.svg);
	background-repeat: no-repeat;
	background-position: 16px center;
	background-size: 24px 24px;
	direction: rtl;
}

.thanks__form-card .gform_wrapper .ginput_container_fileupload input[type="file"],
.thanks__form-card .gform_wrapper .gfield--type-fileupload input[type="file"] {
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-base);
	color: rgba(92, 75, 185, 0.85);
	border: none;
	background: transparent;
	padding-inline-end: 40px;
	width: 100%;
	cursor: pointer;
	box-shadow: none;
}

.thanks__form-card .gform_wrapper .ginput_container_fileupload input[type="file"]::file-selector-button,
.thanks__form-card .gform_wrapper .gfield--type-fileupload input[type="file"]::file-selector-button {
	display: none;
}

.thanks__form-card .gform_wrapper .gfield--type-fileupload .gform_fileupload_rules {
	font-size: var(--font-size-sm);
	color: rgba(92, 75, 185, 0.6);
	margin-top: 6px;
}

.thanks__form-card .gform_wrapper .gform_footer input[type="submit"],
.thanks__form-card .gform_wrapper .button,
.thanks__form-card .gform_wrapper .gform_footer .gform_button {
	display: block;
	width: 100%;
	background: linear-gradient(90deg, var(--color-violet-gradient-mid) 0%, var(--color-violet-gradient-start) 100%);
	color: #fff;
	border: none;
	border-radius: 108px;
	padding: 16px 32px;
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
	box-shadow: none;
}

.thanks__form-card .gform_wrapper .gform_footer input[type="submit"]:hover,
.thanks__form-card .gform_wrapper .button:hover,
.thanks__form-card .gform_wrapper .gform_footer .gform_button:hover {
	opacity: 0.92;
}

@media (max-width: 900px) {
	.thanks__container {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 0 24px;
	}

	.thanks__form-card {
		order: -1;
	}
}

/* Hide footer on thank-you page */
body.page-template-page-thanks-php #site-footer,
body.page-template-page-thanks-2-php #site-footer {
	display: none !important;
}
