.sordit-lead-form-card,
.sordit-lead-form-card *,
.sordit-lead-form-card *::before,
.sordit-lead-form-card *::after {
	box-sizing: border-box;
}

.sordit-lead-form-card {
	max-width: 480px;
	margin: 0 auto;
	padding: 2.5rem;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 2px 40px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-align: center;
}

.sordit-lead-form__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: #1e293b;
	letter-spacing: -0.01em;
}

.sordit-lead-form__subtitle {
	margin: 0 0 2rem;
	font-size: 0.95rem;
	color: #67768e;
	line-height: 1.5;
}

.sordit-lead-form {
	text-align: left;
}

.sordit-lead-form__field {
	margin-bottom: 1.25rem;
}

.sordit-lead-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.sordit-lead-form__field label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.5rem;
	letter-spacing: -0.01em;
}

.sordit-lead-form__field input,
.sordit-lead-form__field select,
.sordit-lead-form__field textarea {
	width: 100%;
	height: auto !important;
	min-height: 48px;
	padding: 0.85rem 1rem;
	background: #ffffff;
	border: 1.5px solid #e2e5eb;
	border-radius: 10px;
	font-size: 1rem;
	line-height: 1.4;
	font-family: inherit;
	color: #1e293b;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.sordit-lead-form__field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2367768e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px;
	padding-right: 2.5rem;
	color: #1e293b;
}

.sordit-lead-form__field select:invalid {
	color: #67768e;
}

.sordit-lead-form__field textarea {
	resize: vertical;
	min-height: 100px;
}

.sordit-lead-form__field input::placeholder,
.sordit-lead-form__field textarea::placeholder {
	color: #a3adba;
}

.sordit-lead-form__field input:focus,
.sordit-lead-form__field select:focus,
.sordit-lead-form__field textarea:focus {
	outline: none;
	border-color: #3058a6;
	box-shadow: 0 0 0 4px rgba(48, 88, 166, 0.14);
}

.sordit-lead-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sordit-lead-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #3058a6;
	color: #fff;
	border: none;
	padding: 0.95rem 2rem;
	border-radius: 10px;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.sordit-lead-form__submit:hover {
	background: #24447f;
}

.sordit-lead-form__submit:active {
	transform: scale(0.98);
}

.sordit-lead-form__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.sordit-lead-form__status {
	margin-top: 1rem;
	font-size: 0.9rem;
	text-align: center;
	min-height: 1.2em;
}

.sordit-lead-form__status--success {
	color: #1d7d3f;
}

.sordit-lead-form__status--error {
	color: #d70015;
}

@media (max-width: 600px) {
	.sordit-lead-form-card {
		padding: 1.75rem 1.25rem;
		border-radius: 16px;
	}

	.sordit-lead-form__row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* Popup */
.sordit-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sordit-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.sordit-popup-inner {
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
	width: 100%;
	max-width: 480px;
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.sordit-popup-overlay.is-open .sordit-popup-inner {
	transform: scale(1);
}

.sordit-popup-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f5f5f7;
	color: #1e293b;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.sordit-popup-close:hover {
	background: #e5e5ea;
}
