
/* SRG Forms Suite - polished Typeform-inspired responsive design */
:root {
  --srg-primary: #ef3e38;
  --srg-primary-dark: #d92f2a;
  --srg-navy: #262163;
  --srg-text: #24233a;
  --srg-muted: #6f7180;
  --srg-border: #e5e7ef;
  --srg-soft: #f7f8fc;
  --srg-white: #ffffff;
  --srg-shadow: 0 24px 70px rgba(38, 33, 99, .12);
}

.srg-property-form {
  width: 100%;
  max-width: 760px;
  min-height: 620px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
  color: var(--srg-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.srg-property-form *,
.srg-property-form *::before,
.srg-property-form *::after {
  box-sizing: border-box;
}

.srg-form-inner {
  width: 100%;
  min-height: 620px;
  padding: 56px 64px 34px;
  background: var(--srg-white);
  border: 1px solid rgba(38, 33, 99, .08);
  border-radius: 22px;
  box-shadow: var(--srg-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.srg-form-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--srg-primary), var(--srg-navy));
}

.srg-screen {
  width: 100%;
  flex: 1 0 auto;
  min-height: 470px;
  display: none;
  animation: srgFadeIn .22s ease-out;
}

.srg-screen.srg-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes srgFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.srg-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(239, 62, 56, .09);
  color: var(--srg-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.srg-screen h1 {
  margin: 0 0 20px;
  color: var(--srg-navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.025em;
}

.srg-screen h2 {
  margin: 26px 0 10px;
  color: var(--srg-navy);
  font-size: 21px;
  line-height: 1.3;
}

.srg-screen p {
  max-width: 650px;
  margin: 0 0 15px;
  color: #565867;
  font-size: 16px;
  line-height: 1.7;
}

.srg-screen label {
  display: block;
  margin-bottom: 18px;
  color: var(--srg-navy);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.srg-screen input[type="text"],
.srg-screen input[type="email"],
.srg-screen textarea {
  width: 100%;
  max-width: 650px;
  padding: 17px 2px;
  margin: 0 0 24px;
  border: 0;
  border-bottom: 2px solid #dfe1e9;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--srg-text);
  font-size: 21px;
  line-height: 1.45;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}

.srg-screen textarea {
  min-height: 100px;
}

.srg-screen input::placeholder,
.srg-screen textarea::placeholder {
  color: #a1a3ae;
}

.srg-screen input[type="text"]:focus,
.srg-screen input[type="email"]:focus,
.srg-screen textarea:focus {
  border-bottom-color: var(--srg-primary);
  box-shadow: 0 2px 0 var(--srg-primary);
}

.srg-options {
  width: 100%;
  max-width: 650px;
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
}

.srg-option {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  margin: 0 !important;
  border: 1px solid var(--srg-border);
  border-radius: 12px;
  background: #fff;
  color: var(--srg-text) !important;
  cursor: pointer;
  font-size: 16px !important;
  font-weight: 550 !important;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}

.srg-option:hover {
  border-color: rgba(239, 62, 56, .45);
  background: #fffafa;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(38, 33, 99, .06);
}

.srg-option.selected {
  border-color: var(--srg-primary);
  background: rgba(239, 62, 56, .055);
  box-shadow: 0 0 0 2px rgba(239, 62, 56, .08);
}

.srg-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.srg-key {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--srg-soft);
  color: var(--srg-navy);
  border: 1px solid var(--srg-border);
  font-size: 13px;
  font-weight: 800;
}

.srg-option.selected .srg-key {
  background: var(--srg-primary);
  border-color: var(--srg-primary);
  color: #fff;
}

.srg-help {
  margin: -7px 0 18px !important;
  color: var(--srg-muted) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.srg-btn {
  appearance: none;
  width: fit-content;
  min-width: 132px;
  min-height: 50px;
  padding: 13px 23px;
  border: 0;
  border-radius: 10px;
  background: var(--srg-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(239, 62, 56, .2);
  transition: transform .18s, background .18s, box-shadow .18s;
}

.srg-btn:hover {
  background: var(--srg-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(239, 62, 56, .25);
}

.srg-btn:active {
  transform: translateY(0);
}

.srg-btn span {
  margin-left: 8px;
  opacity: .85;
}

.srg-time {
  margin-top: 14px;
  color: var(--srg-muted);
  font-size: 13px;
}

.srg-footer-nav {
  display: none;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef0f5;
}

.srg-back {
  appearance: none;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--srg-muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  visibility: hidden;
}

.srg-back:hover {
  color: var(--srg-navy);
}

.srg-progress {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f5;
}

.srg-progress span {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--srg-primary), var(--srg-navy));
  transition: width .25s ease;
}

.srg-progress-text {
  min-width: 42px;
  color: var(--srg-muted);
  font-size: 12px;
  text-align: right;
}

.srg-powered {
  display: none;
  margin-top: 12px;
  color: #9a9ca7;
  font-size: 12px;
}

.srg-powered strong {
  color: #777986;
}

.srg-error {
  min-height: 20px;
  margin-top: 10px;
  color: #d92f2a;
  font-size: 13px;
  font-weight: 600;
}

.srg-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(239, 62, 56, .1);
  color: var(--srg-primary);
  font-size: 30px;
  font-weight: 800;
}

.srg-success-icon + h1 {
  margin-bottom: 12px;
}

/* Elementor popup compatibility */
.elementor-popup-modal .srg-property-form {
  max-width: 760px;
  width: min(760px, calc(100vw - 32px));
}

.elementor-popup-modal .srg-form-inner {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

/* Tablet */
@media (max-width: 767px) {
  .srg-property-form {
    width: 100%;
    min-height: 0;
  }

  .srg-form-inner {
    min-height: 590px;
    padding: 42px 28px 25px;
    border-radius: 16px;
  }

  .srg-screen {
    min-height: 450px;
  }

  .srg-screen h1 {
    font-size: 30px;
  }

  .srg-screen label {
    font-size: 25px;
  }

  .srg-screen p {
    font-size: 15px;
    line-height: 1.6;
  }

  .srg-screen input[type="text"],
  .srg-screen input[type="email"],
  .srg-screen textarea {
    font-size: 18px;
  }

  .srg-option {
    min-height: 58px;
    padding: 12px 14px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .elementor-popup-modal .srg-property-form {
    width: calc(100vw - 20px);
  }

  .srg-form-inner {
    min-height: 560px;
    padding: 34px 20px 20px;
    border-radius: 14px;
  }

  .srg-screen {
    min-height: 425px;
  }

  .srg-screen h1 {
    font-size: 27px;
  }

  .srg-screen label {
    font-size: 23px;
  }

  .srg-btn {
    width: 100%;
  }

  .srg-footer-nav {
    gap: 10px;
  }

  .srg-progress-text {
    min-width: 38px;
  }
}
