/* ===== CONTACT SECTION - REDESIGNED ===== */

.contact-wrapper * {
	text-transform: none;
}

/* ===== VIOLET BACKGROUND ===== */
.violetbg {
	position: relative;
	overflow: clip; /* Use clip for visual clipping without scroll blocking */
	background: linear-gradient(135deg, var(--grad-left) 0%, var(--grad-right) 100%);
}

.violetbg::before {
	content: "";
	position: absolute;
	inset:-100%;
	background: linear-gradient(135deg, var(--grad-left) 0%, var(--grad-right) 100%);
	animation: changeBackground 8s linear infinite;
	z-index: 0;
	opacity:0;
}

@keyframes changeBackground {
	from {
		transform: rotate(135deg);
	}
	to {
		transform: rotate(315deg);
	}
}

/* ===== MAIN WRAPPER ===== */
.contact-wrapper {
	padding: var(--spacing-3xl) 0;
	width: 100%;
	min-height:100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	position: relative;
	z-index: 101;
}

.bigwrapper {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: var(--spacing-3xl);
	flex-direction: row;
	width: 90%;
	max-width: 1400px;
	position: relative;
	z-index: 1;
}

/* ===== TEXT CONTENT ===== */
.contact-text-container {
	justify-content: center;
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	flex: 0 1 420px;
	gap: var(--spacing-md);
}

.contact-title {
	text-align: left;
	font-family: var(--font-brand);
	font-size: clamp(2rem, 5vw, 2.8rem);
	font-weight: 700;
	line-height: 1.15;
	margin-top: 30px;
	margin-bottom: 0;
}

.whitetitle {
	color: white;
}

.contact-tagline {
	max-width: 420px;
	text-align: left;
	line-height: var(--line-height-relaxed);
	font-size: 1.1rem;
	opacity: 0.9;
}

/* ===== CONTACT INFO ===== */
.chick {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: column;
	gap: var(--spacing-sm);
	margin-top: var(--spacing-md);
	padding: var(--spacing-lg);
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-xl);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	width: 80%;
}

.mail-container {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: row;
	font-size: 0.95rem;
	gap: var(--spacing-xs);
}

.mail-container.boldy {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	opacity: 0.8;
	margin-bottom: var(--spacing-xs);
}

.mail-img {
	width: 20px;
	opacity: 0.9;
}

.mail {
	opacity: 0.95;
}

/* ===== FORM CONTAINER ===== */
.form-container {
	flex: 1 1 600px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	max-width: 650px;
}

.logocontact {
	width: 45px;
	margin-bottom: var(--spacing-sm);
	opacity: 0.9;
}

/* ===== CONTACT FORM ===== */
.contact-form {
	padding: var(--spacing-xl);
	border-radius: var(--radius-xl);
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	box-sizing: border-box;
}

.contact-form *,
.contact-form *::before,
.contact-form *::after {
	box-sizing: border-box;
}

/* ===== GLASSMORPHISM ===== */
.glass2 {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow:
		0 16px 48px rgba(0, 0, 0, 0.12),
		0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ===== FORM FIELDS ===== */
.twoitems {
	display: flex;
	flex-direction: row;
	gap: var(--spacing-md);
}

.twoitems .inputwrapper,
.twoitems .inputwrapper-two {
	flex: 1;
	width: auto;
}

.inputwrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: var(--spacing-2xs);
}

.inputwrapper-two {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: var(--spacing-2xs);
}

/* ===== LABELS ===== */
.contact-form label {
	font-size: 0.85rem;
	font-weight: 600;
	text-align: left;
	color: var(--dark);
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ===== INPUTS ===== */
.contact-form input,
.contact-form textarea {
	background: rgba(0, 0, 0, 0.03);
	color: var(--dark);
	width: 100%;
	box-sizing: border-box;
	border-radius: var(--radius-md);
	text-align: left;
	padding: 0.875rem 1rem;
	font-size: 0.95rem;
	border: 1.5px solid rgba(0, 0, 0, 0.08);
	transition:
		border-color var(--transition-fast),
		box-shadow var(--transition-fast),
		background-color var(--transition-fast);
}

.contact-form input:hover,
.contact-form textarea:hover {
	border-color: rgba(0, 0, 0, 0.15);
	background: rgba(0, 0, 0, 0.02);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--grad-left);
	box-shadow: 0 0 0 3px rgba(134, 77, 148, 0.15);
	background: white;
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
	line-height: var(--line-height-normal);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--dark);
	opacity: 0.4;
	font-size: 0.9rem;
}

/* ===== VALIDATION STATES ===== */
.contact-form input.valid,
.contact-form textarea.valid {
	border-color: #27ae60;
	background: rgba(39, 174, 96, 0.05);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
	border-color: #e74c3c;
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
	background: rgba(231, 76, 60, 0.03);
}

/* ===== SUBMIT BUTTON ===== */
.sendformwrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: var(--spacing-sm);
}

.sendForm {
	min-width: 200px;
	padding: 14px 32px;
	background: linear-gradient(135deg, var(--grad-left) 0%, var(--grad-right) 100%) !important;
	border: none !important;
	border-radius: var(--radius-full);
	cursor: pointer;
	transition:
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-xs);
}

.sendForm .cta-icon {
	display: none;
}

.sendForm .cta-text {
	color: white;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
}

.sendForm .cta-text-logo {
	background: none !important;
	-webkit-text-fill-color: white !important;
	color: white !important;
}

.sendForm .cta-text-logo span {
	color: white !important;
	-webkit-text-fill-color: white !important;
}

.sendForm svg {
	stroke: white;
	transition: transform var(--transition-fast);
}

.sendForm:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(134, 77, 148, 0.35);
}

.sendForm:hover svg {
	transform: translateX(4px);
}

.sendForm:active {
	transform: translateY(-1px);
}

/* Loading state */
.sendForm.loading {
	opacity: 0.7;
	pointer-events: none;
	position: relative;
}

.sendForm.loading::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid transparent;
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ===== TOAST MESSAGE ===== */
.toast-message {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	padding: 14px 28px;
	border-radius: var(--radius-full);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 500;
	z-index: 9999;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease,
		visibility 0.3s ease;
	pointer-events: none;
}

.toast-message.show {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.toast-message.success {
	background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
	color: white;
	box-shadow: 0 8px 25px rgba(39, 174, 96, 0.35);
}

.toast-message.error {
	background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
	color: white;
	box-shadow: 0 8px 25px rgba(231, 76, 60, 0.35);
}

/* ===== RESPONSIVE: TABLET (Column Layout) ===== */
@media (max-width: 1350px) {
	.bigwrapper {
		flex-direction: column;
		align-items: center;
		gap: var(--spacing-xl);
		max-width: 500px;
	}

	.contact-form{
		margin-top:50px;
		margin-bottom: 30px;
	}

	.contact-text-container {
		align-items: center;
		flex: none;
		width: 100%;
	}

	.contact-title,
	.contact-tagline {
		text-align: center;
		max-width: 100%;
	}

	.chick {
		align-items: center;
		margin-top: var(--spacing-sm);
		padding: var(--spacing-md);
		gap: var(--spacing-xs);
	}

	.form-container {
		flex: none;
		width: 100%;
		max-width: 100%;
		justify-content: center;
	}

	.contact-form {
		max-width: 90%;
		padding: var(--spacing-lg);
		gap: var(--spacing-sm);
	}

	.contact-form input,
	.contact-form textarea {
		padding: 0.75rem 0.875rem;
		font-size: 0.9rem;
	}

	.contact-form label {
		font-size: 0.75rem;
	}

	.contact-form textarea {
		min-height: 100px;
	}

	.logocontact {
		width: 38px;
		margin-bottom: var(--spacing-xs);
	}

	.sendformwrapper {
		margin-top: var(--spacing-xs);
	}

	.sendForm {
		padding: 12px 28px;
		font-size: 0.9rem;
	}
}

/* ===== RESPONSIVE: MEDIUM SCREENS ===== */
@media (max-width: 1100px) {
	.bigwrapper {
		gap: var(--spacing-2xl);
	}

	.contact-text-container {
		gap: var(--spacing-lg);
	}

	.chick {
		margin-top: var(--spacing-md);
	}
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
	.contact-wrapper {
		padding: var(--spacing-2xl) 0;
	}

	.bigwrapper {
		width: 92%;
		gap: var(--spacing-xl);
		max-width: 420px;
	}

	.contact-title {
		font-size: 1.8rem;
	}

	.contact-tagline {
		font-size: 0.9rem;
	}

	.contact-form {
		padding: var(--spacing-md);
		gap: var(--spacing-sm);
	}

	.twoitems {
		flex-direction: column;
		gap: var(--spacing-sm);
	}

	.inputwrapper-two {
		width: 100%;
	}

	.inputwrapper {
		gap: 3px;
	}

	.chick {
		padding: var(--spacing-sm);
	}

	.mail-container {
		font-size: 0.85rem;
	}

	.toast-message {
		font-size: 10px;
		width:fit-content;
		max-width:60%;
		border-radius: 9px;
	}

}

/* ===== RESPONSIVE: SMALL MOBILE ===== */
@media (max-width: 480px) {
	.contact-wrapper {
		padding: var(--spacing-xl) 0;
	}

	.bigwrapper {
		gap: var(--spacing-md);
		max-width: 360px;
	}

	.contact-form {
		padding: var(--spacing-sm);
		gap: var(--spacing-xs);
		border-radius: var(--radius-lg);
	}

	.contact-form input,
	.contact-form textarea {
		padding: 0.625rem 0.75rem;
		font-size: 0.85rem;
		border-radius: var(--radius-sm);
	}

	.contact-form label {
		font-size: 0.7rem;
	}

	.contact-form textarea {
		min-height: 80px;
	}

	.sendForm {
		min-width: 100%;
		padding: 10px 24px;
	}

	.contact-title {
		font-size: 1.5rem;
		margin-top: 30px;
	}

	.logocontact {
		width: 32px;
	}
}
