/* ==========================================================================
   ClosingCosts screen (assets/js/closing_costs.js). Fonts come from the host
   page; the hero's dark fill can be swapped by the host for its own artwork.
   ========================================================================== */

.cc-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #181d27;
  font-family: inherit;
}

.cc-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.cc-intro {
  font-size: 14px;
  line-height: 1.45;
  color: #414651;
}

.cc-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: #ffffff;
  background-color: #181d27;
  background-image: linear-gradient(135deg, #24507d 0%, #10294a 55%, #0b1a2f 100%);
  background-size: cover;
  background-position: center;
}

.cc-hero-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.cc-hero-figures {
  display: flex;
  width: 100%;
}

.cc-hero-figure {
  flex: 1 0 0;
  text-align: center;
}

.cc-hero-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.cc-hero-value {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
}

.cc-list {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  border: 1px solid #e9eaeb;
  border-radius: 16px;
  background: #ffffff;
}

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e9eaeb;
}

.cc-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.cc-name-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px dashed #d5d7da;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  color: #181d27;
  background: transparent;
  outline: none;
}

.cc-name-input:focus {
  border-bottom-color: #278ae5;
}

.cc-amount {
  flex: 0 0 116px;
  width: 116px;
  padding: 9px 12px;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  text-align: right;
  color: #181d27;
  background: #ffffff;
  outline: none;
}

.cc-amount::placeholder {
  color: #a4a7ae;
}

.cc-amount:focus {
  border-color: #278ae5;
}

.cc-add {
  align-self: flex-start;
  padding: 14px 0;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #278ae5;
  background: none;
  cursor: pointer;
}

.cc-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #717680;
}

.cc-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #278ae5;
  cursor: pointer;
}

.cc-save-arrow {
  font-size: 18px;
  line-height: 1;
}

.cc-reset {
  align-self: center;
  padding: 6px 12px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #717680;
  background: none;
  cursor: pointer;
}
