/* ============================================================
   CDD Lawyer Directory — Frontend Styles
   ============================================================ */

/* --- Grid Layout ------------------------------------------- */
.cdd-lawyer-grid .cdd-grid-inner {
	display: grid;
	grid-template-columns: repeat(var(--cdd-cols, 3), 1fr);
	gap: var(--cdd-gap, 24px);
}

@media (max-width: 980px) {
	.cdd-lawyer-grid .cdd-grid-inner {
		grid-template-columns: repeat(var(--cdd-cols-tablet, 2), 1fr);
	}
}

@media (max-width: 767px) {
	.cdd-lawyer-grid .cdd-grid-inner {
		grid-template-columns: repeat(var(--cdd-cols-mobile, 1), 1fr);
	}
}

/* --- Card --------------------------------------------------- */
.cdd-lawyer-card {
	position: relative;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cdd-lawyer-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* --- Photo -------------------------------------------------- */
.cdd-lawyer-photo {
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #f0f0f0;
}

.cdd-lawyer-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cdd-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
	color: #fff;
	font-size: 60px;
}

/* --- Tier Badge -------------------------------------------- */
.cdd-tier-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	z-index: 2;
}

.cdd-tier-basic {
	background: #e8f4fd;
	color: #1a3a5c;
}

.cdd-tier-featured {
	background: #fff3cd;
	color: #856404;
}

.cdd-tier-premium {
	background: #1a3a5c;
	color: #ffd700;
}

/* --- Card Body --------------------------------------------- */
.cdd-lawyer-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.cdd-lawyer-name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.3;
}

.cdd-lawyer-name a {
	color: inherit;
	text-decoration: none;
}

.cdd-lawyer-name a:hover {
	color: #2d6a9f;
}

.cdd-lawyer-firm {
	font-size: 14px;
	color: #555;
	margin: 0 0 8px;
}

.cdd-lawyer-location,
.cdd-lawyer-phone {
	font-size: 13px;
	color: #777;
	margin: 0 0 6px;
}

.cdd-lawyer-phone a {
	color: inherit;
	text-decoration: none;
}

.cdd-lawyer-phone a:hover {
	color: #2d6a9f;
}

/* --- Practice Area Tags ------------------------------------ */
.cdd-practice-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0;
}

.cdd-practice-tag {
	background: #eef2f7;
	color: #1a3a5c;
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 20px;
	font-weight: 500;
}

/* --- CTA Button -------------------------------------------- */
.cdd-cta-btn {
	display: inline-block;
	margin-top: auto;
	padding: 10px 20px;
	background: #1a3a5c;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: background 0.2s ease;
	border: none;
	cursor: pointer;
}

.cdd-cta-btn:hover {
	background: #2d6a9f;
	color: #fff !important;
}

/* --- Filter Bar -------------------------------------------- */
.cdd-filter-bar {
	margin-bottom: 28px;
}

.cdd-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.cdd-filter-select,
.cdd-filter-input {
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	min-width: 160px;
	flex: 1;
}

.cdd-filter-select:focus,
.cdd-filter-input:focus {
	outline: none;
	border-color: #2d6a9f;
	box-shadow: 0 0 0 3px rgba(45,106,159,0.15);
}

.cdd-filter-btn {
	padding: 10px 24px;
	background: #1a3a5c;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cdd-filter-btn:hover {
	background: #2d6a9f;
}

/* --- No Results -------------------------------------------- */
.cdd-no-results {
	padding: 40px 20px;
	text-align: center;
	color: #777;
	grid-column: 1 / -1;
}

/* --- Responsive Filter ------------------------------------ */
@media (max-width: 767px) {
	.cdd-filter-form {
		flex-direction: column;
	}
	.cdd-filter-select,
	.cdd-filter-input,
	.cdd-filter-btn {
		width: 100%;
		min-width: unset;
	}
}
/* ─── CDD Application Form Module ─────────────────────────────────── */

.cdd-application-form-module .cdd-form-main-title {
  margin-bottom: 20px;
}

.cdd-application-form-module .cdd-app-form {
  max-width: 800px;
  padding: 32px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.cdd-application-form-module .cdd-form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a5c;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8eef4;
}

.cdd-application-form-module .cdd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.cdd-application-form-module .cdd-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cdd-application-form-module .cdd-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.cdd-application-form-module .cdd-required {
  color: #c0392b;
  margin-left: 2px;
}

.cdd-application-form-module .cdd-field-input,
.cdd-application-form-module input[type="text"],
.cdd-application-form-module input[type="email"],
.cdd-application-form-module input[type="tel"],
.cdd-application-form-module input[type="url"],
.cdd-application-form-module input[type="file"],
.cdd-application-form-module select,
.cdd-application-form-module textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.cdd-application-form-module .cdd-field-input:focus,
.cdd-application-form-module input:focus,
.cdd-application-form-module select:focus,
.cdd-application-form-module textarea:focus {
  outline: none;
  border-color: #2d6a9f;
  box-shadow: 0 0 0 3px rgba(45,106,159,0.12);
}

/* Checkbox grid */
.cdd-application-form-module .cdd-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cdd-application-form-module .cdd-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
}

.cdd-application-form-module .cdd-checkbox-label input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
}

/* Tier cards */
.cdd-application-form-module .cdd-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.cdd-application-form-module .cdd-tier-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  background: #fff;
}

.cdd-application-form-module .cdd-tier-option:hover,
.cdd-application-form-module .cdd-tier-option.cdd-tier-selected {
  border-color: #2d6a9f;
  box-shadow: 0 2px 12px rgba(45,106,159,0.15);
}

.cdd-application-form-module .cdd-tier-option input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  margin-bottom: 8px;
}

.cdd-application-form-module .cdd-tier-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 4px;
}

.cdd-application-form-module .cdd-tier-price {
  font-size: 24px;
  font-weight: 800;
  color: #2d6a9f;
  margin-bottom: 6px;
}

.cdd-application-form-module .cdd-tier-period {
  font-size: 13px;
  font-weight: 400;
  color: #888;
}

.cdd-application-form-module .cdd-tier-desc {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Submit button */
.cdd-application-form-module .cdd-form-submit {
  margin-top: 24px;
}

.cdd-application-form-module .cdd-app-submit {
  display: inline-block;
  padding: 14px 40px;
  background: #1a3a5c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cdd-application-form-module .cdd-app-submit:hover {
  background: #2d6a9f;
}

/* Success / Error messages */
.cdd-application-form-module .cdd-app-success {
  padding: 20px 24px;
  background: #e8f5e9;
  border: 1px solid #66bb6a;
  border-radius: 4px;
  color: #2e7d32;
  font-size: 15px;
  line-height: 1.6;
}

.cdd-application-form-module .cdd-form-error {
  padding: 12px 16px;
  background: #fdecea;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
  color: #c62828;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .cdd-application-form-module .cdd-form-grid,
  .cdd-application-form-module .cdd-tier-grid,
  .cdd-application-form-module .cdd-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .cdd-application-form-module .cdd-app-form {
    padding: 20px 16px;
  }
}

.cdd-pagination{grid-column:1/-1;margin:24px 0}.cdd-pagination ul{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;list-style:none!important;padding:0!important}.cdd-pagination a,.cdd-pagination span{display:block;padding:10px 16px;border:1px solid #ccd4dd;border-radius:6px}.cdd-pagination .current{background:#193c5d;color:#fff}.cdd-pagination a:focus-visible{outline:3px solid #3169c4;outline-offset:3px}
