/* Blog gift — full copy of homepage-akcija gift + page-width-boxed. */

.blog-gift {
	--ha-width-boxed: 1050px;
	--ha-width-full: 100%;
	--ha-font-display: "MADE Mirage", "Cormorant", Georgia, serif;
	--ha-font-date: "Cormorant", Georgia, serif;
	display: block;
}

.blog-gift *,
.blog-gift *::before,
.blog-gift *::after {
	box-sizing: border-box;
}

.blog-gift p {
	margin: 0;
}

.blog-gift .page-width-full {
	width: var(--ha-width-full);
	position: relative;
}

.blog-gift .page-width-boxed {
	box-sizing: border-box;
	width: var(--ha-width-boxed);
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 1090px) {
	.blog-gift .page-width-boxed {
		width: 100% !important;
		padding-right: 20px;
		padding-left: 20px;
	}
}
.blog-gift .ha-gift {
	background: #fff;
	color: #0b0b0b;
	overflow: hidden;
}

.blog-gift .ha-gift-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	/* Card y=38 in 556 frame → ~38 top / bottom breathing */
	/*padding-top: 80px;*/
	/*padding-bottom: 112px;*/
	min-height: 556px;
}

.blog-gift .ha-gift-copy {
	flex: 0 1 390px;
	max-width: 390px;
}

.blog-gift .ha-gift-icon {
	display: block;
	width: 70px;
	height: 73px;
	margin-bottom: 34px;
}

.blog-gift .ha-gift-title {
	margin: 0;
	color: #b5b3a4;
	font-family: var(--ha-font-display);
	font-size: 48px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.48px;
	line-height: 1;
	text-transform: uppercase;
}

.blog-gift .ha-gift-title-line {
	display: block;
}

.blog-gift .ha-gift-text {
    margin: 32px 0 0;
    color: #0b0b0b;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.20px;
    line-height: 1.50;
    max-width: 260px;
}

.blog-gift .ha-gift-card {
	box-sizing: border-box;
	flex: 0 0 597px;
	max-width: 100%;
	padding: 47px 47px 40px;
	border-radius: 17px;
	background: #fff;
	box-shadow: 1px 2px 40px rgba(0, 0, 0, 0.2);
	color: #3d3d3d;
}

.blog-gift .ha-gift-card .wpcf7 {
	margin: 0;
}

.blog-gift .ha-gift-card .wpcf7-form {
	margin: 0;
}

.blog-gift .ha-form-row {
	display: flex;
	gap: 15px;
}

.blog-gift .ha-form-row--2 > .ha-form-field {
	flex: 1 1 0;
	min-width: 0;
}

.blog-gift .ha-form-field {
	margin: 0 0 15px;
}

.blog-gift .ha-form-field .wpcf7-form-control-wrap {
	display: block;
}

.blog-gift .ha-form-input,
.blog-gift .ha-gift-card input[type="text"],
.blog-gift .ha-gift-card input[type="email"],
.blog-gift .ha-gift-card input[type="date"] {
	box-sizing: border-box;
    display: block;
    width: 100%;
    height: 41px;
    padding: 0 16px;
    border: 1px solid #b5b3a4;
    border-radius: 4.5px;
    background: #fff;
    color: #3d3d3d;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.15px;
    line-height: 100%;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.blog-gift .ha-form-input::placeholder,
.blog-gift .ha-gift-card input::placeholder {
	color: #b5b3a4;
	opacity: 1;
}

.blog-gift .ha-form-input:focus,
.blog-gift .ha-gift-card input:focus {
	border-color: #89a886;
}

.blog-gift input[name="datum_rodjenja"] {
	cursor: pointer;
}

.blog-gift .ha-form-label {
    margin: 8px 0 12px;
    color: #3d3d3d;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.16px;
    line-height: 1.2;
    padding-top: 10px;
}

.blog-gift .ha-form-goals {
	margin: 0 0 18px;
}

.blog-gift .ha-form-goals .wpcf7-form-control-wrap,
.blog-gift .ha-form-goals .wpcf7-radio {
	display: block;
}

.blog-gift .ha-form-goals .wpcf7-radio {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 13px 14px;
}

.blog-gift .ha-form-goals .wpcf7-list-item {
	display: block;
	margin: 0;
}

.blog-gift .ha-form-goals .wpcf7-list-item label {
	box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    padding: 14px 16px 14px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #fff;
    box-shadow: 1px 2px 40px rgba(0, 0, 0, 0.15);
    color: #101010;
    cursor: pointer;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.15px;
    line-height: 20px;
    transition: border-color 0.15s ease;
}

.blog-gift .ha-form-goals .wpcf7-list-item input[type="radio"] {
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1.5px solid #5b5b5b;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.blog-gift .ha-form-goals .wpcf7-list-item input[type="radio"]:checked {
	border-color: #5b5b5b;
	background: #89a886;
	box-shadow: inset 0 0 0 2.5px #fff;
}

.blog-gift .ha-form-goals .wpcf7-list-item:has(input:checked) label {
	border-color: #89a886;
	border-width: 2px;
	padding: 13px 15px 13px 17px;
}

.blog-gift .ha-form-goals .wpcf7-list-item-label {
	display: block;
}

.blog-gift .ha-form-actions {
	margin: 0;
	position: relative;
}

.blog-gift .ha-form-actions > p {
	position: relative;
	margin: 0;
}

.blog-gift .ha-form-submit,
.blog-gift .ha-gift-card input.wpcf7-submit {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    border: 1px solid #bbb9b9;
    border-radius: 30px;
    background: #89a886;
    color: #fff;
    cursor: pointer;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.84px;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.blog-gift .ha-gift-card input.wpcf7-submit {
	background-color: #89a886;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12' fill='none'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: calc(50% + 95px) center;
}

.blog-gift .ha-form-submit:hover,
.blog-gift .ha-gift-card input.wpcf7-submit:hover {
	background-color: #7a9978;
}

/* Keep CF7 spinner, but on the button — not a second row under it. */
.blog-gift .ha-gift-card .wpcf7-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	margin: 0;
	width: 22px;
	height: 22px;
	background-color: #fff;
	opacity: 1;
	transform: translate(-50%, -50%);
	visibility: hidden;
}

.blog-gift .ha-gift-card form.submitting .wpcf7-spinner {
	visibility: visible;
}

.blog-gift .ha-gift-card .wpcf7-spinner::before {
	top: 3px;
	left: 3px;
	width: 5px;
	height: 5px;
	background-color: #89a886;
	transform-origin: 8px 8px;
}

.blog-gift .ha-gift-card form.submitting .wpcf7-submit {
	opacity: 0.55;
	pointer-events: none;
	color: transparent;
	background-image: none;
}

.blog-gift .ha-gift-card .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	/* Beat theme `.wpcf7 form.invalid .wpcf7-response-output { color: white }` (invisible gap). */
	color: #b00020;
}

.blog-gift .ha-gift-card .wpcf7-form.invalid .wpcf7-response-output,
.blog-gift .ha-gift-card .wpcf7-form.sent .wpcf7-response-output,
.blog-gift .ha-gift-card .wpcf7-form.failed .wpcf7-response-output {
	color: #b00020;
}

.blog-gift .ha-gift-card .wpcf7-form.sent .wpcf7-response-output {
	color: #3d5c3c;
}

.blog-gift .ha-gift-card .wpcf7-not-valid-tip {
	display: block;
	margin-top: 4px;
	color: #b00020;
	font-size: 12px;
}

/* -------------------------------------------------------------------------
   Gift — tablet ≤1024 (SVG 677×818)
   Stack: centered copy above, card below. Card 597×476, side inset ≈39–40.
   Title path y≈113–178 (2 lines, glyph ≈27) → 28/32. Body y≈212. Card y=300.
   Submit h=40 (desktop 48).
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.blog-gift .ha-gift .page-width-boxed {
		padding-right: 40px;
		padding-left: 40px;
	}

	.blog-gift .ha-gift-inner {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.blog-gift .ha-gift-copy {
		flex: none;
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		max-width: 420px;
		text-align: center;
	}

	.blog-gift .ha-gift-icon {
		margin-right: auto;
		margin-bottom: 25px;
		margin-left: auto;
	}

	/* SVG title is 2 lines; keep 3 spans but flow inline so it wraps like the frame */
	.blog-gift .ha-gift-title {
		font-size: 38px;
        letter-spacing: 0.38px;
        max-width: unset;
	}

	.blog-gift .ha-gift-title-line {
		display: inline;
	}

	.blog-gift .ha-gift-title-line:not(:last-child)::after {
		content: "\00a0";
	}

	.blog-gift .ha-gift-text {
        margin-top: 32px;
        text-align: center;
        font-size: 17px;
        line-height: 22px;
	}

	.blog-gift .ha-gift-card {
		flex: none;
		width: 100%;
		max-width: 597px;
		margin-top: 50px;
	}

	.blog-gift .ha-form-submit,
	.blog-gift .ha-gift-card input.wpcf7-submit {
		height: 40px;
	}
}
/* -------------------------------------------------------------------------
   Gift — mobile ≤767 (SVG 375×958)
   Stack like tablet; card full-bleed; goals above fields (flex order);
   name/date stacked; radios 1-col; submit h=40.
   Title beige path y=80–131 (2 lines) → 24/26. Body y=160–198.
   Card y=245–916, pad ~42/28/56. Radios y=323/401/478/555 h≈65–67 gap≈11.
   Fields y=651.5/703.5/755.5; submit y=820.
   ------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.blog-gift {
		overflow: visible;
	}

	.blog-gift .ha-gift .page-width-boxed {
		padding-right: 20px;
		padding-left: 20px;
	}

	.blog-gift .ha-gift-inner {
		padding-top: 55px;
		padding-bottom: 55px;
	}

	.blog-gift .ha-gift-icon {
		width: 49px;
		height: 51px;
		margin-bottom: 19px;
	}

	/* SVG: line1 PREUZMITE (y≈80), line2 BESPLATAN POKLON (y≈110) */
	.blog-gift .ha-gift-title {
		font-size: 30px;
        letter-spacing: 0.30px;
        line-height: 1;
	}

	.blog-gift .ha-gift-title-line {
		display: block;
	}

	.blog-gift .ha-gift-title-line:not(:last-child)::after {
		content: none;
	}

	.blog-gift .ha-gift-title-line:nth-child(2),
	.blog-gift .ha-gift-title-line:nth-child(3) {
		display: inline;
	}

	.blog-gift .ha-gift-title-line:nth-child(2)::after {
		content: "\00a0";
	}

	.blog-gift .ha-gift-text {
		margin-top: 12px;
        letter-spacing: 0.17px;
	}

	/* Full-bleed past page-width-boxed padding; parents must not clip. */
	.blog-gift .ha-gift {
		overflow: visible;
	}

	.blog-gift .ha-gift-card {
		width: 100vw;
		max-width: none;
		margin-top: 45px;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
		padding: 40px 25px 40px;
		border-radius: 17px;
		min-height: 0;
	}

	/* DOM: row → email → label → goals → actions; SVG: label → goals → fields → submit */
	.blog-gift .ha-gift-card .wpcf7-form {
		display: flex;
		flex-direction: column;
	}

	/* Beat `.wpcf7-form > p { margin: 0 }` (0,3,1) */
	.blog-gift .ha-gift-card .wpcf7-form > p.ha-form-label {
        order: 1;
        margin: 0 0 22px;
        padding-top: 0;
	}

	.blog-gift .ha-gift-card .ha-form-goals {
		order: 2;
		margin: 0 0 32px;
	}

	.blog-gift .ha-gift-card .ha-form-row {
		order: 3;
		flex-direction: column;
		gap: 11px;
		margin: 0;
	}

	.blog-gift .ha-gift-card .ha-form-row .ha-form-field {
		margin: 0;
	}

	.blog-gift .ha-gift-card .wpcf7-form > .ha-form-field {
		order: 4;
		margin: 11px 0 0;
	}

	.blog-gift .ha-gift-card .ha-form-actions {
		order: 5;
		margin: 24px 0 0;
	}

	/* Without order, response stays 0 and jumps above “Vaš cilj” (flex hole at top). */
	.blog-gift .ha-gift-card .wpcf7-response-output {
		order: 6;
		margin: 14px 0 0;
	}

	.blog-gift .ha-form-goals .wpcf7-radio {
		grid-template-columns: 1fr;
		gap: 11px;
	}

	.blog-gift .ha-form-goals .wpcf7-list-item label {
		min-height: 65px;
		padding: 12px 14px 12px 16px;
	}

	.blog-gift .ha-form-goals .wpcf7-list-item:has(input:checked) label {
		min-height: 67px;
		padding: 11px 13px 11px 15px;
	}

	.blog-gift .ha-form-submit,
	.blog-gift .ha-gift-card input.wpcf7-submit {
		height: 40px;
		border-radius: 20px;
		font-size: 13px;
		letter-spacing: 0.78px;
	}

	.blog-gift .ha-gift-card input.wpcf7-submit {
		background-position: calc(50% + 82px) center;
	}
}

/* -------------------------------------------------------------------------
   Start — desktop 1440×1106 (IZABERITE SVOJ POČETAK)
   Boxed 1020 (x=210). Cards 285×285 @ y=408, gap ≈82.5.
   Buttons 168×48 @ y=945.5, #89A886, rx=24.
   ------------------------------------------------------------------------- */

