/*
Theme Name: Hreinrás
Theme URI: https://elementor.com/products/hello-biz/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-biz
Author: Black Flamingo
Author URI: https://blackflamingo.is
Description: Custom fork af Hello Biz þemanu fyrir Hreinrás
Tags: flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready,style-variations
Version: 1.2.0.1771317917
Updated: 2026-02-17 08:45:17

*/

:root {
  /* Brand */
  --color-primary-50: #EFF6FC;
  --color-primary-100: #D9E8F5;
  --color-primary-200: #B8D2EA;
  --color-primary-300: #8DB6DC;
  --color-primary-400: #5E94C6;
  --color-primary-500: #336A9F;
  --color-primary-600: #27537D;
  --color-primary-700: #1E405F;
  --color-primary-800: #15304A;
  --color-primary-900: #0D2236;

   --color-primary-rgb:rgba(30, 64, 95, 0.78);

  /* Secondary / neutral */
  --color-grey-50: #F6F7F8;
  --color-grey-100: #EEF0F1;
  --color-grey-200: #DDE1E3;
  --color-grey-300: #CDD1D3;
  --color-grey-400: #B7BDC0;
  --color-grey-500: #A3A8AB;
  --color-grey-600: #7C858B;
  --color-grey-700: #5D676E;
  --color-grey-800: #3F4A52;
  --color-grey-900: #222B33;

  /* Text */
  --color-text-heading: #0F2233;
  --color-text-body: #1F3344;
  --color-text-muted: #5D676E;
  --color-text-inverted: #FFFFFF;
  --color-text-inverted-muted: #D9E8F5;

  /* Backgrounds */
  --color-background: #FFFFFF;
  --color-background-soft: #F7FAFC;
  --color-background-blue: #EFF6FC;
  --color-background-dark: #15304A;
  --color-footer: #0D2236;

  /* Borders */
  --color-border: #DDE1E3;
  --color-border-strong: #CDD1D3;
  --border-radius: 10px;

  /* Actions */
  --color-button-primary: #336a9f;
  --color-button-primary-hover: #27537D;
  --color-button-primary-active: #1E405F;

  --color-accent: #C96A1B;
  --color-accent-hover: #92400E;
  --color-accent-light: #FEF3C7;

  /* Status */
  --color-success: #2F7D46;
  --color-success-light: #EAF6EE;
  --color-warning: #B45309;
  --color-warning-light: #FEF3C7;
  --color-error: #B42318;
  --color-error-light: #FEE2E2;
  --color-info: #336A9F;
  --color-info-light: #D9E8F5;

  /* Shadows */
  --btn-shadow: rgba(0, 0, 0, 0.17) 0px 0px 5px;
}


#fpHero {
  transition: opacity 0.2s linear;
  will-change: opacity;
}

body.admin-bar header.elementor-location-header {
    top:32px;
}

body:not(.home) header:has(.hreinras-header)+div {
    margin-top: var(--header-height);
}

@media screen and (max-width: 782px) {
    body.admin-bar header.elementor-location-header {
        top:46px;
    }    
      body.admin-bar header.elementor-location-header.scrolled {
      top:0;
  }  
}

header {
    position: absolute;
    z-index: 999;
    top: 0;
    width: 100%;
}

@media (max-width:1024px) {
  header #headerLogoStickyMobile {
      display:none;
  }

  header.scrolled #headerLogo {
     display:none;
  }

  header.scrolled #headerLogoStickyMobile {
      display:block;
  }
}

.hreinras header.scrolled .hreinras-header #headerLogo img {
    max-width: 120px;
}

body:not(.home) header .hreinras-header {
    background: var(--color-primary-rgb);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.scrolled .hreinras-header {
  background: rgba(10, 33, 56, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header .hreinras-header .elementor-sub-item {
    text-decoration: none;
    min-height:54px;
    max-height:54px;
}

/* Sticky header */
.elementor-location-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  animation: headerSlideDown 0.4s ease 0.15s both;
}



.hreinras header.scrolled .hreinras-header .elementor-button {
    padding: 8px 12px;
}

.hreinras header.scrolled .hreinras-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.hreinras header.scrolled .hreinras-header .elementor-element .elementor-button:hover {
    border-color: var(--color-primary-600);
}

@keyframes headerSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}


.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 350;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
	gap:1rem;
	opacity: 0;
	pointer-events: none;
    text-decoration: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateX(100%);
}

body.hreinras .floating-cta-btn {
    background-color:var(--color-accent);
}

body.hreinras .floating-cta-btn:hover {
    background-color:var(--color-accent-hover);
}

.floating-cta-btn .elementor-button-icon {
    margin-inline-end: 8px;
}

.floating-cta-btn .elementor-button-content-wrapper {
    gap:0;
}

.elementor-icon-wrapper {
    line-height: 1em;
}

.scrollToTop {
	padding: 12px 24px;
    border-radius: var(--border-radius);
    background-color: var(--color-background);
    box-shadow: 0 0 5px rgba(0,0,0,0.17);
    color: var(--color-button-primary);
    font-size: 16px;
}

.floating-buttons.button-show {
    opacity: 1;
    transform: none;
    pointer-events: visible
}

.scrollToTop .elementor-icon {
    font-size: 1rem;
}

body :is(a.floating-cta-btn, 
.hero-cta a) {
	box-shadow:var(--btn-shadow);
}

/*Um okkur before/after section*/

/* Outer scroll area */
body.wp-child-theme-Hreinras .ba-fade-section{
  position: relative;
  display:block!important;
  min-height:220vh;
}

/* Sticky stage */
body.wp-child-theme-Hreinras .ba-fade-stage{
  position: sticky;
  top: 0;
  height: 100vh;
  display: block !important;  /* 🔥 critical */
}

/* the inner wrapper Elementor uses */
.ba-fade-stage .e-con-inner{
  height: 100%;
}
/* Make Elementor image widgets fill the stage */
body.wp-child-theme-Hreinras .ba-fade-stage .elementor-widget-image,
body.wp-child-theme-Hreinras .ba-fade-stage .elementor-widget-container{
  height: 100%;
}

/* Layer wrappers + their <img> fill */
body.wp-child-theme-Hreinras .ba-fade-stage .ba-layer{
  position: absolute !important;
  inset: 0;
  margin: 0;
}

/* make sure the widget containers stretch */
.ba-fade-stage .ba-layer .elementor-widget-container{
  height: 100%;
}

body.wp-child-theme-Hreinras .ba-fade-stage .ba-layer img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01); /* prevents edge gaps */
}

/* Fade logic */
body.wp-child-theme-Hreinras .ba-fade-stage .ba-before{ 
	opacity: 1; 
}
body.wp-child-theme-Hreinras .ba-fade-stage .ba-after{
  opacity: var(--ba-opacity, 0);
  will-change: opacity;
}

/* --- No-JS fallback behavior --- */
/* We’ll add .no-js on <html> by default and remove it via JS */
html.no-js .ba-fade-stage .ba-after{ opacity: 0; }            /* show BEFORE only */
.ba-after-fallback{ display: none; }                          /* hide fallback normally */
html.no-js .ba-after-fallback{ display: block; margin-top: 24px; } /* show AFTER below */

.floating-cta-btn.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

body.hreinras .um-okkur-content .services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  body.hreinras .um-okkur-content .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.hreinras .um-okkur-content .services-grid {
    grid-template-columns: 1fr;
  }

  body.hreinras .um-okkur-content .service-card {
    padding: 1.5rem;
    border-radius: 1.125rem;
  }
}

body.hreinras .um-okkur-content .service-card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #DDE1E3;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(13, 34, 54, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

body.hreinras .um-okkur-content .service-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  color: #92400E;
  background: #FEF3C7;
  border-radius: 999px;
  padding: 7px 10px;
}

body.hreinras .um-okkur-content .service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #336A9F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

body.hreinras .um-okkur-content .service-card:hover {
  transform: translateY(-4px);
  border-color: #B8D2EA;
  box-shadow: 0 18px 45px rgba(13, 34, 54, 0.10);
}

body.hreinras .um-okkur-content .service-card:hover::before {
  transform: scaleX(1);
}

body.hreinras .um-okkur-content .service-card--emergency::before {
  background: #B45309;
}

body.hreinras .um-okkur-content .service-card .elementor-icon-box-wrapper {
    gap: 0;
}

body.hreinras .um-okkur-content .service-card .elementor-icon-box-icon {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
  body.hreinras .um-okkur-content .service-card .elementor-icon-box-icon {
    justify-content: left;
  }
  .service-card p, .service-card h3 {
    text-align: left;
  }
  }

body.hreinras .um-okkur-content .service-card .elementor-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--color-primary-100);
    color: var(--color-primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}


body.hreinras .um-okkur-content .service-card--emergency .elementor-icon {
  background: #FEF3C7;
  color: #B45309;
}

body.hreinras .um-okkur-content .service-card .elementor-icon svg {
    width:2rem;
    height:2rem;
}

body.hreinras .um-okkur-content .service-card__link {
  margin-top: auto;
}

body.hreinras .um-okkur-content .service-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
  margin: 0 0 12px;
}

body.hreinras .um-okkur-content .service-card p {
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-body);
  margin: 0 0 24px;
}

body.hreinras .um-okkur-content .service-card__link {
  margin-top: auto;
}

body.hreinras .um-okkur-content .service-card__link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.service-card:hover .service-card__link span {
  transform: translateX(4px);
}

/*Work Cards*/

body.hreinras .work-header__content .work-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 350px 350px;
  gap: 24px;
}

body.hreinras .work-header__content .work-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #DDE1E3;
  box-shadow: 0 18px 45px rgba(13, 34, 54, 0.10);
  text-decoration: none;
  color: #FFFFFF;
}

body.hreinras .work-header__content .work-card .elementor-widget-image {
  height:100%;
}

body.hreinras .work-header__content .work-card--featured {
  grid-row: span 2;
}

body.hreinras .work-header__content .work-card--wide {
  grid-column: span 2;
}

body.hreinras .work-header__content .work-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 350ms ease;
}

body.hreinras .work-header__content .work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(13, 34, 54, 0.78),
      rgba(13, 34, 54, 0.26) 45%,
      rgba(13, 34, 54, 0.04)
    );
}

body.hreinras .work-header__content .work-card__content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

body.hreinras .work-header__content .work-card__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
}

body.hreinras .work-header__content .work-card__title h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF;
}

body.hreinras .work-header__content .work-card--featured .work-card__title h3{
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

body.hreinras .work-header__content .work-card:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  body.hreinras .work-header__content .work-header {
    display: block;
    margin-bottom: 32px;
  }

  body.hreinras .work-header__content .work-button {
    margin-top: 24px;
  }

  body.hreinras .work-header__content .work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
  }

  body.hreinras .work-header__content .work-card,
  body.hreinras .work-header__content .work-card--featured,
  body.hreinras .work-header__content .work-card--wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  body.hreinras .work-header__content .work-card--featured {
    aspect-ratio: 3 / 4;
  }

  body.hreinras .work-header__content .work-card__content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 640px) {
  body.hreinras .work-header__content .work-card:nth-child(4) {
    display: none;
  }
}

/*Why section*/

body.hreinras .why-section .why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}


body.hreinras .why-section .why-card.elementor-widget {
  padding: 28px;
  max-width: fit-content;
}

@media (max-width: 1024px) {
  body.hreinras .why-section .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.hreinras .why-section .why-card.elementor-widget {
    padding:0;  
  }
}

@media (max-width: 767px) {
  body.hreinras .why-section .why-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  body.hreinras .why-section .why-card.elementor-widget {
    padding:0;  
  }
}

body.hreinras .why-section .why-card .elementor-icon-box-wrapper {
  flex-direction: row;
  align-items:center!important;
}

body.hreinras .why-section .why-card .elementor-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-300);
  background: rgba(141, 182, 220, 0.14);
  border: 1px solid rgba(141, 182, 220, 0.22);
}

body.hreinras .why-section .why-card .elementor-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

body.hreinras .why-section .why-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #FFFFFF;
}

body.hreinras .why-section .why-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--color-primary-100);
}

/*About us*/
body.hreinras .about-us-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #DDE1E3;
  box-shadow:0 12px 35px rgba(0,0,0,.08);
}

body.hreinras .about-us__content .about-us-work-grid {
display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  height: 500px;
}

body.hreinras .about-us__content .about-us-work-grid > *:first-child {
  grid-row: 1 / -1;
}

body.hreinras .about-us__content .about-us-image-card > *, body.hreinras .about-us__content .about-us-image-card a {
    height: 100%;
    width: 100%;
}

body.hreinras .about-us__content .about-us-image-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 350ms ease;
}

body.hreinras .about-us__content .about-us-work-grid .about-us-image-card img {
  height:100%;
}

body.hreinras .about-us__content .about-us-image-card:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  body.hreinras .about-us__content .about-us-work-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
    height:100%;
  }

  body.hreinras .about-us__content .about-us-work-grid .about-us-image-card img {
    max-height:400px;
  }
}

/*Services page*/

body.hreinras .service-card {
  scroll-margin-top: 110px;
}

body.hreinras .services__content .service-card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #DDE1E3;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(13, 34, 54, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

@media (max-width: 767px) {
  body.hreinras .services__content .service-card {
    padding: 1rem;
  }
}

body.hreinras .services__content .service-card:hover {
  border-color: #B8D2EA;
  box-shadow: 0 18px 45px rgba(13, 34, 54, 0.10);
}

body.hreinras .services__content .service-card .services-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #DDE1E3;
  box-shadow:0 12px 35px rgba(0,0,0,.08);
}

@media (max-width: 767px) {
  body.hreinras .services__content .service-card .services-image-card {
    border-radius: 16px;
  }
}

body.hreinras .services__content .services-image-card > *, body.hreinras .services__content .services-image-card a {
    height: 100%;
    width: 100%;
}

body.hreinras .services__content .services-image-card img {
  height:100%;
  width: 100%;
  display: block;
  object-fit: cover;
}

/*Projects page*/

body.hreinras .projects__content .projects__before-after {
    width:calc(50% - 32px);
    box-shadow:0 12px 35px rgba(0,0,0,.08); 
    max-height:650px;
    overflow:hidden;
}

body.hreinras .projects__content .projects__before-after img {
    height:650px;
    object-fit: cover;
}

body.hreinras .projects__content .projects__image-wrapper {
    max-height:650px;
}


body.hreinras .projects__content .projects__image-container {
  box-shadow:0 12px 35px rgba(0,0,0,.08);
  border-radius:12px;
  overflow:hidden;
}

body.hreinras .projects__content .projects__before-after .cocoen.before-after-widget {
    overflow:hidden;
    border-radius:12px;
    display:block!important
}

body.hreinras .projects__content .projects__before-after .cocoen-drag::before {
    background-color:var(--color-button-primary);
    border-radius:12px;
    max-height:32px;
}

body.hreinras .projects__image-wrapper .projects__image-container img {
    object-fit:cover;
    transform: scale(1.01);
    transition: transform 350ms ease;
}

body.hreinras .projects__image-wrapper .projects__image-container img:hover {
    transform: scale(1.06);
}

#projectsBadherbergi .projects__image-container>div, #projectsBadherbergi .projects__image-container div>a {
    height: 100%;
    width:100%;
}

:is(#projectsGolfhitiSnjobraedsla, #projectsLaugarasLagoon) .elementor-widget-video .e-hosted-video .elementor-video {
  height:650px;
}


@media(max-width:1366px) {
  body.hreinras .projects__content .projects__before-after {
    max-height:500px;
  }
  body.hreinras .projects__content .projects__image-wrapper {
    max-height:500px;
  }
  body.hreinras .projects__content .projects__before-after img {
    height:500px;
    object-fit: cover;
  }
  :is(#projectsGolfhitiSnjobraedsla, #projectsLaugarasLagoon) .elementor-widget-video .e-hosted-video .elementor-video {
    height:500px;
  }
  body.hreinras .projects__content .ug-gallery-wrapper {
    height: 500px !important;
  }
}
@media(max-width:1200px) {
  body.hreinras .projects__content .projects__before-after {
    width:100%;
  }
  body.hreinras .projects__content .projects__image-wrapper {
    max-height:unset;
  }
  .projects__image-container div>a, .projects__image-container>div {
    width:100%;
    height:100%;
  }
  body.hreinras .projects__image-wrapper .projects__image-container img {
    height:100%;
  }
  #projectsHitaveita img {
    max-height:500px;
  }
  #projectsBadherbergi .projects__image-container img{
    height: 250px;
  }

  #projectsLaugarasLagoon .projects__image-wrapper:has(.elementor-video) {
    max-height:500px;
  } 
}

@media(max-width:767px) {
  body.hreinras .projects__content .projects__before-after {
    width:100%;
  }
  body.hreinras .projects__content .projects__image-wrapper {
    max-height:400px;
  }
   body.hreinras .projects__content .projects__image-wrapper:has(.ug-gallery-wrapper) {
    max-height:100%;
  }
  .projects__image-container div>a, .projects__image-container>div {
    width:100%;
    height:100%;
  }
  body.hreinras .projects__image-wrapper .projects__image-container img {
    height:100%;
  }
  #projectsHitaveita img {
    max-height:400px;
  }
  #projectsBadherbergi .projects__image-container img{
    height: 250px;
  }

  #projectsLaugarasLagoon .projects__image-wrapper:has(.elementor-video) {
    max-height:100%;
  } 

  :is(#projectsGolfhitiSnjobraedsla, #projectsLaugarasLagoon) .elementor-widget-video .e-hosted-video .elementor-video {
  height:100%;
}
}


/*Verkbeidni form*/
.contact-form {
  padding: clamp(28px, 4vw, 42px);

  border-radius: 28px;

  background: #FFFFFF;

  border: 1px solid rgba(13, 34, 54, 0.06);

  box-shadow:
    0 24px 60px rgba(13, 34, 54, 0.08);
}

@media (max-width:767px) {
    .contact-form {
        padding:1.5rem 1rem;
    }
}

.contact-form label {
  display: block;

  margin-bottom: 8px;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #5D676E;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  border: 1px solid #CDD1D3;

  border-radius: 16px;

  background: #FFFFFF;

  padding: 16px 18px;

  font-size: 1rem;
  line-height: 1.5;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  min-height: 58px;

  border: 0;
  border-radius: 16px;

  background: #336A9F;
  color: #FFFFFF;

  font-size: 1rem;
  font-weight: 800;

  transition:
    transform 180ms ease,
    background 180ms ease;
}

.contact-form button:hover {
  background: #27537D;
  transform: translateY(-2px);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;

  border-color: #336A9F;

  box-shadow:
    0 0 0 4px rgba(51, 106, 159, 0.14);
}

/* Group */
.contact-form .elementor-field-option input[name*="contactCheckbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-form .elementor-field-type-radio .elementor-field-subgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Pills */
.contact-form .elementor-field-option input[name*="contactCheckbox"] + label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 40px;
  padding: 0 14px;

  border: 1px solid #CDD1D3;
  border-radius: 999px;

  background: #FFFFFF;
  color: #3F4A52;

  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;

  cursor: pointer;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

/* Small radio dot */
.contact-form .elementor-field-option input[name*="form_fields[contactCheckbox]"] + label::before {
  content: "";

  width: 10px;
  height: 10px;

  border-radius: 999px;
  border: 2px solid #A3A8AB;

  background: transparent;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form .elementor-field-option input[name*="contactCheckbox"] + label {
  text-transform: none !important;
}

/* Hover */
.contact-form .elementor-field-option input[name*="contactCheckbox"] + label:hover {
  border-color: #336A9F;
  color: #0F2233;
}

/* Checked */
.contact-form .elementor-field-option input[name*="contactCheckbox"]:checked + label {
  background: #EFF6FC;
  border-color: #336A9F;
  color: #0F2233;
  box-shadow: 0 6px 18px rgba(13, 34, 54, 0.06);
}

.contact-form .elementor-field-option input[name*="contactCheckbox"]:checked + label::before {
  border-color: #336A9F;
  background-color: #336A9F;
  box-shadow: inset 0 0 0 2px #FFFFFF;
}

/* Mobile */
@media (max-width: 640px) {
  .contact-form .elementor-field-type-radio .elementor-field-subgroup {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-form .elementor-field-option input[name*="contactCheckbox"] + label {
    justify-content: flex-start;
    width: 100%;
  }
}

/*Contact form success message*/

body.hreinras form#hafaSambandForm:has(.elementor-message-success) {
    display: none;
}

.custom-success-message span.elementor-icon {
    font-size: 1.25rem;
    fill: #628449;
    color: #628449;
    border-color: #628449;
    margin-inline-end: 8px;
}

.success-inner {
    display: flex;
	align-items:center;
}

.fp-cf-container:has(.custom-success-message) {
    justify-content: center;
}
