.ydrp-modal {
	--ydrp-blue: #005ed8;
	--ydrp-blue-dark: #004fb8;
	--ydrp-ink: #111c33;
	--ydrp-muted: #64748b;
	--ydrp-border: #d8e2ef;
	--ydrp-green: #12a846;
	--ydrp-green-dark: #08913a;
	--ydrp-error: #dc2626;
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	color: var(--ydrp-ink);
}

.ydrp-modal *,
.ydrp-modal *::before,
.ydrp-modal *::after {
	box-sizing: border-box;
	letter-spacing: 0;
}

.ydrp-modal.is-open {
	display: flex;
}

body.ydrp-lock {
	overflow: hidden !important;
}

.ydrp-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 28, 50, 0.68);
	backdrop-filter: blur(7px);
}

.ydrp-dialog {
	position: relative;
	z-index: 1;
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100vh - 42px);
	overflow: auto;
	background: #ffffff;
	border: 1px solid rgba(216, 226, 239, 0.95);
	border-radius: 16px;
	padding: 32px 38px 30px;
	box-shadow: 0 28px 76px rgba(15, 23, 42, 0.34);
	animation: ydrp-pop 0.18s ease;
	outline: none;
}

@keyframes ydrp-pop {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.ydrp-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 42px;
	height: 42px;
	border: 1px solid #e4eaf2;
	border-radius: 50%;
	background: #ffffff;
	color: #0f172a;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ydrp-close:hover,
.ydrp-close:focus {
	background: #f8fafc;
	border-color: var(--ydrp-blue);
	outline: none;
}

.ydrp-form h2 {
	margin: 0 46px 22px;
	text-align: center;
	color: var(--ydrp-ink);
	font-size: 32px;
	line-height: 1.18;
	font-weight: 900;
}

.ydrp-field,
.ydrp-hosting-field {
	display: block;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.ydrp-field > span,
.ydrp-hosting-field legend {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--ydrp-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.ydrp-domain-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px;
	gap: 16px;
}

.ydrp-years-row {
	display: flex;
	align-items: center;
}

.ydrp-modal input,
.ydrp-modal select {
	width: 100%;
	min-height: 56px;
	border: 1px solid var(--ydrp-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--ydrp-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	padding: 0 16px;
	outline: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ydrp-modal input:focus,
.ydrp-modal select:focus {
	border-color: var(--ydrp-blue);
	box-shadow: 0 0 0 3px rgba(0, 94, 216, 0.14);
}

.ydrp-modal select {
	appearance: auto;
	cursor: pointer;
}

.ydrp-years-stepper {
	width: 162px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 40px;
	overflow: hidden;
	border: 1px solid var(--ydrp-border);
	border-radius: 8px;
	background: #ffffff;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ydrp-years-stepper:focus-within {
	border-color: var(--ydrp-blue);
	box-shadow: 0 0 0 3px rgba(0, 94, 216, 0.14);
}

.ydrp-years-stepper input {
	min-height: 54px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ydrp-years-stepper input:focus {
	box-shadow: none;
}

.ydrp-years-stepper input::-webkit-outer-spin-button,
.ydrp-years-stepper input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.ydrp-years-stepper input[type="number"] {
	appearance: textfield;
}

.ydrp-year-buttons {
	display: grid;
	grid-template-rows: 1fr 1fr;
	border-left: 1px solid var(--ydrp-border);
}

.ydrp-year-step {
	position: relative;
	width: 40px;
	height: 27px;
	border: 0;
	border-radius: 0;
	background: #f8fbff;
	cursor: pointer;
}

.ydrp-year-step:hover,
.ydrp-year-step:focus {
	background: #eef6ff;
	outline: none;
}

.ydrp-year-up {
	border-bottom: 1px solid var(--ydrp-border);
}

.ydrp-year-step::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #13213a;
	border-left: 2px solid #13213a;
}

.ydrp-year-up::before {
	transform: translate(-50%, -28%) rotate(45deg);
}

.ydrp-year-down::before {
	transform: translate(-50%, -70%) rotate(225deg);
}

.ydrp-choice-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ydrp-choice {
	min-height: 56px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--ydrp-border);
	border-radius: 8px;
	background: #ffffff;
	padding: 0 16px;
	color: var(--ydrp-ink);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.ydrp-choice input {
	width: 18px;
	height: 18px;
	min-height: 18px;
	margin: 0;
	padding: 0;
	accent-color: var(--ydrp-blue);
}

.ydrp-choice.is-selected,
.ydrp-choice:has(input:checked) {
	border-color: var(--ydrp-blue);
	box-shadow: 0 0 0 2px rgba(0, 94, 216, 0.12);
}

.ydrp-submit {
	width: 100%;
	min-height: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--ydrp-blue), #0074ff);
	color: #ffffff;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	padding: 0 20px;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(0, 94, 216, 0.26);
	transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.ydrp-submit:hover,
.ydrp-submit:focus {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(0, 94, 216, 0.32);
	outline: none;
}

.ydrp-submit:disabled {
	opacity: 0.72;
	cursor: wait;
	transform: none;
}

.ydrp-response {
	min-height: 20px;
	margin: 10px 0 0;
	text-align: center;
	color: var(--ydrp-muted);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.ydrp-response.is-error {
	color: var(--ydrp-error);
}

.ydrp-response.is-success {
	color: var(--ydrp-green);
}

.ydrp-transfer-dialog {
	width: min(560px, calc(100vw - 32px));
}

.ydrt-form input[readonly] {
	background: #eef8ff;
	color: #0b4f95;
	font-weight: 900;
	cursor: not-allowed;
}

.ydrt-note {
	margin: 14px 0 0;
	padding: 13px 14px;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	background: #f4f9ff;
	color: #475569;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.ydrp-whatsapp-prompt {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(3px);
	border-radius: 16px;
}

.ydrp-whatsapp-prompt.is-open {
	display: flex;
}

.ydrp-whatsapp-card {
	width: min(500px, 100%);
	padding: 30px 32px 32px;
	border: 1px solid #d5efe0;
	border-radius: 16px;
	background: #ffffff;
	text-align: center;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.ydrp-success-mark {
	width: 76px;
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--ydrp-green);
	box-shadow: 0 14px 28px rgba(18, 168, 70, 0.26);
}

.ydrp-success-mark span {
	width: 34px;
	height: 18px;
	display: block;
	border-left: 5px solid #ffffff;
	border-bottom: 5px solid #ffffff;
	transform: rotate(-45deg) translate(2px, -2px);
}

.ydrp-whatsapp-card h3 {
	max-width: 330px;
	margin: 0 auto 18px;
	color: var(--ydrp-green);
	font-size: 26px;
	line-height: 1.22;
	font-weight: 900;
}

.ydrp-whatsapp-question {
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid rgba(18, 168, 70, 0.3);
	border-radius: 8px;
	background: #effbf4;
	color: #0b5130;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.35;
}

.ydrp-whatsapp-subtext {
	max-width: 310px;
	margin: 0 auto 26px;
	color: var(--ydrp-muted);
	font-size: 15px;
	line-height: 1.45;
}

.ydrp-whatsapp-btn,
.ydrp-whatsapp-btn:hover,
.ydrp-whatsapp-btn:focus {
	width: 100%;
	min-height: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #08ad45, #05bf4a) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 18px;
	font-weight: 900;
	box-shadow: 0 14px 28px rgba(8, 173, 69, 0.28);
}

.ydrp-whatsapp-close {
	width: 100%;
	min-height: 56px;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-top: 18px;
	border: 1px solid var(--ydrp-blue) !important;
	border-radius: 999px;
	background: #ffffff !important;
	color: var(--ydrp-blue) !important;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.2;
	cursor: pointer;
	opacity: 1 !important;
	text-shadow: none !important;
}

.ydrp-whatsapp-close:hover,
.ydrp-whatsapp-close:focus {
	background: #f4f9ff !important;
	color: var(--ydrp-blue-dark) !important;
	outline: none;
}

@media (max-width: 640px) {
	.ydrp-modal {
		padding: 12px;
	}

	.ydrp-dialog {
		width: min(100%, calc(100vw - 20px));
		max-height: calc(100vh - 20px);
		padding: 26px 18px 22px;
		border-radius: 14px;
	}

	.ydrp-close {
		top: 12px;
		right: 12px;
		width: 36px;
		height: 36px;
	}

	.ydrp-form h2 {
		margin: 0 40px 20px;
		font-size: 26px;
	}

	.ydrp-domain-row,
	.ydrp-years-row,
	.ydrp-choice-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ydrp-modal input,
	.ydrp-modal select,
	.ydrp-choice {
		min-height: 52px;
		font-size: 15px;
	}

	.ydrp-submit {
		min-height: 54px;
		font-size: 18px;
	}

	.ydrp-whatsapp-prompt {
		padding: 14px;
		border-radius: 14px;
	}

	.ydrp-whatsapp-card {
		padding: 24px 18px;
		border-radius: 14px;
	}

	.ydrp-whatsapp-card h3 {
		font-size: 22px;
	}

	.ydrp-whatsapp-question,
	.ydrp-whatsapp-btn,
	.ydrp-whatsapp-close {
		font-size: 16px;
	}
}
