/**
 * Dispo Site Form Styles
 *
 * Dark theme forms matching the dispo-theme palette.
 */

/* Honeypot hide */
.dispo-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* Form wrapper */
.dispo-form-wrap {
	max-width: 600px;
	margin: 0 auto;
}

.dispo-offer-form-wrap {
	max-width: 700px;
}

/* Form header */
.dispo-form-header {
	margin-bottom: 24px;
}

.dispo-form-header h3 {
	margin: 0 0 8px;
	color: #ffffff;
	font-size: 1.5rem;
	font-weight: 700;
}

.dispo-form-header p {
	margin: 0;
	color: #a0a0b8;
	font-size: 0.95rem;
}

.dispo-access-date {
	background: rgba(233, 69, 96, 0.1);
	border: 1px solid rgba(233, 69, 96, 0.3);
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 12px;
	color: #e94560;
}

/* Fieldsets */
.dispo-fieldset {
	border: 1px solid #2a2a4a;
	border-radius: 8px;
	padding: 20px;
	margin: 0 0 20px;
}

.dispo-fieldset legend {
	color: #ffffff;
	font-weight: 600;
	font-size: 1rem;
	padding: 0 8px;
}

.dispo-terms-fieldset {
	background: rgba(26, 26, 46, 0.5);
}

/* Form fields */
.dispo-form-field {
	margin-bottom: 16px;
}

.dispo-form-field label {
	display: block;
	margin-bottom: 6px;
	color: #a0a0b8;
	font-size: 0.875rem;
	font-weight: 500;
}

.dispo-form-field .required {
	color: #e94560;
}

.dispo-form-field input[type="text"],
.dispo-form-field input[type="email"],
.dispo-form-field input[type="tel"],
.dispo-form-field input[type="number"],
.dispo-form-field input[type="url"],
.dispo-form-field select,
.dispo-form-field textarea {
	width: 100%;
	padding: 12px 16px;
	background: #0f0f23;
	border: 1px solid #2a2a4a;
	border-radius: 8px;
	color: #ffffff;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.dispo-form-field input:focus,
.dispo-form-field select:focus,
.dispo-form-field textarea:focus {
	outline: none;
	border-color: #e94560;
	box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.dispo-form-field input::placeholder,
.dispo-form-field textarea::placeholder {
	color: #6b6b80;
}

.dispo-form-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.dispo-form-field textarea {
	resize: vertical;
	min-height: 100px;
}

/* Input with prefix ($ sign) */
.dispo-input-prefix {
	position: relative;
	display: flex;
	align-items: center;
}

.dispo-input-prefix .prefix {
	position: absolute;
	left: 16px;
	color: #6b6b80;
	font-size: 1rem;
	pointer-events: none;
}

.dispo-input-prefix input {
	padding-left: 32px;
}

/* Form row (two columns) */
.dispo-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.dispo-form-row {
		grid-template-columns: 1fr;
	}
}

/* Checkbox fields */
.dispo-checkbox-field label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	color: #a0a0b8;
	font-size: 0.875rem;
	line-height: 1.5;
}

.dispo-checkbox-field input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #e94560;
}

/* Error states */
.dispo-form-field.has-error input,
.dispo-form-field.has-error select,
.dispo-form-field.has-error textarea {
	border-color: #e94560;
	box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.dispo-field-error {
	display: none;
	color: #e94560;
	font-size: 0.8rem;
	margin-top: 4px;
}

.dispo-form-field.has-error .dispo-field-error {
	display: block;
}

/* Submit button */
.dispo-form-submit {
	width: 100%;
	padding: 14px 24px;
	background: #e94560;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	margin-top: 8px;
}

.dispo-form-submit:hover {
	background: #d63651;
}

.dispo-form-submit:active {
	transform: scale(0.99);
}

.dispo-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dispo-submit-offer {
	background: #27ae60;
}

.dispo-submit-offer:hover {
	background: #219a52;
}

/* Form messages */
.dispo-form-message {
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.dispo-form-message.success {
	background: rgba(39, 174, 96, 0.1);
	border: 1px solid rgba(39, 174, 96, 0.3);
	color: #27ae60;
}

.dispo-form-message.error {
	background: rgba(233, 69, 96, 0.1);
	border: 1px solid rgba(233, 69, 96, 0.3);
	color: #e94560;
}

/* Property grid */
.dispo-property-grid {
	display: grid;
	gap: 24px;
}

.dispo-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dispo-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dispo-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.dispo-grid-cols-3,
	.dispo-grid-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.dispo-property-grid {
		grid-template-columns: 1fr;
	}
}

/* Property cards */
.dispo-property-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.dispo-property-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

.dispo-card-image {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f7f8fa;
}

.dispo-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dispo-card-image a {
	display: block;
	height: 100%;
}

.dispo-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #a0aec0;
	text-decoration: none;
	background: #edf2f7;
	font-size: 0.9rem;
}

.dispo-status-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.dispo-badge-available {
	background: #27ae60;
	color: #ffffff;
}

.dispo-badge-under_contract {
	background: #f39c12;
	color: #000000;
}

.dispo-badge-sold {
	background: #a0aec0;
	color: #ffffff;
}

.dispo-video-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	backdrop-filter: blur(4px);
}

.dispo-video-badge svg {
	flex-shrink: 0;
}

.dispo-card-content {
	padding: 16px;
}

.dispo-card-price {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 4px;
}

.dispo-card-address {
	color: #4a5568;
	font-size: 0.9rem;
	margin-bottom: 8px;
}

.dispo-card-specs {
	display: flex;
	gap: 12px;
	color: #a0aec0;
	font-size: 0.8rem;
	margin-bottom: 8px;
}

.dispo-card-specs span {
	display: inline-flex;
	align-items: center;
}

.dispo-card-arv {
	font-size: 0.85rem;
	color: #27ae60;
	font-weight: 600;
	margin-bottom: 12px;
}

.dispo-card-button {
	display: block;
	text-align: center;
	padding: 10px;
	background: #1a202c;
	border: none;
	border-radius: 6px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background-color 0.2s;
}

.dispo-card-button:hover {
	background: #2d3748;
	color: #ffffff;
}

.dispo-no-properties {
	grid-column: 1 / -1;
	text-align: center;
	color: #a0aec0;
	padding: 40px;
}

/* Grid section headers (Under Contract, Sold) */
.dispo-grid-section-header {
	margin-top: 48px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}

.dispo-grid-section-header h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #4a5568;
	margin: 0;
}

/* ══════════════════════════════════════════
   Property Detail — Light Theme Form Overrides
   ══════════════════════════════════════════ */

.dispo-property-detail .dispo-form-header h3 {
	color: #1a202c;
}

.dispo-property-detail .dispo-form-header p {
	color: #718096;
}

.dispo-property-detail .dispo-fieldset {
	border-color: #e2e8f0;
}

.dispo-property-detail .dispo-fieldset legend {
	color: #1a202c;
}

.dispo-property-detail .dispo-terms-fieldset {
	background: #f7f8fa;
}

.dispo-property-detail .dispo-form-field label {
	color: #4a5568;
}

.dispo-property-detail .dispo-form-field input[type="text"],
.dispo-property-detail .dispo-form-field input[type="email"],
.dispo-property-detail .dispo-form-field input[type="tel"],
.dispo-property-detail .dispo-form-field input[type="number"],
.dispo-property-detail .dispo-form-field input[type="url"],
.dispo-property-detail .dispo-form-field select,
.dispo-property-detail .dispo-form-field textarea {
	background: #ffffff;
	border-color: #e2e8f0;
	color: #1a202c;
}

.dispo-property-detail .dispo-form-field input:focus,
.dispo-property-detail .dispo-form-field select:focus,
.dispo-property-detail .dispo-form-field textarea:focus {
	border-color: #1a202c;
	box-shadow: 0 0 0 3px rgba(26, 32, 44, 0.1);
}

.dispo-property-detail .dispo-form-field input::placeholder,
.dispo-property-detail .dispo-form-field textarea::placeholder {
	color: #a0aec0;
}

.dispo-property-detail .dispo-form-field select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #ffffff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231a202c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	color: #1a202c;
}

.dispo-property-detail .dispo-checkbox-field label {
	color: #4a5568;
}

.dispo-property-detail .dispo-input-prefix .prefix {
	color: #a0aec0;
}

.dispo-property-detail .dispo-access-date {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

/* ══════════════════════════════════════════
   Buy Box Form (Step 2)
   ══════════════════════════════════════════ */

.dispo-buy-box-step {
	animation: dispoFadeIn 0.3s ease-out;
}

@keyframes dispoFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.dispo-step-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 12px;
	background: rgba(233, 69, 96, 0.1);
	color: #e94560;
	border: 1px solid rgba(233, 69, 96, 0.2);
}

/* Radio group */
.dispo-radio-group {
	display: flex;
	gap: 12px;
}

.dispo-radio-option,
.dispo-check-option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 10px 16px;
	border: 1px solid #2a2a4a;
	border-radius: 8px;
	transition: border-color 0.2s, background 0.2s;
	font-size: 0.95rem;
	flex: 1;
}

.dispo-radio-option span,
.dispo-check-option span {
	color: #a0a0b8;
}

.dispo-radio-option:hover,
.dispo-check-option:hover {
	border-color: #e94560;
	background: rgba(233, 69, 96, 0.05);
}

.dispo-radio-option input:checked + span,
.dispo-check-option input:checked + span {
	color: #ffffff;
}

.dispo-radio-option:has(input:checked),
.dispo-check-option:has(input:checked) {
	border-color: #e94560;
	background: rgba(233, 69, 96, 0.1);
}

.dispo-radio-option input[type="radio"],
.dispo-check-option input[type="checkbox"] {
	accent-color: #e94560;
	width: 16px;
	height: 16px;
}

/* Checkbox group (2-col grid) */
.dispo-checkbox-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 480px) {
	.dispo-radio-group {
		flex-direction: column;
	}
	.dispo-checkbox-group {
		grid-template-columns: 1fr;
	}
}

/* Skip link */
.dispo-form-skip {
	text-align: center;
	margin-top: 12px;
}

.dispo-form-skip a {
	color: #6b6b80;
	font-size: 0.85rem;
	text-decoration: none;
}

.dispo-form-skip a:hover {
	color: #a0a0b8;
	text-decoration: underline;
}

/* ══════════════════════════════════════════
   Buy Box — Light Theme Overrides
   (for hero form card on homepage)
   ══════════════════════════════════════════ */

.dispo-hero-form-card .dispo-buy-box-step .dispo-form-header h3 {
	color: #1a202c;
}

.dispo-hero-form-card .dispo-buy-box-step .dispo-form-header p {
	color: #718096;
}

.dispo-hero-form-card .dispo-step-badge {
	background: rgba(233, 69, 96, 0.08);
	color: #e94560;
}

.dispo-hero-form-card .dispo-radio-option,
.dispo-hero-form-card .dispo-check-option {
	border-color: #e2e8f0;
}

.dispo-hero-form-card .dispo-radio-option span,
.dispo-hero-form-card .dispo-check-option span {
	color: #4a5568;
}

.dispo-hero-form-card .dispo-radio-option:hover,
.dispo-hero-form-card .dispo-check-option:hover {
	border-color: #e94560;
	background: rgba(233, 69, 96, 0.03);
}

.dispo-hero-form-card .dispo-radio-option input:checked + span,
.dispo-hero-form-card .dispo-check-option input:checked + span {
	color: #1a202c;
}

.dispo-hero-form-card .dispo-radio-option:has(input:checked),
.dispo-hero-form-card .dispo-check-option:has(input:checked) {
	border-color: #e94560;
	background: rgba(233, 69, 96, 0.05);
}

.dispo-hero-form-card .dispo-buy-box-step select {
	background: #ffffff;
	border-color: #e2e8f0;
	color: #1a202c;
}

.dispo-hero-form-card .dispo-buy-box-step input[type="text"],
.dispo-hero-form-card .dispo-buy-box-step textarea {
	background: #ffffff;
	border-color: #e2e8f0;
	color: #1a202c;
}

.dispo-hero-form-card .dispo-buy-box-step .dispo-form-field label {
	color: #4a5568;
}

.dispo-hero-form-card .dispo-form-skip a {
	color: #a0aec0;
}

.dispo-hero-form-card .dispo-form-skip a:hover {
	color: #4a5568;
}
