/* =============================================================
   DEVOS REVISTA — newsletter.css
   Popup-ul de abonare și formularul (în popup și în caseta de jos).
   Colțuri drepte, fără sublinieri — ca restul temei.
   ============================================================= */

/* 1. Formularul --------------------------------------------------- */

.dr-sub { display: grid; gap: 14px; text-align: left; }
.dr-sub__fields { display: grid; gap: 12px; }
@media (min-width: 560px) {
	.dr-sub__fields { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
.dr-sub__field { display: grid; gap: 6px; min-width: 0; }
.dr-sub__field label {
	font: 700 .66rem/1 var(--f-brand);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--navy);
}
.dr-sub__field label span { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.dr-sub input[type="text"],
.dr-sub input[type="email"] {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 1.5px solid var(--rule-2);
	background: #fff;
	font: 500 1rem var(--f-ui);
	color: var(--ink);
	transition: border-color var(--ease), box-shadow var(--ease);
}
.dr-sub input::placeholder { color: #9aa6b2; }
.dr-sub input[type="text"]:focus,
.dr-sub input[type="email"]:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 4px rgba(207, 222, 75, .45);
}
.dr-sub input[aria-invalid="true"] { border-color: #c2410c; }

.dr-sub__consent {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: .82rem;
	line-height: 1.5;
	color: var(--ink-2);
	cursor: pointer;
}
.dr-sub__consent input {
	width: 20px; height: 20px;
	margin: 1px 0 0;
	accent-color: var(--olive);
	cursor: pointer;
}
.dr-sub__consent input[aria-invalid="true"] { outline: 2px solid #c2410c; outline-offset: 2px; }
.dr-sub__consent a { color: var(--olive-ink); font-weight: 600; }
.dr-sub__consent a:hover { color: var(--navy); }

.dr-sub__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dr-sub__btn { width: 100%; justify-content: center; min-height: 56px; font-size: .8rem; }
.dr-sub__btn[disabled] { cursor: progress; opacity: .85; }
.dr-sub.is-loading .dr-sub__btn .dr-icon { animation: dr-nudge .8s ease-in-out infinite; }

.dr-sub__msg { margin: 0; min-height: 1.2em; font-size: .85rem; font-weight: 600; color: #c2410c; }
.dr-sub.is-shake { animation: dr-shake .4s cubic-bezier(.36, .07, .19, .97); }

.dr-sub__done { display: grid; gap: 6px; margin: 0; padding: 18px 20px; border-left: 4px solid var(--lime); background: rgba(207, 222, 75, .12); }
.dr-sub__done strong { font: 800 1.15rem/1.2 var(--f-brand); }
.dr-sub__done span { line-height: 1.55; }

/* Varianta închisă (caseta navy de jos) */
.dr-sub--dark .dr-sub__field label { color: var(--lime); }
.dr-sub--dark .dr-sub__field label span { color: rgba(255, 255, 255, .55); }
.dr-sub--dark input[type="text"],
.dr-sub--dark input[type="email"] { border-color: transparent; }
.dr-sub--dark .dr-sub__consent { color: rgba(255, 255, 255, .75); }
.dr-sub--dark .dr-sub__consent a { color: var(--lime); }
.dr-sub--dark .dr-sub__consent a:hover { color: #fff; }
.dr-sub--dark .dr-sub__msg { color: #fdba74; }
.dr-sub--dark .dr-sub__done { color: #fff; background: rgba(207, 222, 75, .1); }
.dr-newsletter__form { text-align: left !important; }
@media (min-width: 860px) {
	.dr-newsletter__box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important; }
	.dr-newsletter__form { max-width: 560px !important; }
}

/* Butonul din meniul de pe telefon */
.dr-drawer__sub { width: 100%; justify-content: center; }


/* 2. Popup-ul ----------------------------------------------------- */

.dr-modal {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: grid;
	place-items: center;
	padding: 20px;
	overflow-y: auto;
}
.dr-modal[hidden] { display: none; }

.dr-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 16, 32, .62);
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
	opacity: 0;
	transition: opacity .35s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease;
}
.dr-modal.is-open .dr-modal__backdrop {
	opacity: 1;
	-webkit-backdrop-filter: blur(8px) saturate(1.1);
	backdrop-filter: blur(8px) saturate(1.1);
}

.dr-modal__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: min(980px, 100%);
	background: var(--paper);
	box-shadow: 0 40px 120px -30px rgba(0, 10, 25, .65);
	opacity: 0;
	transform: translateY(26px) scale(.975);
	transition: opacity .35s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}
.dr-modal.is-open .dr-modal__dialog { opacity: 1; transform: none; }
@media (min-width: 820px) {
	.dr-modal__dialog { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 560px; }
}

.dr-modal__close {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	background: transparent;
	color: var(--navy);
	transition: background var(--ease), transform var(--ease);
}
.dr-modal__close:hover { background: var(--paper-2); transform: rotate(90deg); }

/* 2.1 Panoul de brand */
.dr-modal__brand {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: clamp(28px, 4vw, 48px);
	background:
		radial-gradient(90% 70% at 0% 100%, rgba(207, 222, 75, .22), transparent 60%),
		var(--navy);
	color: #fff;
	clip-path: inset(0 100% 0 0);
	transition: clip-path .8s cubic-bezier(.77, 0, .18, 1) .08s;
}
.dr-modal.is-open .dr-modal__brand { clip-path: inset(0 0 0 0); }

.dr-modal__lines { position: absolute; inset: -20% -40%; z-index: -1; transform: rotate(-24deg); pointer-events: none; }
.dr-modal__lines span {
	position: absolute;
	left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(207, 222, 75, .55), rgba(104, 137, 71, .35), transparent);
	opacity: .5;
	animation: dr-drift 9s linear infinite;
}
.dr-modal__lines span:nth-child(1) { top: 18%; animation-duration: 11s; }
.dr-modal__lines span:nth-child(2) { top: 36%; animation-duration: 8s;  animation-delay: -3s; opacity: .3; }
.dr-modal__lines span:nth-child(3) { top: 54%; animation-duration: 13s; animation-delay: -6s; }
.dr-modal__lines span:nth-child(4) { top: 72%; animation-duration: 9s;  animation-delay: -1s; opacity: .25; }
.dr-modal__lines span:nth-child(5) { top: 88%; animation-duration: 12s; animation-delay: -8s; opacity: .4; }

.dr-modal__logo .dr-logo { height: 34px; color: #fff; }
.dr-modal__claim {
	margin: auto 0 0;
	font: 800 clamp(1.6rem, 3vw, 2.35rem)/1.08 var(--f-brand);
	letter-spacing: -.03em;
	text-wrap: balance;
}
.dr-modal__list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.dr-modal__list li {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: .95rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, .86);
}
.dr-modal__list li::before {
	content: '';
	width: 22px; height: 22px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001F3F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat,
		var(--grad);
}
.dr-modal__lines { display: none; }
.dr-modal__stat {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 6px 0 0;
	padding-top: 0;
	border-top: 0;
	font-size: .82rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, .7);
}
.dr-modal__stat strong {
	font: 800 2.4rem/1 var(--f-brand);
	letter-spacing: -.04em;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Elementele panoului apar pe rând */
.dr-modal__brand > *:not(.dr-modal__lines),
.dr-modal__step--form > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.dr-modal.is-open .dr-modal__brand > *:not(.dr-modal__lines),
.dr-modal.is-open .dr-modal__step--form > * { opacity: 1; transform: none; }
.dr-modal.is-open .dr-modal__brand > :nth-child(2) { transition-delay: .35s; }
.dr-modal.is-open .dr-modal__brand > :nth-child(3) { transition-delay: .45s; }
.dr-modal.is-open .dr-modal__brand > :nth-child(4) { transition-delay: .55s; }
.dr-modal.is-open .dr-modal__brand > :nth-child(5) { transition-delay: .65s; }
.dr-modal.is-open .dr-modal__step--form > :nth-child(1) { transition-delay: .2s; }
.dr-modal.is-open .dr-modal__step--form > :nth-child(2) { transition-delay: .28s; }
.dr-modal.is-open .dr-modal__step--form > :nth-child(3) { transition-delay: .36s; }
.dr-modal.is-open .dr-modal__step--form > :nth-child(4) { transition-delay: .44s; }
.dr-modal.is-open .dr-modal__step--form > :nth-child(5) { transition-delay: .52s; }

/* 2.2 Formularul din popup */
.dr-modal__body {
	display: flex;
	align-items: center;
	padding: clamp(28px, 4.5vw, 56px);
}
.dr-modal__step { width: 100%; }
.dr-modal__title {
	margin: 0;
	font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--f-brand);
	letter-spacing: -.03em;
	color: var(--navy);
	text-wrap: balance;
}
.dr-modal__title:focus,
.dr-modal__title:focus-visible { outline: none; box-shadow: none; }
.dr-modal__text { margin: 12px 0 24px; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.dr-modal__fine { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.dr-modal .dr-sub__fields { grid-template-columns: minmax(0, 1fr); }

/* 2.3 Succes: bifa desenată */
.dr-modal__step--done { text-align: left; }
.dr-modal__check { display: block; width: 72px; height: 72px; margin-bottom: 22px; }
.dr-modal__check svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dr-modal__check circle { stroke: var(--lime); stroke-dasharray: 152; stroke-dashoffset: 152; }
.dr-modal__check path { stroke: var(--olive); stroke-dasharray: 40; stroke-dashoffset: 40; }
.dr-modal.is-done .dr-modal__check circle { animation: dr-draw .6s cubic-bezier(.65, 0, .45, 1) forwards; }
.dr-modal.is-done .dr-modal__check path   { animation: dr-draw .4s cubic-bezier(.65, 0, .45, 1) .5s forwards; }
.dr-modal__step--done .dr-btn { margin-top: 6px; }

/* Pe telefon: panoul de brand devine o bandă scurtă deasupra formularului */
@media (max-width: 819px) {
	.dr-modal { align-items: end; padding: 0; }
	.dr-modal__dialog { width: 100%; max-height: 100dvh; overflow-y: auto; transform: translateY(40px); }
	.dr-modal__brand { gap: 14px; padding: 24px 20px 22px; clip-path: inset(0 0 100% 0); }
	.dr-modal.is-open .dr-modal__brand { clip-path: inset(0 0 0 0); }
	.dr-modal__claim { margin-top: 4px; font-size: 1.45rem; }
	.dr-modal__list, .dr-modal__stat { display: none; }
	.dr-modal__close { color: #fff; }
	.dr-modal__close:hover { background: rgba(255, 255, 255, .1); }
	.dr-modal__body { padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
}


/* 3. Animații ------------------------------------------------------- */

@keyframes dr-drift { from { transform: translateX(-35%); } to { transform: translateX(35%); } }
@keyframes dr-draw  { to { stroke-dashoffset: 0; } }
@keyframes dr-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes dr-shake {
	10%, 90% { transform: translateX(-1px); }
	20%, 80% { transform: translateX(2px); }
	30%, 50%, 70% { transform: translateX(-4px); }
	40%, 60% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
	.dr-modal__dialog, .dr-modal__brand, .dr-modal__brand > *, .dr-modal__step--form > * { transition: opacity .2s ease !important; transform: none !important; clip-path: none !important; }
	.dr-modal__lines span { animation: none; }
	.dr-modal__check circle, .dr-modal__check path { stroke-dashoffset: 0; animation: none !important; }
}

/* Panoul de brand: logo + „Revista de business” + claimul din antet */
.dr-modal__logo .dr-brand { color: #fff; }
.dr-modal__logo .dr-brand__sub { color: var(--lime); }
.dr-modal__logo .dr-brand--compact .dr-logo { height: 40px; }
.dr-modal__claim { font-size: clamp(1.7rem, 3vw, 2.4rem); }
