/* FBN Homes Core â€“ High-End Frontend Styles */

:root {
	--fbn-navy: #06122C; /* Deeper, richer navy */
	--fbn-gold: #D4AF37; /* Premium metallic gold */
	--fbn-gold-grad: linear-gradient(135deg, #D4AF37 0%, #AA7F18 100%);
	--fbn-gold-grad-hover: linear-gradient(135deg, #E6C55C 0%, #C9A24B 100%);
	--fbn-bg: #F8F9FB;
	--fbn-text: #4A5568;
	--fbn-radius: 12px;
	--fbn-radius-sm: 8px;
	--fbn-shadow: 0 10px 30px rgba(6, 18, 44, 0.08);
	--fbn-shadow-hover: 0 20px 40px rgba(6, 18, 44, 0.15);
	--fbn-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fbn-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
	margin: 30px 0;
	font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
}
@media (min-width: 640px) {
	.fbn-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
	.fbn-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.fbn-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Premium Card Design */
.fbn-card {
	position: relative;
	background: #ffffff;
	border: none;
	border-radius: var(--fbn-radius);
	overflow: hidden;
	box-shadow: var(--fbn-shadow);
	transition: var(--fbn-transition);
	display: flex;
	flex-direction: column;
}
.fbn-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--fbn-shadow-hover);
}

.fbn-thumb-link { display: block; overflow: hidden; }
.fbn-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background-color: #dfe4ee;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.fbn-card:hover .fbn-thumb {
	transform: scale(1.06);
}

/* Glassmorphism Tag */
.fbn-tag {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	color: var(--fbn-navy);
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 6px 14px;
	border-radius: 30px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sleek WhatsApp Pill */
.fbn-quick-wa {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	gap: 6px;
	background: #25D366;
	color: #fff;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 8px 16px;
	border-radius: 30px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
	transition: var(--fbn-transition);
	opacity: 0;
	transform: translateY(-10px);
}
.fbn-card:hover .fbn-quick-wa {
	opacity: 1;
	transform: translateY(0);
}
.fbn-quick-wa:hover {
	background: #1EBE55;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Card Body */
.fbn-body { 
	padding: 24px; 
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.fbn-price { 
	font-weight: 800; 
	color: var(--fbn-gold); 
	font-size: 1.35rem; 
	margin-bottom: 8px; 
}
.fbn-card-title { 
	font-size: 1.15rem; 
	margin: 0 0 10px 0; 
	color: var(--fbn-navy);
	font-weight: 700;
	line-height: 1.4;
}
.fbn-title-link { text-decoration: none; }
.fbn-title-link:hover .fbn-card-title { color: var(--fbn-gold); }

.fbn-loc { 
	display: flex; 
	align-items: center; 
	gap: 6px; 
	color: var(--fbn-text); 
	font-size: 0.9rem; 
	margin-bottom: 16px; 
}

/* Amenities Icons layout */
.fbn-meta { 
	display: flex; 
	gap: 16px; 
	font-size: 0.85rem; 
	color: var(--fbn-text);
	border-top: 1px solid #edf2f7;
	padding-top: 16px;
	margin-top: auto;
}
.fbn-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
}

.fbn-summary { font-size: 0.95rem; color: var(--fbn-text); line-height: 1.6; margin: 10px 0; }
.fbn-completion { font-size: 0.85rem; color: #1E7A50; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;}

.fbn-btn-link {
	display: inline-block;
	margin-top: 12px;
	font-weight: 700;
	color: var(--fbn-navy);
	text-decoration: none;
	border-bottom: 2px solid var(--fbn-gold);
	padding-bottom: 2px;
	transition: var(--fbn-transition);
}
.fbn-btn-link:hover { color: var(--fbn-gold); }
.fbn-empty { color: var(--fbn-text); font-style: italic; text-align: center; padding: 40px; }

/* Team Section - High End */
.fbn-team-card { 
	text-align: center; 
	padding-bottom: 24px;
}
.fbn-team-photo {
	aspect-ratio: 1 / 1;
	background: #dfe4ee;
	overflow: hidden;
}
.fbn-team-photo img { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
	display: block; 
	transition: transform 0.6s ease;
}
.fbn-team-card:hover .fbn-team-photo img {
	transform: scale(1.05);
}
.fbn-designation { 
	color: var(--fbn-gold); 
	font-weight: 600;
	font-size: 0.9rem; 
	margin-bottom: 16px; 
	text-transform: uppercase;
	letter-spacing: 1px;
}
.fbn-team-contact { 
	display: flex; 
	justify-content: center; 
	gap: 16px; 
	font-size: 1.2rem; 
}
.fbn-team-contact a { 
	color: var(--fbn-navy); 
	text-decoration: none;
	background: #F0F4F8;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: var(--fbn-transition);
}
.fbn-team-contact a:hover { 
	background: var(--fbn-gold); 
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

@keyframes fbnFloat {
	0% { transform: translateY(0); box-shadow: 0 15px 35px rgba(6, 18, 44, 0.1); }
	50% { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(6, 18, 44, 0.15); }
	100% { transform: translateY(0); box-shadow: 0 15px 35px rgba(6, 18, 44, 0.1); }
}

/* Premium Forms (Glassmorphism & Depth) */
.fbn-form-wrap,
.wpcf7,
.wpforms-container {
	position: relative;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-top: 4px solid var(--fbn-gold);
	border-radius: var(--fbn-radius);
	padding: 48px;
	max-width: 750px;
	box-shadow: 0 20px 40px rgba(6, 18, 44, 0.08), inset 0 0 0 1px rgba(255,255,255,0.3);
	margin: 0 auto;
	font-family: 'Inter', 'Roboto', sans-serif;
	transform-style: preserve-3d;
	perspective: 1000px;
}

.fbn-form-title { 
	text-align: center; 
	font-size: 2rem; 
	font-weight: 800;
	margin: 0 0 32px; 
	color: var(--fbn-navy); 
	letter-spacing: -0.5px;
}

.fbn-form-row { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 640px) {
	.fbn-form-row { grid-template-columns: 1fr 1fr; }
}
.fbn-form-group,
.wpcf7-form p,
.wpforms-field { margin-bottom: 24px; position: relative; }

.fbn-form-group label,
.wpcf7-form label,
.wpforms-field-label { 
	display: block; 
	font-weight: 700; 
	font-size: 0.95rem; 
	color: var(--fbn-navy); 
	margin-bottom: 10px;
	letter-spacing: 0.3px;
}

/* Input Fields - Soft & Premium */
.fbn-form-group input,
.fbn-form-group select,
.fbn-form-group textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form select,
.wpforms-form textarea {
	width: 100%;
	min-height: 56px;
	padding: 16px 20px;
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: var(--fbn-radius-sm);
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
	box-sizing: border-box;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: var(--fbn-navy);
}

.fbn-form-group input:focus,
.fbn-form-group select:focus,
.fbn-form-group textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
	outline: none;
	border-color: var(--fbn-gold);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), inset 0 2px 4px rgba(0,0,0,0.01);
	transform: translateY(-2px);
}

.fbn-form-group textarea,
.wpcf7-form textarea,
.wpforms-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.fbn-form-group select,
.wpcf7-form select,
.wpforms-form select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	cursor: pointer;
	padding-right: 40px;
}
.fbn-form-group select:focus,
.wpcf7-form select:focus,
.wpforms-form select:focus {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
}

.fbn-btn,
.wpcf7-submit,
.wpforms-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 14px 32px;
	border-radius: var(--fbn-radius-sm);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.5px;
	border: none;
	cursor: pointer;
	transition: var(--fbn-transition);
	background: var(--fbn-gold-grad);
	color: #fff;
	text-transform: uppercase;
	box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}
.fbn-btn:hover,
.wpcf7-submit:hover,
.wpforms-submit:hover { 
	background: var(--fbn-gold-grad-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Force standard button colors for third-party forms */
.wpcf7-submit,
.wpforms-submit { width: 100%; margin-top: 10px; }

.fbn-btn-gold { background: var(--fbn-gold-grad); color: #ffffff; }
.fbn-btn-navy { background: var(--fbn-navy); color: #ffffff; box-shadow: 0 6px 20px rgba(6, 18, 44, 0.3); }
.fbn-btn-navy:hover { background: #0A1F44; box-shadow: 0 8px 25px rgba(6, 18, 44, 0.4); }
.fbn-btn-block { width: 100%; margin-top: 10px; }
.fbn-btn[disabled],
.wpcf7-submit[disabled],
.wpforms-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.fbn-form-message { margin-top: 20px; font-size: 1rem; text-align: center; font-weight: 600; padding: 15px; border-radius: var(--fbn-radius-sm); }
.fbn-form-message.fbn-success { color: #1E7A50; background: #F0FDF4; border: 1px solid #BBF7D0;}
.fbn-form-message.fbn-error { color: #B3261E; background: #FEF2F2; border: 1px solid #FECACA; }

/* VIP Seller Form Styles */
.fbn-seller-wrap {
	max-width: 900px;
	padding: 50px;
}

/* MULTI-STEP WIZARD STYLES */
.fbn-multistep-init {
	position: relative;
	overflow: hidden;
}

.fbn-step {
	display: none;
	animation: fbnSlideIn 0.4s ease forwards;
}
.fbn-step.fbn-active {
	display: block;
}

@keyframes fbnSlideIn {
	from { opacity: 0; transform: translateX(20px); }
	to { opacity: 1; transform: translateX(0); }
}

.fbn-progress-wrap {
	width: 100%;
	height: 6px;
	background: #E2E8F0;
	border-radius: 10px;
	margin-bottom: 25px;
	overflow: hidden;
}
.fbn-progress-bar {
	height: 100%;
	background: var(--fbn-gold-grad);
	width: 0%;
	transition: width 0.4s ease;
}

.fbn-step-buttons {
	display: flex;
	gap: 15px;
	margin-top: 25px;
	border-top: 1px solid #E2E8F0;
	padding-top: 20px;
}
.fbn-btn-prev {
	background: #F1F5F9;
	color: var(--fbn-navy);
	box-shadow: none;
}
.fbn-btn-prev:hover {
	background: #E2E8F0;
	transform: translateY(-2px);
}

/* Option Cards (Replacing Selects) */
.fbn-cards-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}
@media (min-width: 640px) {
	.fbn-cards-wrap { grid-template-columns: 1fr 1fr; }
}

.fbn-option-card {
	background: #F8FAFC;
	border: 2px solid #E2E8F0;
	border-radius: var(--fbn-radius-sm);
	padding: 20px;
	text-align: center;
	font-weight: 600;
	color: var(--fbn-navy);
	cursor: pointer;
	transition: var(--fbn-transition);
}
.fbn-option-card:hover {
	border-color: #CBD5E1;
	background: #F1F5F9;
	transform: translateY(-2px);
}
.fbn-option-card.selected {
	border-color: var(--fbn-gold);
	background: #FFFBEB;
	color: #B45309;
	box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Intl-Tel-Input Adjustments */
.iti {
	width: 100%;
	display: block;
}
/* Ensure the flag container doesn't have a weird black border/outline */
.iti__selected-flag {
	outline: none !important;
	border: none !important;
	background-color: transparent !important;
}
/* We don't force padding-left because separateDialCode needs dynamic padding */
.fbn-form-group .iti input[type="tel"] {
	/* Just override the right padding and height, leave left padding to the plugin */
	padding-right: 16px !important;
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	min-height: 56px !important;
}
.fbn-phone-error {
	color: #B3261E;
	font-size: 0.85rem;
	font-weight: 600;
	margin-top: 6px;
	display: none;
}
.fbn-phone-error.fbn-show {
	display: block;
	animation: fbnPopIn 0.3s ease-out;
}