/* Mortgage-specific style overrides for larger, more readable text */

/* Card icon styles */
.card-icon {
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  width: auto;
  height: auto;
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

/* Hero image frame with blue glow effect */
.hero-image img {
  border-radius: 20px;
  border: 2px solid rgba(47, 107, 255, 0.3);
  box-shadow: 0 0 40px rgba(47, 107, 255, 0.2),
              0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 50px rgba(47, 107, 255, 0.3),
              0 24px 70px rgba(0, 0, 0, 0.5);
}

/* Increase eyebrow labels */
.eyebrow {
  font-size: 16px;
}

/* Increase paragraph text in cards */
.card p,
.feature-card p,
.accuracy-card p {
  font-size: 20px;
  line-height: 1.6;
}

.accuracy-card,
.feature-card,
.pricing-card {
  text-align: center;
  align-items: center;
}

.hero-calculator {
  align-items: stretch;
}

.hero-calculator > div {
  width: 100%;
}

/* Increase section heading descriptions */
.section-heading p {
  font-size: 22px;
  line-height: 1.6;
}

/* Increase pricing card list items */
.pricing-card li {
  font-size: 17px;
}

/* Increase pricing terms */
.price-term {
  font-size: 17px;
}

/* Increase footer text */
.footer-links a,
.footer-links span {
  font-size: 16px;
}

/* Increase hero subtitle */
.hero-subtitle {
  font-size: 22px;
  line-height: 1.5;
}

/* Increase security section text */
#security .feature-card p {
  font-size: 20px;
}

/* Better readability for all body text */
body {
  font-size: 20px;
}

/* Maintain h3 size but ensure it's prominent */
h3 {
  font-size: 28px;
}

/* Signup form status text */
.signup-status {
  font-size: 18px;
}

/* Modal text (for signup popup) */
.modal-body p {
  font-size: 19px;
}

/* Signup custom select styling */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.plan-select {
  padding: 16px 20px;
  padding-right: 52px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.plan-select:hover,
.plan-select:focus {
  outline: none;
  border-color: rgba(47, 107, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.22);
  background-color: rgba(47, 107, 255, 0.14);
}

.plan-select:invalid {
  color: var(--text-muted);
}

.plan-select option {
  color: var(--text);
  background-color: #05060b;
}

.plan-select option[value=""] {
  color: var(--text-muted);
}

.custom-select-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text);
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.plan-select:hover + .custom-select-icon,
.plan-select:focus + .custom-select-icon {
  color: var(--accent);
  opacity: 1;
}

.plan-select--placeholder {
  color: var(--text-muted) !important;
}

.field-error {
  margin-top: 10px;
  font-size: 16px;
  color: #ff8c99;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.plan-select--error {
  border-color: rgba(255, 120, 120, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.25);
  background-color: rgba(255, 120, 120, 0.08) !important;
}

.plan-select--error:hover,
.plan-select--error:focus {
  border-color: rgba(255, 150, 150, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(255, 150, 150, 0.35);
  background-color: rgba(255, 120, 120, 0.12) !important;
}



/* Plan combobox */
.combobox {
  position: relative;
  width: 100%;
}

.combobox__button {
  width: 100%;
  text-align: left;
  padding: 16px 52px 16px 20px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  backdrop-filter: blur(18px);
  cursor: pointer;
  position: relative;
}

.combobox__button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(247, 247, 251, 0.7);
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.combobox__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(8, 10, 18, 0.94);
  border: 1px solid rgba(120, 150, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 22px 45px rgba(6, 8, 18, 0.5);
  display: none;
  max-height: 240px;
  overflow-y: auto;
  z-index: 400;
}

.combobox__list.is-open {
  display: block;
}

.combobox__list li {
  padding: 14px 20px;
  cursor: pointer;
  color: rgba(247, 247, 251, 0.85);
}

.combobox__list li:hover,
.combobox__list li.is-selected {
  background: rgba(47, 107, 255, 0.18);
  color: var(--text);
}

.combobox--error .combobox__button {
  border-color: rgba(255, 120, 120, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.22);
}



.plan-picker {
  display: grid;
  gap: 12px;
}

.plan-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 26, 0.75);
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: grid;
  gap: 6px;
}

.plan-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.plan-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.plan-card:hover,
.plan-card:focus {
  border-color: rgba(47, 107, 255, 0.7);
  box-shadow: 0 18px 36px rgba(47, 107, 255, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.plan-card.is-selected {
  border-color: rgba(47, 107, 255, 0.9);
  box-shadow: 0 22px 40px rgba(47, 107, 255, 0.25);
  background: rgba(30, 48, 90, 0.85);
}

.plan-card-error {
  border-color: rgba(255, 120, 120, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.22);
}
