@import url("./color-scheme.fed056bdb697.css");

/*========================================
DESIGN TOKENS live in color-scheme.css
(--rf-* variables) so they're reusable as
other pages are brought into this design.
This block only sets page-local behaviour.
==========================================*/
.rf-home {
    font-family: var(--rf-font);
    scroll-behavior: smooth;
    color: var(--rf-ink);
}

.rf-home * {
    box-sizing: border-box;
}

/*========================================
HERO SECTION
==========================================*/
.hero-section {
    background-image:
      linear-gradient(
        150deg, 
        rgba(21, 64, 42, 0.5) 0%, 
        rgba(28, 84, 54, 0.5) 60%, 
        rgba(33, 96, 64, .65) 100%
        ), 
      url("../images/background-image-opt1.25597536876c.webp"), 
      url("../images/background-image-opt1.480288c00788.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-left {
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #d8efe1;
}

.hero-title {
    font-size: clamp(1.8rem, 3.4vw + 1rem, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 18px 0 16px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.55;
    color: #cfe5d8;
    max-width: 480px;
    margin: 0;
}

.hero-trust-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
}

.hero-trust-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d8efe1;
    font-size: 13px;
    font-weight: 600;
}

.hero-trust-stat i {
    color: var(--rf-soft);
    font-size: 16px;
}

/* Right column - cards */
.hero-right {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
}

/* Desktop-only title */
.hero-title-desktop {
    display: block;
}

/* mobile only title */
.hero-title-mobile {
    display: none;
    color: #fff;
}

/*========================================
CONSULT CARDS (BER / address entry points)
==========================================*/
.consult-card {
    background: white;
    border-radius: 14px;
    padding: 26px 26px 22px;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
    color: var(--rf-ink);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    transform-origin: center center;
    flex: 1 1 48%;
    min-width: 250px;
}

.hero-right:hover .consult-card:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
    z-index: 10;
}

.hero-right:hover .consult-card:not(:hover) {
    transform: scale(0.97);
    opacity: 0.92;
}

.consult-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    position: relative;
}

.consult-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--rf-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.consult-card-icon i {
    color: var(--rf-primary);
    font-size: 18px;
}

.consult-card h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--rf-forest);
    margin: 0;
}

.consult-card label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: var(--rf-muted);
    margin-bottom: 6px;
    margin-top: 10px;
}

.styled-input {
    padding: 12px 14px;
    margin: 0 0 12px;
    border-radius: 10px;
    border: 1px solid var(--rf-border2);
    font-size: 14px;
    color: var(--rf-ink);
}

.styled-input:focus {
    outline: none;
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(47,158,91,.15);
}

.card-description {
    font-size: 12px;
    color: var(--rf-muted);
    margin: 4px 0 14px;
    line-height: 1.4;
}

.primary-btn {
    background-color: var(--rf-primary);
    color: white;
    padding: 13px 18px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s ease;
}

.primary-btn:hover {
    background-color: var(--rf-primary-hover);
}

.consult-card--secondary .primary-btn {
    background: #fff;
    color: var(--rf-forest);
    border: 1px solid var(--rf-primary);
}

.consult-card--secondary .primary-btn:hover {
    background: var(--rf-tint);
}

/*========================================
INFO ICON
==========================================*/
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--rf-primary);
  color: white;
  font-size: 12px;
  font-weight: bold;
  font-family: Arial, sans-serif;

  cursor: pointer;
  user-select: none;
  border: none;
}

/*========================================
Dynamic Input Validation (for BER/MPRN text input box)
==========================================*/

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#ber-mprn-input {
    width: 100%;
    padding-right: 30px;
    box-sizing: border-box;
}

#validation-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* icon does not block typing */
}

#validation-icon i {
    font-size: 0.7rem;
}

.locked {
    opacity: 1; /*Change to lower opacity of 'locked' button*/
    cursor: not-allowed;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s ease;
}

/* Responsive - desktop layout */
@media (min-width: 768px) {
  .hero-container {
      flex-direction: row;
  }

  .hero-left {
      width: 41.666%;
  }

  .hero-right {
      width: 58.333%;
      flex-direction: row;
  }

  .consult-card {
      width: 48%;
  }
}

@media (max-width: 767px) {

  .hero-title-mobile {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-title-desktop {
    display: none;
  }

  .hero-left {
    order: 2;
  }
  .hero-right {
    order: 1;
  }
}

/*========================================
TRUST STRIP
==========================================*/
.rf-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 18px 36px;
    background: #fff;
    border-bottom: 1px solid var(--rf-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rf-body);
}

.trust-item i {
    color: var(--rf-primary);
    font-size: 17px;
}

/*========================================
HOW IT WORKS
==========================================*/
.rf-how-it-works {
    padding: 60px 20px;
    background: var(--rf-surface);
}

.rf-how-it-works-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.rf-how-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px -28px rgba(20,40,30,.35);
}

.rf-how-copy h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--rf-forest);
    margin: 0 0 14px;
}

.rf-how-copy p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--rf-body);
    margin: 0 0 12px;
}

@media (min-width: 768px) {
    .rf-how-it-works-inner {
        grid-template-columns: .9fr 1.1fr;
    }
}

/*========================================
BENEFITS
==========================================*/
.rf-benefits {
    padding: 60px 20px;
    background: #fff;
}

.rf-benefits-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.rf-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rf-primary);
}

.rf-benefits-inner h2,
.rf-showcase-inner h2,
.rf-cta h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--rf-forest);
    margin: 10px 0 8px;
}

.rf-cta h2 {
    color: #fff;
}

.rf-section-subtitle {
    font-size: 16px;
    color: var(--rf-body2);
    margin: 0 auto;
    max-width: 540px;
    line-height: 1.5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
    text-align: left;
}

.benefit-card {
    background: #fff;
    border: 1px solid var(--rf-border);
    border-radius: 14px;
    padding: 22px;
}

.benefit-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--rf-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.benefit-card-icon i {
    color: var(--rf-primary);
    font-size: 22px;
}

.benefit-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--rf-forest);
    margin: 0 0 6px;
}

.benefit-card p {
    font-size: 13.5px;
    color: #6b766f;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*========================================
LIVE SHOWCASE (replaces the Ireland map)
==========================================*/
.rf-showcase {
    padding: 64px 20px;
    background: var(--rf-surface);
}

.rf-showcase-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.showcase-card {
    margin-top: 30px;
    background: #fff;
    border: 1px solid var(--rf-border);
    border-radius: 20px;
    box-shadow: 0 30px 70px -36px rgba(20,40,30,.3);
    overflow: hidden;
    text-align: left;
}

.showcase-columns {
    display: grid;
    grid-template-columns: 1fr;
}

.showcase-col {
    padding: 28px;
    border-bottom: 1px solid var(--rf-border);
}

.showcase-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rf-muted2);
}

.showcase-area {
    font-size: 24px;
    font-weight: 800;
    color: var(--rf-forest);
    margin: 10px 0 0;
    letter-spacing: -.01em;
}

.showcase-type {
    font-size: 14px;
    color: #6b766f;
    font-weight: 500;
    margin: 0;
}

.ber-transition {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.ber-transition i {
    color: var(--rf-primary);
    font-size: 18px;
}

.ber-badge {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
}

.savings-rows {
    margin-top: 14px;
}

.savings-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f0f3f1;
    font-size: 14px;
    color: var(--rf-body);
    font-weight: 600;
}

.savings-row--last {
    border-bottom: none;
}

.savings-row span:last-child {
    font-size: 20px;
    font-weight: 800;
    color: var(--rf-forest);
}

.savings-row--last span:last-child.savings-highlight,
.savings-highlight {
    color: var(--rf-primary);
}

.savings-row small {
    font-size: 12px;
    color: var(--rf-muted2);
    font-weight: 600;
    margin-left: 2px;
}

.showcase-col--map {
    background: var(--rf-surface2);
}

.map-pin-box {
    position: relative;
    aspect-ratio: 1000 / 1428;
    max-width: 200px;
    margin: 12px auto 0;
    border-radius: 12px;
    background-color: #e9f1ec;
    border: 1px solid #e0e9e2;
    overflow: hidden;
}

#ireland-map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.county-base-path {
    fill: var(--rf-tint);
    stroke: var(--rf-border2);
    stroke-width: 3;
    stroke-linejoin: round;
}

#county-highlight {
    fill: var(--rf-primary);
    fill-opacity: .35;
    stroke: var(--rf-primary);
    stroke-width: 4;
    stroke-linejoin: round;
}

#showcase-pin {
    transition: transform 0.9s cubic-bezier(.5,.02,.2,1);
}

.pin-scale {
    transform: scale(2);
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

#showcase-pin .pin-pulse {
    fill: none;
    stroke: var(--rf-primary);
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
    animation: pinPulse 2.4s ease-out infinite;
}

#showcase-pin .pin-body {
    fill: var(--rf-primary);
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.3));
}

#showcase-pin .pin-dot {
    fill: #fff;
}

@keyframes pinPulse {
    0%   { transform: scale(.7); opacity: .7; }
    70%  { transform: scale(1.9); opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}

.location-pill {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rf-tint);
    border: 1px solid #d7e8de;
    border-radius: 999px;
    padding: 5px 12px;
}

.location-pill i {
    color: var(--rf-primary);
    font-size: 13px;
}

.location-pill span {
    font-size: 12px;
    font-weight: 700;
    color: var(--rf-forest);
}

.showcase-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-top: 1px solid var(--rf-border);
}

.showcase-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.showcase-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--rf-border);
    display: inline-block;
}

@media (min-width: 768px) {
    .showcase-columns {
        grid-template-columns: 1fr 1fr .9fr;
    }
    .showcase-col {
        border-bottom: none;
        border-right: 1px solid var(--rf-border);
    }
    .showcase-col:last-child {
        border-right: none;
    }
}

/*========================================
CTA
==========================================*/
.rf-cta {
    padding: 56px 20px;
    background: linear-gradient(150deg, var(--rf-forest), var(--rf-deep));
    text-align: center;
}

.rf-cta-inner {
    max-width: 760px;
    margin: 0 auto;
}

.rf-cta p {
    font-size: 16px;
    color: #cfe5d8;
    margin: 0 0 24px;
}

.rf-cta-btn {
    background: #fff;
    color: var(--rf-forest);
    border: none;
    border-radius: 11px;
    padding: 15px 28px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    transition: 0.2s ease;
}

.rf-cta-btn:hover {
    background: var(--rf-tint);
}

/*========================================
Partner logos (inside consult cards)
==========================================*/
.partner-logo {
    margin-top: 22px;
    text-align: center;
}

.partner-logo {
    height: 45px;
    width: auto;
    opacity: 0.9;
}

/** SECTION Registration modal required styles **/
/* New registration modal styles */
.list-X {
  list-style: none;
  /* Remove default bullets */
  color: #ec3f41;
  padding-left: 22px;
  line-height: 24px;
  font-size: 0.9rem;
}

.list-X::before {
  content: "\00d7";
  font-size: large;
  color: red;
  /* Change the color */
  font-weight: bold;
  /* If you want it to be bold */
  display: inline-block;
  /* Needed to add space between the bullet and the text */
  width: 1em;
  /* Also needed for space (tweak if needed) */
  margin-left: -1em;
  /* Also needed for space (tweak if needed) */
}

.modal-brand-logo {
  max-width: 300px;
  width: 100%;
  /* Add a width */
}

.modal-header-cont {
  justify-content: space-between;
}

@media (max-width: 992px) {
  .modal-header-cont {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

#registration-modal .btn-close, #functionality-warning-modal .btn-close {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0.25rem;
}

.modal-brand-container {
  width: 300px;
  /* Add a width to the container */
}

.modal-intro-text p {
  text-align: justify;
}


.modal-intro-text, .final-consent-cont, #email-password-container {
  padding-left: 10%;
  padding-right: 10%;
}

#no-ber-alerts, #cant-find-mprn-div {
  padding-left: 10%;
  padding-right: 10%;
}

.no-ber-button-container .btn {
  width: 90%;
  height: 120px;
  font-size: small;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.no-ber-button-container .btn img {
  height: 60px;
}

.no-ber-button-container .btn .btn-text {
  font-weight: bold;
}

/** Bold all labels in the reg modal **/
#registration-modal label {
  font-weight: bold;
}

#terms-cons-text {
  font-size: small;
}

#registration-modal .modal-page {
  min-height: 320px;
  position: relative;
}

.alerts {
  color: red;
  font-size: 0.8em;
}

/* show/hide password */
#togglePassword {
  float: right;
  margin-left: -25px;
  margin-top: -25px;
  padding-right: 5px;
  position: relative;
  z-index: 2;
  cursor: pointer; /* Add cursor pointer to indicate it's clickable */

}

/* Loading overlay now lives in the shared component:
   landing_page/static/styles/components/ber-loader.css
   (included via landing_page/components/ber-loader.html) */

.row.back-btn-row {
  height: 40px;
}

.modal-nav-back {
  position: relative;
  bottom: 0;
  left: 0;
}

.modal-nav-forward {
  position: relative;
  bottom: 0;
  right: 0;
}

/*========================================
REGISTRATION MODAL — visual refresh
(selectors scoped under #registration-modal
so nothing here reaches outside the modal)
==========================================*/
#registration-modal .modal-content {
  border-radius: 18px;
  border: none;
  font-family: var(--rf-font);
}

#registration-modal .modal-header {
  border-bottom: 1px solid var(--rf-border);
  padding: 20px 24px;
}

#registration-modal .modal-brand-logo {
  max-width: 160px;
}

#registration-modal .modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--rf-forest);
}

#registration-modal .modal-body {
  padding: 28px 24px;
  color: var(--rf-ink);
}

#registration-modal .modal-intro-text p.fw-bold {
  font-size: 16px;
  font-weight: 700;
  color: var(--rf-forest);
  text-align: center;
  margin-bottom: 20px;
}

#registration-modal .center-bold {
  color: var(--rf-forest);
}

/* Multi-choice tiles (property type, construction year, storeys, heating) */
#registration-modal .no-ber-button-container .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

#registration-modal .no-ber-button-container [class*="col-"] {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
}

#registration-modal .modal-choice-btn {
  background: #fff;
  border: 1px solid var(--rf-border2);
  border-radius: 14px;
  color: var(--rf-forest);
  width: 130px;
  height: 108px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

#registration-modal .modal-choice-btn:hover {
  border-color: var(--rf-primary);
  background: var(--rf-tint);
  transform: translateY(-2px);
}

#registration-modal .modal-choice-btn.active {
  border-color: var(--rf-primary);
  background: var(--rf-tint);
  box-shadow: 0 0 0 2px rgba(47,158,91,.25);
}

#registration-modal .modal-choice-btn img {
  height: 32px;
  width: auto;
}

#registration-modal .modal-choice-btn .btn-text {
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--rf-forest);
}

/* Primary buttons (Continue / Confirm / Not Sure / Proceed) */
#registration-modal .login-button {
  background: var(--rf-primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s ease;
}

#registration-modal .login-button:hover {
  background: var(--rf-primary-hover);
  color: #fff;
}

#registration-modal .login-button:disabled {
  background: var(--rf-border2);
  color: var(--rf-muted);
  cursor: not-allowed;
}

/* Back navigation */
#registration-modal .modal-back-btn {
  background: #fff;
  border: 1px solid var(--rf-border2);
  color: var(--rf-forest);
  border-radius: 10px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

#registration-modal .modal-back-btn:hover {
  border-color: var(--rf-primary);
  color: var(--rf-primary);
}

#registration-modal .modal-back-btn i {
  font-size: 14px;
}

/* Info / error pages */
#registration-modal #ber-mprn-info-content p.fw-bold {
  color: var(--rf-forest);
  font-size: 14px;
}

#registration-modal #ber-mprn-info-content ul {
  color: var(--rf-body);
  font-size: 13.5px;
  line-height: 1.6;
}

#registration-modal .terms-cons-text {
  color: var(--rf-ink) !important;
}
