/* =========================================================
   CREDITMATCHBD Premium Checker Design (Modern Responsive)
   Loaded after styles.css
   ========================================================= */

:root {
  --premium-navy: #081b35;
  --premium-blue: #146cff;
  --premium-cyan: #20a9e8;
  --premium-bg: #f4f8fe;
  --premium-border: #d7e5f5;
  --premium-muted: #647993;
  --premium-shadow: 0 22px 55px rgba(8, 27, 53, 0.1);
}

/* Global Responsive Media Safeguard */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Brand Logo */
.site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #dce8f5 !important;
  box-shadow: 0 4px 18px rgba(8, 27, 53, 0.05);
}

.navbar {
  min-height: 4.3rem !important;
  width: min(calc(100% - 2rem), 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Brand Image Link Styles */
.brand-logo-link,
.brand {
  display: inline-flex !important;
  align-items: center;
  text-decoration: none !important;
}

.site-logo-img {
  height: clamp(30px, 4vw, 38px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.brand-mark,
.brand-badge-icon {
  display: none !important;
}

.brand-name {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem !important;
  color: #49617c !important;
  font-size: 0.78rem !important;
}

.nav-links a:hover {
  color: var(--premium-blue) !important;
}

/* Premium Hero Section */
.hero {
  position: relative;
  width: min(calc(100% - 2rem), 1280px);
  margin: 0 auto;
  min-height: 28rem;
  padding: clamp(3rem, 5vw, 4.4rem) 0 clamp(2rem, 4vw, 3.2rem) !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem !important;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.13fr) minmax(19rem, 0.87fr) !important;
  }
}

.hero::before {
  position: absolute;
  top: 1.5rem;
  right: -10rem;
  width: clamp(15rem, 30vw, 30rem);
  height: clamp(15rem, 30vw, 30rem);
  background: radial-gradient(circle, rgba(20, 108, 255, 0.12), transparent 67%);
  pointer-events: none;
  content: "";
}

.hero > div:first-child {
  position: relative;
  z-index: 2;
}

.hero-badge,
.section-label {
  box-shadow: 0 4px 12px rgba(20, 108, 255, 0.08);
}

.hero h1 {
  max-width: 42rem !important;
  margin: 1rem 0 1.05rem !important;
  color: var(--premium-navy) !important;
  font-size: clamp(2.2rem, 4.5vw, 4.55rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

.hero p {
  max-width: 37rem !important;
  color: var(--premium-muted) !important;
  font-size: clamp(0.85rem, 1.2vw, 0.92rem) !important;
  line-height: 1.7 !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem !important;
}

.hero-note {
  max-width: 32rem !important;
  margin-top: 0.85rem !important;
  font-size: 0.7rem !important;
}

/* Right-side Hero Information Card */
.hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 19rem !important;
  padding: 1.25rem !important;
  background: linear-gradient(145deg, #ffffff 0%, #f2f8ff 100%) !important;
  border: 1px solid #cfe0f3 !important;
  border-radius: 1.25rem !important;
  box-shadow: var(--premium-shadow) !important;
  overflow: hidden;
}

.hero-card::before {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 14rem;
  height: 14rem;
  background: rgba(20, 108, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-card::after {
  position: absolute;
  bottom: -5rem;
  left: -4rem;
  width: 11rem;
  height: 11rem;
  background: rgba(32, 169, 232, 0.09);
  border-radius: 50%;
  content: "";
}

.mini-card {
  position: relative;
  z-index: 2;
  padding: 1rem !important;
  margin-bottom: 0.7rem !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid #d7e6f5 !important;
  border-radius: 0.8rem !important;
  box-shadow: 0 6px 16px rgba(8, 27, 53, 0.05);
}

.mini-card:last-child {
  margin-bottom: 0 !important;
}

.mini-card span {
  color: #7890aa !important;
  font-size: 0.65rem !important;
  font-weight: 750 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-card strong {
  display: block;
  margin-top: 0.25rem !important;
  color: var(--premium-navy) !important;
  font-size: 0.84rem !important;
}

/* Checker Section */
#checker {
  padding-top: 2rem !important;
  width: min(calc(100% - 2rem), 1280px);
  margin: 0 auto;
}

#checker > .section-heading {
  max-width: 47rem;
  margin-bottom: 1.2rem;
}

#checker > .section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

/* Form / Result Workspace */
.checker-layout {
  width: min(calc(100% - 2rem), 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem !important;
  align-items: stretch !important;
}

@media (min-width: 981px) {
  .checker-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr) !important;
  }
}

.panel {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
  background: #ffffff !important;
  border: 1px solid var(--premium-border) !important;
  border-radius: 1.1rem !important;
  box-shadow: var(--premium-shadow) !important;
}

.checker-layout > .panel:first-child {
  border-top: 4px solid var(--premium-blue) !important;
}

.checker-layout > .panel:last-child {
  position: static;
  border-top: 4px solid var(--premium-cyan) !important;
}

@media (min-width: 981px) {
  .checker-layout > .panel:last-child {
    position: sticky;
    top: 5.3rem;
    align-self: start;
  }
}

.panel h2 {
  color: var(--premium-navy) !important;
  font-size: clamp(1.1rem, 2vw, 1.22rem) !important;
}

.panel-intro {
  color: var(--premium-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.6 !important;
}

/* Form Fields */
.form-grid {
  display: grid;
  gap: 0.85rem !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.34rem !important;
}

.form-group label {
  color: #304963 !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 2.75rem !important;
  padding: 0.62rem 0.72rem !important;
  color: var(--premium-navy) !important;
  background: #fbfdff !important;
  border: 1px solid #ccdeef !important;
  border-radius: 0.58rem !important;
  font-size: 0.78rem !important;
}

.form-group input::placeholder {
  color: #9aaabd;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--premium-blue) !important;
  box-shadow: 0 0 0 3px rgba(20, 108, 255, 0.12) !important;
  outline: none;
}

.checkbox-row {
  display: grid;
  gap: 0.58rem !important;
  margin-top: 1rem !important;
}

.check-item {
  min-height: 2.5rem;
  padding: 0.68rem !important;
  color: #435b75 !important;
  background: #f7fbff !important;
  border: 1px solid #d9e7f4 !important;
  border-radius: 0.6rem !important;
  font-size: 0.72rem !important;
  line-height: 1.45;
}

.check-item:hover {
  background: #eef7ff !important;
  border-color: #bcd7f1 !important;
}

.calculate-button {
  width: 100%;
  min-height: 2.85rem !important;
  margin-top: 1.1rem !important;
  font-size: 0.82rem !important;
}

/* Empty Result State */
.result-empty {
  min-height: 23rem !important;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-empty-icon {
  width: 4.3rem !important;
  height: 4.3rem !important;
  margin-bottom: 1rem !important;
  background: linear-gradient(135deg, var(--premium-blue), var(--premium-cyan)) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 12px 25px rgba(20, 108, 255, 0.2);
}

.result-empty strong {
  display: block;
  color: var(--premium-navy);
  font-size: 0.94rem;
}

.result-empty p {
  margin-top: 0.4rem;
  color: var(--premium-muted);
  font-size: 0.75rem;
}

/* Results */
.results h2 {
  margin-bottom: 1rem;
}

.status-row,
.score-header {
  padding-bottom: 1rem !important;
}

.status-label,
.score-label {
  color: #7890aa !important;
  font-size: 0.68rem !important;
}

.status-name,
.score-name {
  color: var(--premium-navy) !important;
  font-size: 1.15rem !important;
}

.score-circle {
  width: 5.8rem !important;
  height: 5.8rem !important;
  box-shadow: 0 8px 20px rgba(20, 108, 255, 0.15);
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.score-circle-inner,
.score-circle > span {
  width: 4.7rem !important;
  height: 4.7rem !important;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem !important;
}

.result-stat {
  min-height: 4.2rem;
  padding: 0.78rem !important;
  background: #f7fbff !important;
  border: 1px solid #dbe8f4 !important;
  border-radius: 0.65rem !important;
}

.result-stat span {
  display: block;
  color: #7890aa !important;
  font-size: 0.65rem !important;
}

.result-stat strong {
  display: block;
  color: var(--premium-navy) !important;
  font-size: 0.82rem !important;
  margin-top: 0.2rem;
}

.recommendation {
  margin-top: 1rem !important;
  padding: 0.9rem !important;
  background: linear-gradient(135deg, #edf6ff, #f8fcff) !important;
  border: 1px solid #c9e0f6 !important;
  border-left: 3px solid var(--premium-blue) !important;
  border-radius: 0.7rem !important;
}

.recommendation span {
  display: block;
  color: var(--premium-blue) !important;
  font-size: 0.64rem !important;
  text-transform: uppercase;
  font-weight: 700;
}

.recommendation strong {
  display: block;
  color: var(--premium-navy) !important;
  font-size: 0.88rem !important;
  margin: 0.2rem 0;
}

.recommendation p {
  color: var(--premium-muted) !important;
  font-size: 0.74rem !important;
  line-height: 1.5;
  margin: 0;
}

.note-list {
  margin-top: 1rem !important;
  color: var(--premium-muted) !important;
  font-size: 0.74rem !important;
  padding-left: 1.2rem;
}

/* CTA Panels */
.partner-cta {
  min-height: 8rem;
  padding: 1.25rem !important;
  background: linear-gradient(135deg, #edf6ff, #ffffff) !important;
  border: 1px solid #c9def7 !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(8, 27, 53, 0.05)) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.partner-cta h2 {
  color: var(--premium-navy) !important;
  font-size: 1.35rem !important;
}

.partner-cta p {
  color: var(--premium-muted) !important;
  font-size: 0.77rem !important;
  margin: 0.2rem 0 0;
}

.partner-loan {
  border-left: 4px solid #0f93c6 !important;
}

.partner-card {
  border-left: 4px solid var(--premium-blue) !important;
}

.partner-account {
  border-left: 4px solid var(--green, #14845d) !important;
}

/* Responsive Media Query Breakpoints */
@media (max-width: 980px) {
  .hero-card {
    max-width: 38rem;
    min-height: auto !important;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .navbar {
    min-height: 3.8rem !important;
  }

  .site-logo-img {
    height: 30px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.4rem) !important;
  }

  .hero-card {
    padding: 1rem !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .form-group.full {
    grid-column: auto !important;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .partner-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-cta .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 1.4rem), 1280px);
  }

  .hero h1 {
    font-size: 2.1rem !important;
  }

  .result-grid {
    grid-template-columns: 1fr !important;
  }

  .panel {
    padding: 1rem !important;
  }
}