/**
 * Friends Block Styles
 * Friend brings friend block styles
 *
 * @package Experis_Academy
 */

/* ===================================
   Container & Layout
   =================================== */

.friends {
	position: relative;
	width: 100%;
	padding: 72px 0;
	background: var(--color-bg-white, #fff);
}

.friends__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
	direction: rtl;
}

/* ===================================
   Form Column (left in RTL = first in DOM)
   =================================== */

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

.friends__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 – basic scoping so shortcode form fits design */
.friends__form-card .gform_wrapper {
	margin: 0;
}

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

.friends__form-card .gform_wrapper input[type="text"],
.friends__form-card .gform_wrapper input[type="email"],
.friends__form-card .gform_wrapper input[type="tel"],
.friends__form-card .gform_wrapper select,
.friends__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);
	background-color: #fff;
	width: 100%;
}

.friends__form-card .gform_wrapper select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%235C4BB9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 16px center;
	background-size: 16px;
}

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

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

/* File upload – Box with icon as in design (Gravity Forms: fileupload) */
.friends__form-card .gform_wrapper .ginput_container_fileupload,
.friends__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(../../../assets/img/upload-file.svg);
	background-repeat: no-repeat;
	background-position: 16px center;
	background-size: 24px 24px;
	direction: rtl;
}

.friend-form-title{
	color: var(--violet-2, #5C4BB9) !important;
font-size: var(--font-size-base) !important;
font-weight: var(--font-weight-bold)!important;
}

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

.friends__form-card .gform_wrapper .ginput_container_fileupload input[type="file"],
.friends__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;
}

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

/* Hide/style "Max. file size" text below field */
.friends__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;
}

.friends__form-card .gform_wrapper .gform_footer input[type="submit"],
.friends__form-card .gform_wrapper .button,
.friends__form-card .gform_wrapper .gform_footer .gform_button {
	display: block;
	width: 100%;
	background: linear-gradient(90deg, #6F50B3 0%, #8C6AD3 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;
}

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

.friends__form-card .gform_wrapper .gform_footer input[type="submit"]:focus,
.friends__form-card .gform_wrapper .gform_footer input[type="submit"]:focus-visible,
.friends__form-card .gform_wrapper .button:focus,
.friends__form-card .gform_wrapper .gform_footer .gform_button:focus-visible {
	outline: 0;
}
div#field_2_5 {
    margin-top: 16px;
}
/* ===================================
   Content Column
   =================================== */

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

.friends__content {
	direction: rtl;
	text-align: right;
}

/* Intro content (rich text: title + description) */
.friends__intro {
	font-family: var(--font-family-hebrew);
	margin-bottom: 32px;
}

.friends__intro p,
.friends__intro h1,
.friends__intro h2,
.friends__intro h3 {
	margin: 0 0 8px;
	line-height: 1.3;
	color: var(--color-violet-primary);
}

.friends__intro p:first-child {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
}

.friends__intro h2 {
	font-size: var(--font-size-3xl);
	font-weight: var(--font-weight-bold);
	margin-bottom: 24px;
}

.friends__intro p:not(:first-child) {
	font-size: var(--font-size-lg);
	line-height: 1.6;
	color: var(--color-grey-1);
	margin-bottom: 16px;
}

.friends__intro p:last-child {
	margin-bottom: 0;
}

.friends__benefits-title {
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
	color: var(--color-violet-primary);
	margin: 0 0 24px;
	line-height: 1.3;
}

/* Benefits Grid */
.friends__benefits {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.friends__benefit {
	border: 1px solid rgba(92, 75, 185, 0.3);
	border-radius: 16px;
	padding: 24px;
	background: var(--color-white, #fff);
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.friends__benefit:hover {
	box-shadow: 0 4px 16px rgba(92, 75, 185, 0.12);
	transform: translateY(-2px);
}

.friends__benefit-icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.friends__benefit-icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	display: block;
}

.friends__benefit-text {
	font-family: var(--font-family-hebrew);
	font-size: var(--font-size-base);
	line-height: 1.5;
	color: var(--color-grey-1);
	margin: 0;
}

/* ===================================
   Tablet (max-width: 1024px)
   =================================== */

@media (max-width: 1024px) {
	.friends {
		padding: 60px 0;
	}

	.friends__container {
		gap: 40px;
		padding: 0 32px;
	}

	.friends__form-card {
		padding: 32px;
	}

	.friends__intro h2 {
		font-size: var(--font-size-2xl);
	}
}

/* ===================================
   Mobile (max-width: 768px)
   =================================== */

@media (max-width: 768px) {
	.friends {
		padding: 56px 0;
	}

	.friends__container {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 0 16px;
	}

	.friends__form-card {
		padding: 24px;
	}

	.friends__intro p:first-child {
		font-size: var(--font-size-lg);
	}

	.friends__intro h2 {
		font-size: var(--font-size-xl);
		margin-bottom: 20px;
	}

	.friends__intro p:not(:first-child) {
		font-size: var(--font-size-base);
	}

	.friends__benefits-title {
		font-size: var(--font-size-lg);
		margin-bottom: 20px;
	}

	.friends__benefits {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.friends__benefit {
		padding: 20px;
	}
}

/* ===================================
   Accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
	.friends__benefit,
	.friends__form-card .gform_wrapper .gform_footer input[type="submit"],
	.friends__form-card .gform_wrapper .button {
		transition: none;
	}

	.friends__benefit:hover {
		transform: none;
	}
}

.friends__form-card .gform_wrapper .gform_footer input[type="submit"]:focus-visible,
.friends__form-card .gform_wrapper .button:focus-visible {
	outline: 2px solid var(--color-violet-primary);
	outline-offset: 2px;
}
