/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.app {
  width: 100%;
  min-height: 100vh;
}

/* ===== Header ===== */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.header__logo {
  width: 150px;
  max-width: 58vw;
  height: auto;
}

.header__tagline {
  padding-right: 1.25rem;
  font-size: 0.9rem;
  margin: 0;
  display: none;
}

.header a[href*="crm"] {
  font-size: 0.9rem;
  color: #1a2a6c;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border: 2px solid #1a2a6c;
  border-radius: 8px;
  transition: all 0.3s;
  background: white;
  display: inline-block;
  white-space: nowrap;
}

.header a[href*="crm"]:hover {
  background: #1a2a6c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(26, 42, 108, 0.3);
}

/* Success/Error Messages */
.alert-success,
.alert-error {
  max-width: 1400px;
  margin: 1rem auto;
  padding: 1rem 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Form Error Messages */
.main-hero__form .error-message {
  color: #dc3545;
  font-size: 0.875rem;
  display: block;
  margin-top: 5px;
  margin-bottom: 5px;
}

.main-hero__form input:invalid,
.main-hero__form input.error {
  border-color: #dc3545;
}

.main-hero__form input:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

@media (min-width: 901px) {
  .header__logo {
    width: 15vw;
  }
  .header__tagline {
    font-size: 1.32vw;
  }
}

/* ===== Main hero ===== */
.main-hero {
  position: relative;
  width: 100%;
  margin-top: -2.5rem;
  overflow: hidden;
  min-height: 60vh;
}

.main-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  opacity: 0.8;
  display: block;
}

.main-hero__content {
  position: absolute;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 2rem;
  padding: 1.25rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0;
}

.main-hero__text {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  position: relative;
  z-index: 10;
  padding: 1rem;  
}

.main-hero__text-inner {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border-radius: 1rem;
  backdrop-filter: blur(4px);
}

.main-hero__title {
  font-weight: bold;
  line-height: 1.2;
  color: #000;
  margin: 0;
  font-size: 1.5rem;
}

.main-hero__desc {
  display: flex;
  flex-wrap: wrap;
  color: #000;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.main-hero__list {
  font-weight: bold;
  color: #000;
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.6;
}

.main-hero__list li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.main-hero__check {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2316a34a'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.main-hero__form-wrap {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4);
  max-width: 50%;
  flex-shrink: 0;
}

.main-hero__form {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.5rem;
}

.main-hero__form-title {
  font-weight: bold;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  line-height: 1;
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.main-hero__form-title span {
  font-size: 0.875rem;
  padding-top:6px;
}

.main-hero__form-title_new{
    position: absolute;
    top: 103px;
    left: 30%;    
}

/*.main-hero__text-inner2 {*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  z-index: -1;*/
/*  background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.15), rgba(255,255,255,0.05));*/
/*  border-radius: 0rem;*/
/*  backdrop-filter: blur(4px);*/
/*}*/

.main-hero__form-desc {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.main-hero__form input,
.main-hero__form select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1rem;
  width: 100%;
}

.main-hero__form .form-error {
  color: #dc3545;
  font-size: 0.7rem;
  display: block;
  margin-top: -0.2rem;
  margin-bottom: 0.2rem;
  padding-left: 0.25rem;
  line-height: 1.2;
}

.main-hero__form input:invalid:not(:placeholder-shown),
.main-hero__form input.error,
.main-hero__form input.is-invalid {
  border-color: #dc3545;
  border-width: 2px;
}

.main-hero__form input.is-invalid:focus {
  outline-color: #dc3545;
  outline-width: 2px;
}

.main-hero__form input:valid:not(:placeholder-shown):not([value=""]) {
  border-color: #28a745;
}

.main-hero__form input::placeholder {
  color: #666;
}

.main-hero__submit {
  background: #b91c1c;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.main-hero__submit:hover {
  background: #1f2937;
}

.main-hero__form-note {
  font-size: 0.85rem;
  text-align: center;
  margin: 0.75rem 0 0;
}

/* Mobile First - Responsive Breakpoints */
/* Extra small devices (phones, 320px and up) */
@media (max-width: 480px) {
  .header {
    padding: 0.5rem;
  }

  .header__logo {
    width: 100px;
    max-width: 35vw;
  }

  .main-hero__content {
    padding: 0.75rem 0.5rem;
  }

  .main-hero__text {
    padding: 0.75rem 0.5rem;
  }

  .main-hero__form {
    padding: 1rem;
  }

  .main-hero__title {
    font-size: 1.25rem;
  }

  .main-hero__desc {
    font-size: 0.85rem;
  }

  .main-hero__list {
    font-size: 0.8rem;
  }
}

/* Small devices (tablets, 768px and down) */
@media (max-width: 768px) {
  .header {
    padding: 0.5rem 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header__logo {
    width: 227px;
    min-width: 100px;
    max-width: 70vw;
  }

  .header__tagline {
    display: none;
  }

  .header a[href*="crm"] {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
  }

  .main-hero {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .main-hero__bg {
    height: auto;
    min-height: 50vh;
  }

  .main-hero {
    position: relative;
    min-height: auto;
    padding-bottom: 2rem;
    overflow: visible;
  }

  .main-hero__bg {
    height: auto;
    min-height: 60vh;
    object-fit: cover;
  }

  .main-hero__content {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 0.75rem;
    flex-direction: column-reverse;
    align-items: stretch;
    max-height: none;
    overflow-y: visible;
    max-width: 100%;
  }

  .main-hero__text {
    width: 100%;
    order: 1;
    margin-bottom: 1rem;
    padding: 1rem 0.75rem;
  }

  .main-hero__title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .main-hero__desc {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    line-height: 1.5;
  }

  .main-hero__list {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    line-height: 1.6;
  }

  .main-hero__form-wrap {
    width: 100%;
    max-width: 100%;
    order: 2;
    margin-top: 1rem;
  }

  .main-hero__form {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .main-hero__form-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
      .main-hero__form-title_new {
        margin-bottom: 0.5rem;
        position: absolute;
        top: 84px;
        text-align: center;
        left: 1%;
        display: flex;
    flex-direction: column;
    gap: 14px;
    }
          .main-hero__form-title_new h3{
              margin:0 auto;
              font-size:25px!important;
          }
          .main-hero__form-title_new h4{
            margin:0 auto;
             
          }


  .main-hero__form-title span {
    font-size: 0.85rem;
    padding-top:6px;
  }

  .main-hero__form-desc {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .main-hero__form input,
  .main-hero__form select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .main-hero__submit {
    font-size: 1rem;
    padding: 1rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .main-hero__form-note {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  .header{
      
    display: flex;
    flex-direction: column;
    gap: 1;

  }
  .header__tagline{
      display:block;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-hero__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .main-hero__text {
    width: 45%;
  }

  .main-hero__form-wrap {
    width: 50%;
    max-width: 50%;
  }
  
  .header {
    padding: 0;
    flex-wrap: nowrap;
  }
  .header__tagline {
    display: block;
    padding-right: 1.25rem;
    font-size: 0.9rem;
  }
 
}

@media (min-width: 1025px) {
  .main-hero__content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .main-hero__text {
    width: 50%;
  }

  .main-hero__form-wrap {
    width: 50%;
    max-width: 50%;
  }

  .header {
    padding: 0;
    flex-wrap: nowrap;
  }

  .header__logo {
    width: 20vw;
    max-width: none;
    min-width: auto;
    padding: 0;
  }

  /*.header {*/
  /*  padding: 1rem 1.25rem;*/
  /*}*/

  /*.header__logo {*/
  /*  width: 68vh;*/
    /*max-width: 200px;*/
  /*}*/

  .header__tagline {
    display: block;
    padding-right: 1.25rem;
    font-size: 0.9rem;
  }

  .header a[href*="crm"] {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
  }

  .main-hero__title {
    font-size: 2rem;
  }

  .main-hero__desc {
    font-size: 1rem;
  }

  .main-hero__list {
    font-size: 0.9rem;
  }
}

/* Hide the floating hero title on larger screens (>769px) */
@media (max-width: 769px) {
.main-hero__bg-wrap .main-hero__form-title_new {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 30 !important;
  padding: 1rem 1.25rem !important;
  border-radius: 0.9rem !important;
  background: rgba(255, 255, 255, 0.64) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  max-width: 920px !important;
  width: calc(100% - 4rem) !important;
  text-align: center !important;
}
}




/* ===== Info section ===== */
.info {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
}

@media (min-width: 769px) {
  .info {
    padding: 4rem 2rem;
  }
}

.info__img {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to top, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 85%, transparent 100%);
  mask-composite: intersect;
}

.info__img--mobile {
  display: block;
}

.info__img--desktop {
  display: none;
}

@media (min-width: 501px) {
  .info__img--mobile {
    display: none;
  }
  .info__img--desktop {
    display: block;
  }
}

.info__content {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 1rem;
  gap: 0.5rem;
}

@media (min-width: 445px) {
  .info__content {
    padding: 0 1rem 1rem;
  }
}

@media (min-width: 641px) {
  .info__content {
    gap: 1rem;
  }
}

@media (min-width: 901px) {
  .info__content {
    gap: 1.25rem;
  }
}

.info__title {
  padding-top: 1rem;
  font-weight: bold;
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 769px) {
  .info__title {
    font-size: 2rem;
  }
}

@media (min-width: 901px) {
  .info__title {
    font-size: 2rem;
    padding-top: 2rem;
  }
}

.info__cards {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1.5rem;
  padding: 0 0.5rem;
}

@media (min-width: 769px) {
  .info__cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .info__card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
  }
}

.info__card {
  width: 100%;
  background: #fff;
  overflow: hidden;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem;
}

.info__card-img {
  width: 100%;
  border-radius: 15%;
  height: auto;
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent), linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent), linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-composite: intersect;
}

.info__card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-top: 0.25rem;
}

.info__card-title {
  font-weight: bold;
  margin: 0;
  font-size: 1.1rem;
}

.info__card-text {
  width: 80%;
  text-align: center;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (min-width: 769px) {
  .info__card-title {
    font-size: 1.3rem;
  }
  
  .info__card-text {
    font-size: 1rem;
  }
}

/* ===== Footer ===== */
.footer {
  width: 100%;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 769px) {
  .footer {
    padding: 2rem 1.25rem;
  }
}

.footer__text {
  width: 100%;
  text-align: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
  margin: 0;
}

/* Ensure hero title blur/backdrop works and isn't overridden */
.main-hero__bg-wrap {
  position: relative;
}

.main-hero__bg-wrap .main-hero__form-title_new {
  /*position: block !important;*/
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 30 !important;
  /*padding: 1rem 1.25rem !important;*/
  /*border-radius: 0.9rem !important;*/
  /*background: rgba(255, 255, 255, 0.64) !important;*/
  /*-webkit-backdrop-filter: blur(8px) !important;*/
  /*backdrop-filter: blur(8px) !important;*/
  /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;*/
  /*max-width: 920px !important;*/
  /*width: calc(100% - 4rem) !important;*/
  text-align: center !important;
}

/* Smaller screens: keep centered and slightly higher */
@media (max-width: 768px) {
  .main-hero .main-hero__form-title_new {
    top: 46% !important;
    transform: translate(-50%, -46%) !important;
    width: 94% !important;
    padding: 0.85rem 1rem !important;
  }
}
