/* =========================================================
   RedMinds Hero Widget (Elementor)
   - Widget-owned responsive layout
   - No page-specific overrides or hidden-content hacks
   ========================================================= */

.rmhero-hero {
  --rmhero-accent: #f7c600;
  --rmhero-overlay: #1f1f1f;
  --rmhero-focus: var(--rmhero-accent);
  --rmhero-label-color: #0f172a;
  --rmhero-field-h: 48px;
  --rmhero-field-radius: 12px;
  --rmhero-field-border: #d7dee8;
  --rmhero-field-bg: #f9fbfd;
  --rmhero-input-text: #0f172a;
  --rmhero-placeholder: #94a3b8;
  --rmhero-btn-bg: var(--rmhero-accent);
  --rmhero-btn-text: #0f172a;
  --rmhero-btn-bg-hover: #0f172a;
  --rmhero-btn-text-hover: #ffffff;
  --rmhero-content-max: 1320px;
  --rmhero-copy-max: 760px;
  --rmhero-card-max: 680px;
  --rmhero-grid-gap: clamp(24px, 3vw, 56px);
  --rmhero-copy-offset-x: 0px;
  --rmhero-copy-offset-y: 0px;
  --rmhero-inner-align: center;
  --rmhero-grid-align: center;
  --rmhero-left-self-align: auto;
  --rmhero-a1: 0.85;
  --rmhero-a2: 0.55;
  --rmhero-a3: 0.05;
  --rmhero-overlay-to: 45%;

  position: relative;
  overflow: clip;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  color: #fff;
  background: #0b1220;
  isolation: isolate;
}

.rmhero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rmhero-bg__img {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.05);
  opacity: 1;
  transition: opacity 900ms ease, transform 900ms ease;
  will-change: transform, opacity;
}

.rmhero-bg__img--2 {
  opacity: 0;
}

.rmhero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--rmhero-overlay);
  opacity: 1;
  -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%
  );
}

.rmhero-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: var(--rmhero-inner-align, center);
  padding: var(--rmhero-inner-y) var(--rmhero-inner-x);
}

.rmhero-container {
  width: min(100%, var(--rmhero-content-max));
  margin: 0 auto;
}

.rmhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--rmhero-grid-gap);
  align-items: var(--rmhero-grid-align, center);
}

.rmhero-left,
.rmhero-right,
.rmhero-copy,
.rmhero-card,
.rmhero-card__body,
.rmhero-cf7 {
  min-width: 0;
}

.rmhero-left {
  max-width: 100%;
  text-align: left;
  align-self: var(--rmhero-left-self-align, auto);
}

.rmhero-copy {
  max-width: var(--rmhero-copy-max);
}

.rmhero-right {
  width: 100%;
}

.rmhero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--rmhero-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rmhero-ping {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
}

.rmhero-ping__a,
.rmhero-ping__b {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--rmhero-accent);
}

.rmhero-ping__a {
  opacity: 0.55;
  animation: rmhero-ping 1.4s ease-out infinite;
}

.rmhero-h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 3.4vw + 18px, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.rmhero-accent {
  color: var(--rmhero-accent);
}

.rmhero-desc {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: clamp(16px, 0.7vw + 14px, 20px);
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.92);
}

.rmhero-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 18px;
}

.rmhero-avatars {
  display: flex;
  align-items: center;
}

.rmhero-avatar {
  width: 56px;
  height: 56px;
  margin-left: -12px;
  border: 4px solid rgba(15, 23, 42, 1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.rmhero-avatar:first-child {
  margin-left: 0;
}

.rmhero-avatar--plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  background: var(--rmhero-accent);
}

.rmhero-stars {
  margin: 0 0 6px;
  color: var(--rmhero-accent);
  font-size: 14px;
  line-height: 1;
}

.rmhero-star {
  margin-right: 2px;
}

.rmhero-rating__title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.rmhero-rating__sub {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}

.rmhero-card {
  width: 100%;
  max-width: var(--rmhero-card-max);
  margin-left: auto;
  padding: clamp(18px, 2vw, 28px);
  border-top: 8px solid var(--rmhero-accent);
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.55);
}

.rmhero-card__head {
  margin-bottom: 20px;
}

.rmhero-card__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
}

.rmhero-card__desc {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: #64748b;
}

.rmhero-card__body {
  display: block;
}

.rmhero-success {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.rmhero-form,
.rmhero-cf7 .redminds-ticket-form,
.rmhero-cf7 .myspacee-ticket-form {
  display: grid;
  gap: 16px;
}

.rmhero-field {
  display: grid;
  gap: 8px;
}

.rmhero-label {
  color: var(--rmhero-label-color);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rmhero-input,
.rmhero-cf7 input,
.rmhero-cf7 select,
.rmhero-cf7 textarea,
.rmhero-cf7 .ptv-sf-input {
  width: 100%;
  min-height: var(--rmhero-field-h);
  padding: 10px 14px;
  border: 1px solid var(--rmhero-field-border);
  border-radius: var(--rmhero-field-radius);
  background: var(--rmhero-field-bg);
  color: var(--rmhero-input-text);
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rmhero-input::placeholder,
.rmhero-cf7 input::placeholder,
.rmhero-cf7 textarea::placeholder,
.rmhero-cf7 .ptv-sf-input::placeholder {
  color: var(--rmhero-placeholder);
}

.rmhero-input:hover,
.rmhero-cf7 input:hover,
.rmhero-cf7 select:hover,
.rmhero-cf7 textarea:hover,
.rmhero-cf7 .ptv-sf-input:hover {
  border-color: #c3cfdf;
  background: #fff;
}

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

.rmhero-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.rmhero-btn,
.rmhero-cf7 button,
.rmhero-cf7 .ptv-sf-submit,
.rmhero-cf7 input[type="submit"],
.rmhero-cf7 .wpcf7-submit {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--rmhero-field-radius);
  background: var(--rmhero-btn-bg) !important;
  color: var(--rmhero-btn-text) !important;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 18px 36px rgba(242, 208, 13, 0.22);
}

.rmhero-btn:hover,
.rmhero-cf7 button:hover,
.rmhero-cf7 .ptv-sf-submit:hover,
.rmhero-cf7 input[type="submit"]:hover,
.rmhero-cf7 .wpcf7-submit:hover {
  transform: translateY(-1px);
  background: var(--rmhero-btn-bg-hover) !important;
  color: var(--rmhero-btn-text-hover) !important;
}

.rmhero-arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.rmhero-btn:hover .rmhero-arrow {
  transform: translateX(4px);
}

.rmhero-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  opacity: 0.8;
}

.rmhero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rmhero-brand {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.rmhero-brand a {
  color: rgba(100, 116, 139, 0.95);
  text-decoration: none;
}

.rmhero-brand a:hover {
  color: #0f172a;
}

.rmhero-hp {
  position: absolute !important;
  top: auto !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.rmhero-cf7 .redminds-ticket-form-wrap,
.rmhero-cf7 .myspacee-ticket-form-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 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;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

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

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

.rmhero-cf7 .redminds-contact-form label,
.rmhero-cf7 .redminds-ticket-form label,
.rmhero-cf7 .myspacee-ticket-form label {
  display: block;
  margin-bottom: 6px !important;
  color: var(--rmhero-label-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rmhero-cf7 .redminds-contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-form {
  display: grid;
  gap: 14px;
}

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

.rmhero-cf7 [data-ptv-form] .ptv-sf-label {
  display: block;
  margin: 0;
  color: var(--rmhero-label-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

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

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

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

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

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

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

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

.rmhero-cf7 [data-ptv-form] input[type="file"].ptv-sf-input::file-selector-button {
  margin-right: 10px;
  padding: 8px 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 0.2s ease, border-color 0.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;
  color: #64748b;
  font-size: 11px;
}

.rmhero-cf7 [data-ptv-form] .ptv-sf-upload-meta {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

.rmhero-hero.is-zoom .rmhero-bg__img {
  animation: rmhero-zoom 8s ease-in-out infinite alternate;
}

@keyframes rmhero-ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes rmhero-zoom {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.12);
  }
}

@media (min-width: 820px) {
  .rmhero-cf7 .redminds-contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .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 [data-ptv-form] .ptv-sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1180px) {
  .rmhero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
  }

  .rmhero-right {
    display: flex;
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .rmhero-hero.rmhero-has-form {
    --rmhero-copy-max: 640px;
    --rmhero-card-max: 720px;
    --rmhero-inner-align: flex-start;
    --rmhero-grid-align: flex-start;
    --rmhero-left-self-align: flex-start;
  }

  .rmhero-grid {
    gap: clamp(36px, 4vw, 64px);
  }
}

@media (max-width: 1179px) {
  .rmhero-hero {
    min-height: auto;
  }

  .rmhero-hero__inner {
    align-items: flex-start;
  }

  .rmhero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
  }

  .rmhero-left,
  .rmhero-copy,
  .rmhero-right {
    max-width: 100%;
  }

  .rmhero-right {
    display: block;
  }

  .rmhero-card {
    width: 100%;
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .rmhero-hero {
    --rmhero-inner-y: clamp(48px, 7vw, 88px);
    --rmhero-inner-x: clamp(18px, 3vw, 28px);
    --rmhero-grid-gap: clamp(22px, 4vw, 34px);
  }

  .rmhero-container,
  .rmhero-copy,
  .rmhero-card {
    width: 100%;
    max-width: 100%;
  }

  .rmhero-desc {
    max-width: none;
  }

  .rmhero-card {
    padding: clamp(18px, 2.8vw, 24px);
  }
}

@media (max-width: 767px) {
  .rmhero-hero {
    --rmhero-field-h: 46px;
    --rmhero-inner-y: clamp(40px, 8vw, 72px);
    --rmhero-inner-x: 16px;
    --rmhero-grid-gap: 22px;
  }

  .rmhero-h1 {
    font-size: clamp(30px, 8vw, 46px);
  }

  .rmhero-desc {
    font-size: 16px;
    line-height: 1.65;
  }

  .rmhero-social {
    align-items: flex-start;
  }

  .rmhero-card__head {
    margin-bottom: 16px;
  }

  .rmhero-card {
    padding: 18px 16px;
  }

  .rmhero-card__foot {
    justify-content: flex-start;
    gap: 10px 16px;
  }
}

@media (max-width: 479px) {
  .rmhero-hero {
    --rmhero-inner-y: 34px;
    --rmhero-grid-gap: 18px;
  }

  .rmhero-avatar {
    width: 48px;
    height: 48px;
  }

  .rmhero-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .rmhero-social {
    flex-direction: column;
    align-items: flex-start;
  }

  .rmhero-card {
    padding: 16px 14px;
  }

  .rmhero-card__title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rmhero-ping__a,
  .rmhero-hero.is-zoom .rmhero-bg__img {
    animation: none !important;
  }

  .rmhero-bg__img,
  .rmhero-btn,
  .rmhero-arrow {
    transition: none !important;
  }
}
