/* TXFamLaw Attorney Contact Card
   Colors pull from the Kadence global palette when present, with hex
   fallbacks so the card looks correct even outside that theme. */

.txfl-card {
	--txfl-navy:  var(--global-palette10, #0e2a47);
	--txfl-gold:  var(--global-palette1,  #f2a900);
	--txfl-gold-dark: var(--global-palette2, #b8660b);
	--txfl-slate: var(--global-palette4,  #2f3a45);
	--txfl-steel: var(--global-palette7,  #d6d8d9);
	--txfl-white: var(--global-palette9,  #ffffff);

	background: rgba(233, 211, 195, 0.10);
	border: 1px solid var(--txfl-steel);
	border-radius: 1.5rem;
	padding: 2rem;
	box-sizing: border-box;
}

.txfl-card__title {
	font-size: 0.75rem;
	font-weight: 900;
	color: var(--txfl-navy);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--txfl-steel);
}

.txfl-card__row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	color: var(--txfl-slate);
	font-weight: 500;
	line-height: 1.4;
}

.txfl-card__icon {
	color: var(--txfl-gold);
	width: 1.25rem;
	text-align: center;
	flex: 0 0 auto;
}

.txfl-card__row a {
	color: var(--txfl-slate);
	text-decoration: none;
	transition: color 0.2s ease;
}

.txfl-card__row a:hover {
	color: var(--txfl-gold-dark);
}

.txfl-card__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 1rem;
	margin-top: 0.5rem;
	border-top: 1px solid var(--txfl-steel);
}

.txfl-card__social a {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background: var(--txfl-navy);
	color: var(--txfl-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.txfl-card__social a:hover {
	background: var(--txfl-gold-dark);
	color: var(--txfl-white);
}

/* Editor-only error notice */
.txfl-card--error {
	background: #fff4f4;
	border-color: #e0b4b4;
	color: #8a1f1f;
	font-size: 0.9rem;
}

/* ---- Scheduling button on the contact card ---- */
.txfl-card__schedule {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--txfl-steel);
}
.txfl-card__schedule-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--txfl-gold);
	color: var(--txfl-navy);
	font-weight: 700;
	text-decoration: none;
	padding: 0.7rem 1.25rem;
	border-radius: 9999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.txfl-card__schedule-btn:hover {
	background: var(--txfl-gold-dark);
	color: var(--txfl-white);
}

/* =========================================================================
   DIRECTORY
   ========================================================================= */
.txfl-dir-wrap {
	--txfl-navy:  var(--global-palette10, #0e2a47);
	--txfl-gold:  var(--global-palette1,  #f2a900);
	--txfl-gold-dark: var(--global-palette2, #b8660b);
	--txfl-slate: var(--global-palette4,  #2f3a45);
	--txfl-subtle: var(--global-palette6, #718096);
	--txfl-steel: var(--global-palette7,  #d6d8d9);
	--txfl-white: var(--global-palette9,  #ffffff);
}

/* Search box */
.txfl-dir__search {
	position: relative;
	margin-bottom: 1.5rem;
}
.txfl-dir__search i {
	position: absolute;
	left: 1.15rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--txfl-subtle);
	pointer-events: none;
}
.txfl-dir__search input.txfl-dir__search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.85rem 1rem 0.85rem 3.1rem;
	border: 1px solid var(--txfl-steel);
	border-radius: 9999px;
	font-size: 1rem;
	color: var(--txfl-slate);
	background: var(--txfl-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.txfl-dir__search input.txfl-dir__search-input:focus {
	outline: none;
	border-color: var(--txfl-gold);
	box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.15);
}
.txfl-dir__noresults {
	color: var(--txfl-subtle);
	font-style: italic;
	margin: 0 0 1.5rem;
}

/* Grid of tiles */
.txfl-dir {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.25rem;
}
.txfl-dir--single {
	display: block;
}

/* Tile */
.txfl-dir__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: rgba(233, 211, 195, 0.10);
	border: 1px solid var(--txfl-steel);
	border-radius: 1.25rem;
	text-decoration: none;
	color: var(--txfl-slate);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.txfl-dir__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(14, 42, 71, 0.30);
	border-color: var(--txfl-gold);
}

.txfl-dir__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 9999px;
	overflow: hidden;
	background: var(--txfl-steel);
	border: 3px solid var(--txfl-white);
	box-shadow: 0 4px 10px -4px rgba(14, 42, 71, 0.4);
}
.txfl-dir__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}
.txfl-dir__thumb--empty {
	background: linear-gradient(135deg, var(--txfl-steel), var(--txfl-white));
}

.txfl-dir__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1 1 auto;
	min-width: 0;
}
.txfl-dir__name {
	font-weight: 700;
	color: var(--txfl-navy);
	font-size: 1.05rem;
}
.txfl-dir__title {
	font-size: 0.85rem;
	color: var(--txfl-slate);
}
.txfl-dir__office {
	font-size: 0.78rem;
	color: var(--txfl-subtle);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.txfl-dir__office i {
	color: var(--txfl-gold);
	margin-right: 0.2rem;
}

.txfl-dir__cta {
	flex: 0 0 auto;
	align-self: center;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--txfl-gold-dark);
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

@media (max-width: 480px) {
	.txfl-dir__cta { display: none; }
}

/* =========================================================================
   ATTORNEY LISTS (credentials, degrees, organizations, awards, publications)
   ========================================================================= */
.txfl-list {
	--txfl-navy:  var(--global-palette10, #0e2a47);
	--txfl-gold:  var(--global-palette1,  #f2a900);
	--txfl-slate: var(--global-palette4,  #2f3a45);
	--txfl-subtle: var(--global-palette6, #718096);
	--txfl-steel: var(--global-palette7,  #d6d8d9);
	margin: 1.5rem 0;
}
.txfl-list__heading {
	font-size: 0.8rem;
	font-weight: 900;
	color: var(--txfl-navy);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 0.85rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--txfl-gold);
}
.txfl-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.txfl-list__item {
	position: relative;
	padding: 0.5rem 0 0.5rem 1.5rem;
	color: var(--txfl-slate);
	line-height: 1.5;
	border-bottom: 1px solid var(--txfl-steel);
}
.txfl-list__item:last-child {
	border-bottom: none;
}
.txfl-list__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95rem;
	width: 7px;
	height: 7px;
	border-radius: 9999px;
	background: var(--txfl-gold);
}
.txfl-list__item strong {
	color: var(--txfl-navy);
}
.txfl-list__item a {
	color: var(--txfl-navy);
	text-decoration: none;
	border-bottom: 1px solid var(--txfl-gold);
}
.txfl-list__item a:hover {
	color: var(--txfl-gold);
}
.txfl-list__year,
.txfl-list__meta {
	color: var(--txfl-subtle);
	font-size: 0.9em;
}
.txfl-list__more {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	font-style: italic;
	color: var(--txfl-subtle);
}

/* =========================================================================
   CONTACT FORM ("Schedule a Consultation")
   ========================================================================= */
.txfl-form {
	--txfl-navy:  var(--global-palette10, #0e2a47);
	--txfl-navy2: var(--global-palette3,  #0e2a47);
	--txfl-gold:  var(--global-palette1,  #f2a900);
	--txfl-white: var(--global-palette9,  #ffffff);
	background: linear-gradient(160deg, var(--txfl-navy) 0%, #0a1f36 100%);
	border-radius: 1.5rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	box-shadow: 0 25px 50px -12px rgba(14, 42, 71, 0.35);
	max-width: 960px;
	margin: 2rem auto;
}
.txfl-form__heading {
	font-family: var(--global-heading-font-family, 'Playfair Display', serif);
	color: var(--txfl-gold);
	text-align: center;
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	margin: 0 0 0.75rem;
}
.txfl-form__subhead {
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	margin: 0 auto 2rem;
	max-width: 38ch;
	line-height: 1.5;
}
.txfl-form__row {
	margin-bottom: 1rem;
}
.txfl-form__row--split {
	display: flex;
	gap: 1rem;
}
.txfl-form__row--split .txfl-form__field {
	flex: 1 1 0;
	min-width: 0;
}
@media (max-width: 540px) {
	.txfl-form__row--split { flex-direction: column; }
}
.txfl-form .txfl-form__field,
.txfl-form input[type="text"].txfl-form__field,
.txfl-form input[type="email"].txfl-form__field,
.txfl-form input[type="tel"].txfl-form__field,
.txfl-form select.txfl-form__field,
.txfl-form textarea.txfl-form__field {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0.85rem;
	padding: 0.95rem 1.15rem;
	color: var(--txfl-white) !important;
	font-size: 1rem;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.txfl-form .txfl-form__field::placeholder {
	color: rgba(255, 255, 255, 0.6) !important;
	opacity: 1; /* Firefox dims placeholders by default */
}
.txfl-form .txfl-form__field:focus,
.txfl-form input[type="text"].txfl-form__field:focus,
.txfl-form input[type="email"].txfl-form__field:focus,
.txfl-form input[type="tel"].txfl-form__field:focus,
.txfl-form textarea.txfl-form__field:focus {
	outline: none;
	border-color: var(--txfl-gold) !important;
	background: rgba(255, 255, 255, 0.12) !important;
	box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.18);
}
/* Kill the white inner box some browsers/themes apply on autofill. */
.txfl-form .txfl-form__field:-webkit-autofill,
.txfl-form .txfl-form__field:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--txfl-white);
	transition: background-color 9999s ease-out 0s;
}
.txfl-form__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}
.txfl-form__select option { color: #0e2a47; }
.txfl-form__textarea {
	resize: vertical;
	min-height: 7rem;
}
.txfl-form__submit {
	width: 100%;
	background: var(--txfl-gold);
	color: var(--txfl-navy2);
	border: none;
	border-radius: 0.85rem;
	padding: 1.1rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.1s ease;
}
.txfl-form__submit:hover { filter: brightness(1.07); }
.txfl-form__submit:active { transform: translateY(1px); }
.txfl-form__submit:disabled { opacity: 0.6; cursor: default; }
/* Honeypot — hide from humans without display:none (some bots skip those). */
.txfl-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.txfl-form__status {
	margin-bottom: 1rem;
	text-align: center;
	font-weight: 600;
}
.txfl-form__status.is-error   { color: #ffd2cc; }
.txfl-form__status.is-success { color: var(--txfl-gold); font-size: 1.1rem; line-height: 1.5; }
