/* =========================================================
   RedMinds Hero Widget (Elementor)
   - Scoped styles (no theme conflicts)
   - Designed to match provided layout
   ========================================================= */

.rmhero-hero{
  --rmhero-accent: var(--rm-color-gold, #f7c600);
  --rmhero-overlay: var(--rm-color-ink, #1f1f1f);
  --rmhero-focus: var(--rmhero-accent);
  --rmhero-field-h: 46px;
  --rmhero-field-radius: 10px;
  --rmhero-field-border: #d7dee8;
  --rmhero-field-bg: #f9fbfd;

  --rmhero-a1: 0.85;
  --rmhero-a2: 0.55;
  --rmhero-a3: 0.05;
  --rmhero-overlay-to: 45%;

  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  color: #fff;
  background: #0b1220;
  isolation: isolate;
}

/* Taller canvas when a right-side form card is shown */
.rmhero-hero.rmhero-has-form{
  min-height: max(100vh, 760px);
}

/* Background layers (2 for crossfade slider) */
.rmhero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}
.rmhero-bg__img{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: opacity 900ms ease, transform 900ms ease;
  opacity: 1;
  will-change: transform, opacity;
}
.rmhero-bg__img--2{
  opacity: 0;
}
.rmhero-hero.is-swapping .rmhero-bg__img{
  transition: opacity 900ms ease, transform 900ms ease;
}

/* Overlay using mask so overlay color remains editable */
.rmhero-overlay{
  position:absolute;
  inset:0;
  z-index: 2;
  background: var(--rmhero-overlay);
  opacity: 1;
  /* alpha gradient through masking */
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,var(--rmhero-a1)) 0%,
    rgba(0,0,0,var(--rmhero-a2)) var(--rmhero-overlay-to),
    rgba(0,0,0,var(--rmhero-a3)) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0,0,0,var(--rmhero-a1)) 0%,
    rgba(0,0,0,var(--rmhero-a2)) var(--rmhero-overlay-to),
    rgba(0,0,0,var(--rmhero-a3)) 100%
  );
}

/* Inner content */
.rmhero-hero__inner{
  position: relative;
  z-index: 5;
  width: 100%;
}
.rmhero-container{
  max-width: 1280px;
  margin: 0 auto;
}
.rmhero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* Left */
.rmhero-left{
  max-width: 720px;
}

.rmhero-badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--rmhero-accent);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  margin-bottom: 26px;
}

.rmhero-ping{
  position: relative;
  display:inline-flex;
  width: 10px;
  height: 10px;
}
.rmhero-ping__a{
  position:absolute;
  inset:0;
  border-radius:999px;
  background: var(--rmhero-accent);
  opacity: .55;
  animation: rmhero-ping 1.4s ease-out infinite;
}
.rmhero-ping__b{
  position:absolute;
  inset:0;
  border-radius:999px;
  background: var(--rmhero-accent);
}

@keyframes rmhero-ping{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(2.6); opacity: 0; }
}

.rmhero-h1{
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 22px 0;
  text-shadow: 0 18px 36px rgba(0,0,0,.55);
  font-size: clamp(34px, 3.4vw + 18px, 72px);
}
.rmhero-accent{
  color: var(--rmhero-accent);
}

.rmhero-desc{
  margin: 0 0 28px 0;
  max-width: 620px;
  font-size: clamp(16px, 0.7vw + 14px, 20px);
  line-height: 1.75;
  color: rgba(226,232,240,0.92);
}

/* Social proof */
.rmhero-social{
  display:flex;
  align-items:flex-start;
  gap: 18px;
}
.rmhero-avatars{
  display:flex;
  align-items:center;
}
.rmhero-avatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 4px solid rgba(15,23,42,1);
  object-fit: cover;
  background: rgba(255,255,255,.08);
  margin-left: -12px;
}
.rmhero-avatar:first-child{ margin-left: 0; }
.rmhero-avatar--plus{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 13px;
  color: #0f172a;
  background: var(--rmhero-accent);
}

.rmhero-rating__title{
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
}
.rmhero-rating__sub{
  font-size: 12px;
  color: rgba(148,163,184,.9);
}
.rmhero-stars{
  color: var(--rmhero-accent);
  font-size: 14px;
  line-height: 1;
  margin-bottom: 6px;
}
.rmhero-star{ margin-right: 2px; }

/* Right card */
.rmhero-right{
  width: 100%;
  max-width: 620px;
}
.rmhero-card{
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 20px 22px;
  border-top: 8px solid var(--rmhero-accent);
  box-shadow: 0 32px 64px -16px rgba(0,0,0,0.55);
  position: relative;
}
.rmhero-card__head{ margin-bottom: 24px; }
.rmhero-card__title{
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px 0;
  color: #0f172a;
}
.rmhero-card__desc{
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
}

.rmhero-success{
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: #166534;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
}

/* Form */
.rmhero-form{ display: grid; gap: 18px; }
.rmhero-field{ display:grid; gap: 8px; }
.rmhero-label{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #0f172a;
}

.rmhero-inputwrap{ position: relative; }
.rmhero-inputwrap--icon .rmhero-input{ padding-left: 46px; }
.rmhero-icon{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  font-size: 18px;
}

.rmhero-input{
  width: 100%;
  min-height: var(--rmhero-field-h);
  padding: 10px 14px;
  border-radius: var(--rmhero-field-radius);
  border: 1px solid var(--rmhero-field-border);
  background: var(--rmhero-field-bg);
  color: #0f172a;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.rmhero-input:hover{
  border-color: #c3cfdf;
  background: #ffffff;
}
.rmhero-input:focus{
  border-color: var(--rmhero-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rmhero-focus) 30%, transparent);
  background: #fff;
  transform: translateY(-1px);
}

.rmhero-row2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.rmhero-btn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--rmhero-field-radius);
  border: 0;
  cursor: pointer;
  background: var(--rmhero-accent);
  color: #0f172a;
  font-weight: 900;
  font-size: 16px;
  transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  box-shadow: 0 18px 36px rgba(242,208,13,0.22);
}
.rmhero-btn:hover{
  transform: translateY(-1px);
  background: #0f172a;
  color: #fff;
}
.rmhero-btn:hover .rmhero-arrow{ transform: translateX(4px); }
.rmhero-arrow{
  transition: transform .25s ease;
  font-size: 18px;
}

/* foot */
.rmhero-card__foot{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 22px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(226,232,240,.75);
  opacity: .8;
}
.rmhero-note{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
}
.rmhero-brand{
  text-align:center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
}
.rmhero-brand a{
  text-decoration: none;
  color: rgba(100,116,139,.95);
}
.rmhero-brand a:hover{ color: #0f172a; }

/* Honeypot hidden */
.rmhero-hp{
  position:absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Background zoom animation */
.rmhero-hero.is-zoom .rmhero-bg__img{
  animation: rmhero-zoom 8s ease-in-out infinite alternate;
}
@keyframes rmhero-zoom{
  0%{ transform: scale(1.05); }
  100%{ transform: scale(1.12); }
}

/* Desktop layout */
@media (min-width: 1024px){
  .rmhero-grid{
    grid-template-columns: 1.08fr 0.92fr;
    gap: 72px;
  }
  .rmhero-right{
    justify-self: end;
  }
  .rmhero-row2{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* Shortcode-based form inside hero card */
.rmhero-cf7 [data-ptv-form] .ptv-sf-form{
  display: grid;
  gap: 12px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-label{
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-input{
  width: 100%;
  min-height: 32px;
  padding: 3px 5px;
  border-radius: var(--rmhero-field-radius);
  border: 1px solid var(--rmhero-field-border);
  background: var(--rmhero-field-bg);
  color: #0f172a;
  margin-top: 4px;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-input:hover{
  border-color: #c3cfdf;
  background: #fff;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-input:focus{
  border-color: var(--rmhero-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rmhero-focus) 30%, transparent);
  background: #fff;
}

.rmhero-cf7 [data-ptv-form] input[type="file"].ptv-sf-input{
  padding: 6px 8px;
  min-height: 40px;
  line-height: 1.25;
  cursor: pointer;
}

.rmhero-cf7 [data-ptv-form] input[type="file"].ptv-sf-input::file-selector-button{
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.rmhero-cf7 [data-ptv-form] input[type="file"].ptv-sf-input:hover::file-selector-button{
  background: #f8fafc;
  border-color: #b8c3d4;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-upload-note{
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-upload-meta{
  grid-column: 1 / -1;
  margin-top: -2px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rmhero-cf7 [data-ptv-form] textarea.ptv-sf-input{
  min-height: 84px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-fieldset,
.rmhero-cf7 [data-ptv-form] .ptv-sf-notice{
  grid-column: 1 / -1;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-fieldset{
  padding: 8px 10px;
  border-radius: 10px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-fieldset legend{
  font-size: 12px;
  margin-bottom: 2px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-choice-fieldset{
  gap: 10px 12px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-choice span{
  min-height: 30px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.25;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-terms{
  margin-top: 2px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-terms__check{
  font-size: 13px;
  gap: 8px;
  line-height: 1.4;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-submit{
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border-radius: var(--rmhero-field-radius);
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-other-field{
  margin-top: -2px;
  grid-column: 1 / -1;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-label:has(input[name="email"]),
.rmhero-cf7 [data-ptv-form] .ptv-sf-label:has(input[name="preferred_location"]),
.rmhero-cf7 [data-ptv-form] .ptv-sf-label:has(textarea){
  grid-column: 1 / -1;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-label:has(input[name="preferred_datetime"]){
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 800;
}

.rmhero-cf7 [data-ptv-form="property_management"] .ptv-sf-label:has(input[name="email"]),
.rmhero-cf7 [data-ptv-form="interior_services"] .ptv-sf-label:has(input[name="email"]){
  grid-column: auto;
}

.rmhero-cf7 [data-ptv-form="property_management"] textarea[name="additional_requirements"].ptv-sf-input,
.rmhero-cf7 [data-ptv-form="interior_services"] textarea[name="additional_requirements"].ptv-sf-input{
  min-height: 44px !important;
  height: 44px !important;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-trust{
  display: none;
}

/* RedMinds contact/support shortcode forms inside hero card */
.rmhero-cf7 .redminds-ticket-form-wrap,
.rmhero-cf7 .myspacee-ticket-form-wrap{
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rmhero-cf7 .redminds-ticket-title,
.rmhero-cf7 .myspacee-ticket-title{
  display: none;
}

.rmhero-cf7 .redminds-ticket-desc,
.rmhero-cf7 .myspacee-ticket-desc{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
}

.rmhero-cf7 .redminds-contact-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.rmhero-cf7 .redminds-contact-form > p{
  margin: 0 !important;
}

.rmhero-cf7 .redminds-contact-form > p:nth-last-of-type(2),
.rmhero-cf7 .redminds-contact-form > p:last-of-type{
  grid-column: 1 / -1;
}

.rmhero-cf7 .redminds-contact-form label{
  display: block;
  margin-bottom: 3px !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.rmhero-cf7 .redminds-contact-form input,
.rmhero-cf7 .redminds-contact-form select,
.rmhero-cf7 .redminds-contact-form textarea{
  width: 100%;
  min-height: 32px;
  padding: 3px 5px !important;
  border: 1px solid var(--rmhero-field-border);
  border-radius: var(--rmhero-field-radius);
  background: var(--rmhero-field-bg);
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
  font-size: 14px;
  line-height: 1.3;
}

.rmhero-cf7 .redminds-contact-form input:hover,
.rmhero-cf7 .redminds-contact-form select:hover,
.rmhero-cf7 .redminds-contact-form textarea:hover{
  border-color: #c3cfdf;
  background: #fff;
}

.rmhero-cf7 .redminds-contact-form input:focus,
.rmhero-cf7 .redminds-contact-form select:focus,
.rmhero-cf7 .redminds-contact-form textarea:focus{
  border-color: var(--rmhero-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rmhero-focus) 30%, transparent);
  background: #fff;
  outline: none;
}

.rmhero-cf7 .redminds-contact-form textarea{
  min-height: 72px;
}

.rmhero-cf7 .redminds-contact-form button{
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--rmhero-field-radius);
}

/* Neutralize inherited large spacing from global form styles inside hero */
.rmhero-cf7 .redminds-ticket-form,
.rmhero-cf7 .myspacee-ticket-form{
  gap: 12px 14px !important;
}

.rmhero-cf7 .redminds-ticket-form p,
.rmhero-cf7 .myspacee-ticket-form p{
  margin: 0 !important;
}

/* Property Management hero: remove extra top gap above first row */
.rmhero-cf7 [data-ptv-form="property_management"]{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.rmhero-cf7 [data-ptv-form="property_management"] .ptv-sf-form{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.rmhero-cf7 [data-ptv-form="property_management"] .ptv-sf-grid{
  margin-top: 0 !important;
}

.rmhero-cf7 [data-ptv-form="property_management"] .ptv-sf-grid > .ptv-sf-label{
  margin-top: 0 !important;
}

/* Apply card offset only when Property Management form is rendered */
.rmhero-right:has(.rmhero-cf7 [data-ptv-form="property_management"]) .rmhero-card{
  margin-top: -70px !important;
}

/* Service-page hero cleanup: remove ratings + top title blocks */
.rmhero-social,
.rmhero-rating,
.rmhero-card__head{
  display: none !important;
}

.rmhero-badge{
  display: none !important;
}

/* Standardize hero title/description across all service pages (match Buy Property) */
.rmhero-hero.rmhero-has-form .rmhero-h1{
  font-size: 42px !important;
  line-height: 1.05 !important;
  margin: 0 0 22px 0 !important;
}

/* Logo-palette animated heading color treatment */
.rmhero-h1{
  color: #ffffff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .rmhero-h1{
    background-image: linear-gradient(
      110deg,
      #ffffff 0%,
      #f7c600 33%,
      #ef4444 66%,
      #ffffff 100%
    );
    background-size: 200% auto;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rmhero-logo-colorflow 5s linear infinite;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.16);
  }
}

@keyframes rmhero-logo-colorflow{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 200% 50%; }
}

.rmhero-hero.rmhero-has-form .rmhero-desc{
  font-size: clamp(16px, 0.7vw + 14px, 20px) !important;
  line-height: 1.75 !important;
  max-width: 620px !important;
  margin: 0 0 28px 0 !important;
}

/* Desktop: wider, shorter form heroes with no unnecessary scroll */
@media (min-width: 1024px){
  .rmhero-hero.rmhero-has-form{
    min-height: max(100vh, 720px);
  }

  .rmhero-hero.rmhero-has-form .rmhero-grid{
    grid-template-columns: 0.92fr 1.08fr;
    gap: 32px;
  }

  .rmhero-hero.rmhero-has-form .rmhero-left{
    max-width: 640px;
    display: block;
  }

  .rmhero-hero.rmhero-has-form .rmhero-right{
    max-width: 760px;
    justify-self: end;
  }

  .rmhero-hero.rmhero-has-form .rmhero-card{
    padding: 22px 24px;
  }

  .rmhero-cf7 .redminds-contact-form{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .rmhero-cf7 [data-ptv-form] .ptv-sf-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmhero-cf7 [data-ptv-form] .ptv-sf-choice-fieldset{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmhero-cf7 .redminds-contact-form textarea{
    min-height: 78px;
  }

  .rmhero-cf7 [data-ptv-form="property_management"] .ptv-sf-form{
    gap: 7px;
  }

  .rmhero-cf7 [data-ptv-form="property_management"] .ptv-sf-input{
    min-height: 32px;
    padding: 3px 5px;
  }

  .rmhero-cf7 [data-ptv-form="property_management"] textarea.ptv-sf-input{
    min-height: 68px;
  }
}

@media (max-width: 900px){
  .rmhero-hero{
    --rmhero-field-h: 44px;
  }

  .rmhero-cf7 [data-ptv-form] .ptv-sf-grid{
    grid-template-columns: 1fr;
  }

  .rmhero-cf7 [data-ptv-form] .ptv-sf-choice-fieldset{
    grid-template-columns: 1fr 1fr;
  }

  .rmhero-hero.rmhero-has-form{
    min-height: auto;
  }

  .rmhero-cf7 .redminds-contact-form{
    grid-template-columns: 1fr;
  }
}

/* Small devices tuning */
@media (max-width: 480px){
  .rmhero-avatar{ width: 48px; height: 48px; }
  .rmhero-card{ padding: 22px; }
  .rmhero-card__title{ font-size: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rmhero-ping__a,
  .rmhero-hero.is-zoom .rmhero-bg__img{
    animation: none !important;
  }
  .rmhero-bg__img{ transition: none !important; }
  .rmhero-btn, .rmhero-arrow{ transition: none !important; }
}
