/* ============================================================
   Post Property Page specific styles (css/post-property.css)
============================================================= */

/* Minimal Animation */
.minimal-fade-in {
	animation: simpleFade 0.6s ease-in-out;
}

@keyframes simpleFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Background setter for the <main> block */
.bg-property {
	background-color: #f5f6ff;
	margin-top: 10vh;
}

/* Main Wrapper Layer */
.post-property-wrapper {
	padding: 20px 15px 60px 15px;
	/* Reduced top padding as global.css handles navbar spacing */
	font-family: 'Poppins', sans-serif;
}

/* Card Container */
.post-property-card {
	background-color: #ffffff;
	border-radius: 28px;
	padding: 50px 60px;
	width: 100%;
	max-width: 850px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Typography & Headers */
.form-title {
	color: var(--primary-dark);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 0.3px;
}

/* Input Fields styling */
.custom-input {
	background-color: #F8F7F4 !important;
	border: none;
	border-radius: 8px;
	height: 52px;
	padding: 10px 20px;
	font-size: 14px;
	color: var(--primary-dark);
	box-shadow: none !important;
	transition: background-color 0.2s ease;
}

.custom-input::placeholder {
	color: #53647A;
	font-weight: 400;
}

.custom-input:focus {
	background-color: #F2F0EC !important;
	outline: 1px solid #1A365D;
}

/* Secondary Number Custom Box */
.custom-input-box {
	padding: 0 20px;
}

/* Custom Checkbox Design */
.cursor-pointer {
	cursor: pointer;
}

.custom-checkbox-label .custom-checkmark {
	width: 22px;
	height: 22px;
	background-color: #ccc;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	font-size: 11px;
	transition: all 0.2s ease;
}

.custom-checkbox-label input:checked~.custom-checkmark {
	background-color: #1A365D;
	color: white;
}

.text-secondary-number,
.need-assistance-text {
	color: #2F3D53;
	font-size: 14px;
	font-weight: 500;
}

/* Property Types Options (Radio Buttons) */
.property-types-container {
	max-width: 700px;
}

.type-btn {
	background-color: #F8F7F4;
	color: #333;
	border: none;
	border-radius: 8px;
	padding: 14px 10px;
	font-size: 14px;
	font-weight: 400;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
}

.type-btn:hover {
	background-color: #e8e6df;
}

/* Bootstrap btn-check styling link to custom label */
.btn-check:checked+.type-btn {
	background-color: #1A365D;
	color: #ffffff;
}

/* Save & Continue Button */
.btn-save-continue {
	background-color: #1A365D;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 12px 35px;
	font-size: 16px;
	font-weight: 400;
	transition: all 0.2s ease;
}

.btn-save-continue:hover {
	background-color: #112543;
	color: #ffffff;
}

/* Terms and Conditions Box */
.terms-box {
	background-color: #EFEFEF;
	border-radius: 10px;
	padding: 25px 30px;
}

.terms-title {
	color: #4A5568;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 12px;
}

.terms-text {
	color: #1a1a1a;
	font-size: 11.5px;
	line-height: 1.6;
	text-align: justify;
}

.terms-box {
	padding: 12px 15px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f8f9fa;
}

.terms-text {
	font-size: 12px;
	line-height: 1.5;
	color: #555;
}

.terms-summary {
	padding-left: 5px;
}

.terms-preview {
	margin-top: 6px;
	max-height: 75px;
	overflow: hidden;
	position: relative;
}

.terms-preview ol {
	margin: 4px 0 0 18px;
	padding: 0;
}

.terms-preview li {
	margin-bottom: 4px;
}

.terms-preview strong {
	color: #333;
}

.show-more-terms {
	border: none;
	background: none;
	padding: 0;
	margin-top: 5px;
	color: #1b365d;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.show-more-terms:hover {
	text-decoration: underline;
}

.terms-preview.expanded {
	max-height: none;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
	.post-property-card {
		padding: 30px 20px;
		border-radius: 20px;
	}

	.terms-box {
		padding: 15px 20px;
	}

	.type-btn {
		padding: 10px 5px;
		font-size: 13px;
	}

	.post-property-wrapper {
		padding: 10px 10px 40px 10px;
	}
}

.terms-box {
	padding: 16px 18px;
	background: #f8f9fb;
	border: 1px solid #e5e8ed;
	border-radius: 10px;
}

.terms-text {
	color: #6f7785;
	font-size: 13px;
	line-height: 1.6;
}

.terms-link {
	color: #131f35;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.terms-link:hover {
	color: #c89b5d;
}

.form-check-input {
	cursor: pointer;
}

.form-check-label {
	cursor: pointer;
}

/* ============================================================
   Post Property step 1 (templates/property/post-property.html):
   navy side panel with the steps + the form. Phones: the panel
   becomes a top bar with a progress line, the form stacks.
============================================================= */
.pp-card {
	--pp-navy: var(--primary-dark, #1b365d);
	--pp-gold: #fca311;
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	max-width: 1040px;
	margin: 0 auto;
	border-radius: 24px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 15px 35px rgba(18, 37, 67, 0.08);
}

.pp-side {
	padding: 34px 28px;
	background: var(--pp-navy);
	color: #ffffff;
}

.pp-free {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--pp-gold);
	color: var(--pp-navy);
	font-size: 0.78rem;
	font-weight: 700;
}

.pp-title {
	margin: 16px 0 6px;
	color: #ffffff;
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.3;
}

.pp-sub {
	margin: 0 0 26px;
	color: #c9d4e6;
	font-size: 0.9rem;
}

.pp-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pp-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	color: #c9d4e6;
	font-size: 0.92rem;
}

.pp-steps li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1.5px solid #6a82a8;
	border-radius: 50%;
	font-size: 0.82rem;
	font-weight: 600;
}

.pp-steps li.is-current {
	color: #ffffff;
	font-weight: 600;
}

.pp-steps li.is-current span {
	border-color: var(--pp-gold);
	background: var(--pp-gold);
	color: var(--pp-navy);
}

.pp-progress,
.pp-progress-text {
	display: none;
}

.pp-trust {
	margin: 26px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid #3a5683;
	list-style: none;
	color: #c9d4e6;
	font-size: 0.86rem;
	line-height: 2.2;
}

.pp-trust i {
	width: 20px;
	color: var(--pp-gold);
}

.pp-form {
	padding: 34px 36px;
}

.pp-types {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}

.pp-types legend {
	margin-bottom: 10px;
	color: var(--pp-navy);
	font-size: 1rem;
	font-weight: 600;
}

.pp-type-grid {
	display: grid;
	/* Sell, Rent out, Sell land on the first row; Lease out, Commercial below */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pp-type {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 16px;
	border: 1.5px solid #e1e6ee;
	border-radius: 14px;
	color: var(--pp-navy);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.pp-type:hover {
	border-color: #b9c5d6;
}

.pp-type i {
	font-size: 1.3rem;
}

.pp-type b {
	display: block;
	font-size: 1rem;
}

.pp-type small {
	color: #6b7a90;
	font-size: 0.8rem;
}

.btn-check:checked + .pp-type {
	border: 2px solid var(--pp-navy);
	background: #f4f6fa;
}

.btn-check:focus-visible + .pp-type {
	outline: 3px solid rgba(27, 54, 93, 0.25);
	outline-offset: 2px;
}

.pp-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.pp-group--wide {
	grid-column: 1 / -1;
}

.pp-group label {
	display: block;
	margin-bottom: 6px;
	color: #51627c;
	font-size: 0.85rem;
	font-weight: 500;
}

.pp-optional {
	color: #9aa6b8;
	font-weight: 400;
}

.pp-field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 14px;
	border: 1.5px solid #e1e6ee;
	border-radius: 12px;
	background: #ffffff;
	transition: border-color 0.2s ease;
}

.pp-field:focus-within {
	border-color: var(--pp-navy);
}

.pp-field i {
	color: #9aa6b8;
}

.pp-field input,
.pp-field select {
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--pp-navy);
	font: inherit;
	font-size: 0.95rem;
}

.pp-field input {
	flex: 1;
}

.pp-field--phone select {
	padding-right: 8px;
	border-right: 1.5px solid #e1e6ee;
	font-weight: 600;
	cursor: pointer;
}

.pp-help {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 16px;
	padding: 13px 16px;
	border-radius: 12px;
	background: #f4f6fa;
	color: #51627c;
	font-size: 0.88rem;
	cursor: pointer;
}

.pp-help b {
	color: var(--pp-navy);
}

.pp-help input,
.pp-agree input {
	flex: none;
	width: 18px;
	height: 18px;
	accent-color: var(--pp-navy);
	cursor: pointer;
}

.pp-terms {
	border: 1.5px solid #e1e6ee;
	border-radius: 14px;
	overflow: hidden;
}

.pp-terms-head {
	padding: 12px 18px;
	border-bottom: 1px solid #edf0f5;
	background: #f8f9fb;
	color: var(--pp-navy);
	font-size: 0.95rem;
	font-weight: 600;
}

.pp-terms-head i {
	margin-right: 6px;
}

.pp-terms-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 22px;
	margin: 0;
	padding: 12px 18px;
	list-style: none;
}

/* The lists are switched with style="display: none/block" (post-property.js) */
.pp-terms-list[style*="display: block"] {
	display: grid !important;
}

.pp-terms-list li {
	display: flex;
	gap: 10px;
	padding: 8px 0;
	color: #6b7a90;
	font-size: 0.84rem;
	line-height: 1.5;
}

.pp-terms-list li i {
	flex: none;
	width: 18px;
	margin-top: 2px;
	color: var(--pp-navy);
	text-align: center;
}

.pp-terms-list li b {
	display: block;
	color: var(--pp-navy);
	font-weight: 600;
}

.pp-terms-list li.is-key {
	padding: 8px 10px;
	border-radius: 10px;
	background: #faeeda;
	color: #633806;
}

.pp-terms-list li.is-key b,
.pp-terms-list li.is-key i {
	color: #854f0b;
}

.pp-terms-list li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

/* First 3 terms, then "Show more" (all screen sizes) */
.pp-terms-list:not(.expanded) li:nth-child(n + 4) {
	display: none;
}

.pp-terms-list:not(.expanded) li:nth-child(3) {
	grid-column: 1 / -1;
}

.pp-terms-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 18px 12px;
	padding: 7px 16px;
	border: 1px solid #85b7eb;
	border-radius: 999px;
	background: #e6f1fb;
	color: #0c447c;
	font-size: 0.84rem;
	font-weight: 600;
	transition: background 0.2s ease;
}

.pp-terms-more:hover {
	background: #d4e7f8;
}

.pp-agree {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border-top: 1px solid #edf0f5;
	color: var(--pp-navy);
	font-size: 0.9rem;
	cursor: pointer;
}

.pp-agree a {
	color: #185fa5;
	font-weight: 600;
}

.pp-error {
	min-height: 1.3em;
	margin: 8px 2px 4px;
	color: #d23b3b;
	font-size: 0.85rem;
}

.pp-continue {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 360px;
	height: 52px;
	margin: 0 auto;
	border: 0;
	border-radius: 999px;
	background: var(--pp-navy);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.2s ease;
}

.pp-continue:hover {
	background: var(--primary-light, #2c5282);
	transform: translateY(-1px);
}

@media (max-width: 991px) {
	.pp-card {
		grid-template-columns: 1fr;
		border-radius: 20px;
	}

	.pp-side {
		padding: 22px 20px 18px;
	}

	.pp-side .pp-free {
		float: right;
		margin-top: 2px;
	}

	.pp-title {
		margin: 0 0 4px;
		font-size: 1.25rem;
	}

	.pp-sub {
		margin-bottom: 14px;
		font-size: 0.85rem;
	}

	.pp-steps,
	.pp-trust {
		display: none;
	}

	.pp-progress {
		display: flex;
		gap: 6px;
	}

	.pp-progress i {
		flex: 1;
		height: 5px;
		border-radius: 5px;
		background: #3a5683;
	}

	.pp-progress i.is-current {
		background: var(--pp-gold);
	}

	.pp-progress-text {
		display: block;
		margin: 8px 0 0;
		color: #c9d4e6;
		font-size: 0.8rem;
	}

	.pp-form {
		padding: 22px 18px 26px;
	}
}

@media (max-width: 575px) {
	.pp-type-grid,
	.pp-fields,
	.pp-terms-list {
		grid-template-columns: 1fr;
	}

	.pp-type {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		padding: 13px 14px;
	}

	.pp-type i {
		width: 24px;
		text-align: center;
	}

	.pp-continue {
		max-width: none;
	}
}