/**
 * Thaicon Theme — Блок: Форма «Стать партнёром»
 *
 * Дизайн по скриншоту #1:
 *   - Светло-голубой фон блока
 *   - Белые поля с тонкой рамкой
 *   - 3 ряда по 2 поля (Город/ФИО, Компания/Email, ИНН/Телефон)
 *   - Чекбокс согласия
 *   - Чёрная кнопка "Отправить"
 *
 * @package Thaicon
 */

.block-form-partner {
	background: var(--t-white);
	padding: 5rem 0;
}

.block-form-partner__container {

	background: var(--t-blue-pale);
	border-radius: 1.875rem;               /* 30px */
	padding: 3rem 3.5rem;                  /* 48/56 */
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Декоративный фон-паттерн */
.block-form-partner__container::after {
	content: "";
	position: absolute;
	right: -2rem;
	top: -2rem;
	width: 25rem;
	height: 25rem;
	background-image: radial-gradient(circle, var(--t-blue-light) 8%, transparent 10%),
	                   radial-gradient(circle, var(--t-blue-light) 8%, transparent 10%);
	background-position: 0 0, 5rem 5rem;
	background-size: 10rem 10rem;
	opacity: 0.3;
	z-index: -1;
	pointer-events: none;
}


/* ===== ЗАГОЛОВКИ ===== */

.block-form-partner__header {
	margin-bottom: 2rem;
}

.block-form-partner__title {
	font-size: 2rem;                       /* 32px */
	font-weight: 700;
	line-height: 1.15;
	color: var(--t-dark);
	text-transform: uppercase;
}

.block-form-partner__subtitle {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--t-dark-muted);
	margin-top: 0.75rem;
}


/* ================================================================
   THAICON FORM (универсальные стили для обеих форм)
   ================================================================ */

.thaicon-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;                             /* 16px */
}

.thaicon-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;                             /* 16px */
}

.thaicon-form__field {
	position: relative;
}


/* === Инпуты === */

.thaicon-form__input,
.thaicon-form__select,
.thaicon-form__textarea {
	width: 100%;
	padding: 0.875rem 1.25rem;             /* 14/20 */
	background: var(--t-white);
	border: 1px solid var(--t-blue-light);
	border-radius: 0.75rem;                /* 12px */
	font-family: var(--t-font-family);
	font-size: 0.9375rem;                  /* 15px */
	color: var(--t-dark);
	line-height: 1.4;
	transition: border-color var(--t-speed-normal),
	            box-shadow var(--t-speed-normal);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.thaicon-form__input::placeholder,
.thaicon-form__textarea::placeholder {
	color: var(--t-blue-medium);
	opacity: 0.7;
}

.thaicon-form__input:focus,
.thaicon-form__select:focus,
.thaicon-form__textarea:focus {
	border-color: var(--t-blue-medium);
	box-shadow: 0 0 0 3px rgba(89, 132, 156, 0.15);
}

.thaicon-form__input:invalid:not(:placeholder-shown),
.thaicon-form__select:invalid:not([data-touched="false"]) {
	/* Не показываем красное пока пользователь не попытался сабмитить */
}


/* === Select со стрелкой === */

.thaicon-form__select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2359849c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
	padding-right: 2.5rem;
}


/* === Телефон с флагом === */

.thaicon-form__field--phone {
	position: relative;
}

.thaicon-form__flag {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.125rem;
	z-index: 1;
	pointer-events: none;
}

.thaicon-form__input--phone {
	padding-left: 2.75rem;                 /* 44px — под флаг */
}


/* === Textarea === */

.thaicon-form__textarea {
	min-height: 7rem;                      /* 112px */
	resize: vertical;
	font-family: var(--t-font-family);
}


/* === Checkbox === */

.thaicon-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	cursor: pointer;
	font-size: 0.8125rem;                  /* 13px */
	color: var(--t-dark-muted);
	line-height: 1.4;
	margin-top: 0.5rem;
}

.thaicon-form__checkbox input[type="checkbox"] {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.125rem;
	accent-color: var(--t-dark);
	cursor: pointer;
}

.thaicon-form__checkbox a {
	color: var(--t-dark);
	text-decoration: underline;
	transition: color var(--t-speed-normal);
}

.thaicon-form__checkbox a:hover {
	color: var(--t-blue-medium);
}


/* === Кнопка отправки === */

.thaicon-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 0.9375rem 2.5rem;             /* 15/40 */
	background: var(--t-dark);
	color: var(--t-white);
	font-family: var(--t-font-family);
	font-size: 0.875rem;                   /* 14px */
	font-weight: 700;
	text-transform: uppercase;
	border: none;
	border-radius: 1.0625rem;              /* 17px */
	cursor: pointer;
	transition: background-color var(--t-speed-normal);
	margin-top: 0.5rem;
}

.thaicon-form__submit:hover:not(:disabled) {
	background: var(--t-blue-medium);
}

.thaicon-form__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}


/* === Status / сообщения === */

.thaicon-form__status {
	margin-top: 1rem;
	padding: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	min-height: 0;
	transition: all var(--t-speed-normal);
}

.thaicon-form__status.is-success {
	padding: 1rem 1.25rem;
	background: #dcfae6;
	border-radius: 0.75rem;
	color: #0e6f3c;
}

.thaicon-form__status.is-error {
	padding: 1rem 1.25rem;
	background: #fde7e9;
	border-radius: 0.75rem;
	color: #a8071a;
}


/* ================================================================
   АДАПТИВ
   ================================================================ */

@media (max-width: 959px) {
	.block-form-partner__container {
		padding: 2.5rem 2rem;
	}
	.block-form-partner__title {
		font-size: 1.625rem;
	}
}

@media (max-width: 639px) {
	.block-form-partner {
		padding: 40px 0;
	}
	.block-form-partner__container {
		padding: 24px 20px;
		margin: 0 15px;
		border-radius: 20px;
		max-width: none;
	}
	.block-form-partner__title {
		font-size: 20px;
	}
	.thaicon-form__row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.thaicon-form__input,
	.thaicon-form__select,
	.thaicon-form__textarea {
		font-size: 14px;
		padding: 12px 16px;
	}
	.thaicon-form__submit {
		width: 100%;
		font-size: 13px;
	}
}
