

:root {
  --bg: #ffffff;
  --txt: #0D1B2A;
  --modal: #0E1B29;
  --error: #dc3232;
  --font:  "calluna",serif;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
/* Chrome / Safari / Edge */
#form form input:-webkit-autofill,
#form form input:-webkit-autofill:hover,
#form form input:-webkit-autofill:focus,
#form form input:-webkit-autofill:active,
#form form textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;  
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px var(--modal) inset;
  box-shadow: 0 0 0 1000px var(--modal) inset;
  transition: background-color 5000s ease-in-out 0s;
  font-family: var(--font);
  font-size: 16px;
   color: #fff !important;
}

/* Firefox (standard selector) */
#form form input:autofill,
#form form textarea:autofill {
  box-shadow: 0 0 0 1000px var(--modal) inset;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}
html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-weight: 400;
}

header {
  display: flex;
  align-items: flex-end;
  height: 58px;
}

header .container {
  justify-content: end;
}


.contact-btn {
  --ease: cubic-bezier(.22, 1, .36, 1); /* smooth ease-out */
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 11%;
  color: var(--txt);
  text-align: right;
  text-transform: uppercase;
  cursor: pointer;
  padding-right: 20px;
  /* room for the underline, cancelled out so layout height is unchanged */
  padding-bottom: 6px;
  margin-bottom: -6px;
  font-size: 26px;
}
 
/* icon (transform-only animation = GPU smooth) */
.contact-btn::before {
  content: "";
  position: absolute;
  right: 0;
      top: calc(50% - 5px);
    width: 11px;
    height: 11px;
    margin-top: -4.5px;
  background: url(/wp-content/themes/telion/assets/image/contact-icon.svg) no-repeat center / contain;
  transform: scale(1);
  transform-origin: right center;
  transition: transform .5s var(--ease);
  will-change: transform;
}
 
/* underline (inside the box, so no overflow/scroll) */
.contact-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 20px);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease);
  will-change: transform;
}
 
.contact-btn:hover,
.contact-btn:focus-visible {
  outline: none;
}
 
.contact-btn:hover::before,
.contact-btn:focus-visible::before {
  transform: scale(1.2); /* 10px -> 12px */
}
 
.contact-btn:hover::after,
.contact-btn:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
 
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 136px);
}

.container {
  display: flex;
  align-items: center;
  margin: 0 auto;
  width: calc(100% - 40px);
  max-width: 1400px;
}

.logo {
  flex: none;
  text-align: center;
}

main .container {
  gap: 136px;
}
header ul{
  list-style: none;
}
.abouttel {
  font-family: var(--font);
  font-size: clamp(20px, 2.125vw, 34px);
  line-height: 1;
  color: var(--txt);
  font-weight: 300;
}

footer {
  text-align: center;
  color: #fff;
  padding: 18px;
  background-color: #0D1B2A;
  height: 78px; font-variant-numeric: lining-nums; 
}
footer .container{
  display: flex;
    align-items: center;
    margin: 0 auto;
    width: calc(100% - 40px);
    max-width: 1400px;
    justify-content: center;
    height: 100%;
}
footer ul {
  list-style: none;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

footer ul li,footer ul li a {
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  position: relative;color:#fff
}
footer ul li a{
  text-decoration: none;
}
footer ul li:not(:last-child) {
  padding-right: 30px;
}

footer ul li:not(:last-child)::after {
  content: "";
  height: 100%;
  width: 1px;
  background-color: #fff;
  position: absolute;
  right: 15px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, .68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.overlay.open {
  display: flex;
  animation: fade .2s ease;
}
.logo {
    flex: 0 0 456px;
  }
.modal {
  background: var(--modal);
  color: var(--modal-ink);
  width: 926px;
  min-height: 504px;
  max-height: calc(100vh - 40px);
max-height: calc(100dvh - 40px);
  padding: 80px 118px;
  position: relative;
  font-family: var(--font);
  animation: rise .25s ease;
}

.modal h2 {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(32px, 2.5vw, 50px);
  margin-bottom: 64px;
  line-height: 100%;
  text-align: center;
  color:#ffffff
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 0;
  color: var(--modal-ink);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

#form form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0px 20px;
}
#form form .form-group {
  min-width: 0;margin-bottom: 34px;
}

#form form .wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

#form form .form-group input,
#form form .form-group textarea {
  display: block;
   width: 100%;
  background: transparent;
  border-width: 0 0 1px 0;
  border-style: solid;
  color: #fff !important;
  font-size: 16px;
  border-color: rgba(255, 255, 255, 0.4);padding-bottom: 13px;font-family: var(--font);
  color-scheme: dark; 
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    color: #46b450;
    grid-column: 1 / -1;
    padding: 10px;
    border-width: 1px;font-family: var(--font);
}
#form form .form-group textarea {
  width: 100%;
}

#form form .form-group:has(textarea) {
  grid-column: 1 / -1;
}

#form form textarea {
  min-height: 25px;
}

#form form ::placeholder {
  opacity: 1;
  font-size: 16px;
  text-transform: capitalize;
  color: #fff;font-family: var(--font);
}

#form form input:focus,
#form form .form-group textarea:focus {
  outline: none;
}

/* validation */
#form form .wpcf7-not-valid {
  border-color: var(--error);
}

#form form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--error);
  font-family: var(--font);
}

/* last row: captcha + submit */
#form form .form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0px;
  gap: 20px;
  flex-wrap: wrap;
}

#form form .captcha {
    min-height: 55px;
    display: flex;
    align-items: center;    
}

#form form .form-footer .submit {
  width: auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
  border: 1px solid #fff;
  padding: 17px 90px;min-height: 55px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}

#form form .form-footer .submit:hover {
  background: #fff;
  color: var(--txt);
}
.wpcf7 form.spam .wpcf7-response-output{
   width: 100%;
    grid-column: 1 / -1;color:#ffb900;
        margin: 20px 0px 0;
    padding: 10px 10px;
    border: 1px solid #ffb900;font-family: var(--font);
  }
.wpcf7 form.invalid .wpcf7-response-output{
      width: 100%;
    grid-column: 1 / -1;color:#ffb900;
        margin: 20px 0px 0;
    padding: 10px 10px;
    border: 1px solid #ffb900;font-family: var(--font);
  }
@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

@media (max-width: 1440px) {
  .container {
    max-width: 1280px;
  }
  main .container{gap:100px}
}

@media (max-width: 1368px) {
  .contact-btn{font-size: 20px;}
  .container {
    max-width: 1130px;
  }
  .logo {
    flex: 0 1 50%;
  }

  .logo img {
    display: block;
    max-width: 100%;
    height: auto;
  }
}
/* ---------- short screens (desktop / tablet landscape) ---------- */
@media (max-height: 720px) and (min-width: 821px) {
  .modal {
    min-height: 0;                    /* 504px force nahi karna */
    padding: 48px 118px;              /* 80px se kam */
    max-height: calc(100dvh - 40px);
    overflow-y: auto;                 /* sirf emergency ke liye */
  }

  .modal h2 {
    margin-bottom: 32px;              /* 64px se kam */
  }

  #form form .form-group {
    margin-bottom: 22px;              /* 34px se kam */
  }
}
@media (max-width: 1100px) {
  main .container {
    gap: 72px;
  }
}

/* ---------- tablet landscape ---------- */
@media (max-width: 1024px) { 

  main .container {
    gap: 56px;
  }

  .logo {
    flex: 0 1 42%;
  }

  .abouttel {
    font-size: clamp(20px, 2.6vw, 26px);
    line-height: 1.25;
  }

  .modal {
    width: 100%;
    max-width: 926px;
    padding: 64px 56px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
  }

  .modal h2 {
    margin-bottom: 44px;
  }
}

/* ---------- tablet portrait ---------- */
@media (max-width: 820px) {
  .contact-btn{
  font-size: 16px;
  padding-bottom:6px;
}
.contact-btn::before {
       top: calc(50% - 4.5px);
    width: 10px;
    height: 10px;
    margin-top: -4px;
}
  body {
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  header {
    height: auto;
    padding: 20px 0;
  }

  main {
    height: auto;
    padding: 40px 0;
  }

  main .container {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .logo {
    width: min(320px, 70%);
  }

  .abouttel {
    max-width: 560px;
    font-size: clamp(20px, 3.4vw, 24px);
  }

  footer {
    height: auto;
    padding: 24px 20px;
  }

  footer ul {
    flex-direction: column;
    gap: 10px;
    height: auto;
  }

  footer ul li {
    font-size: 14px;
    line-height: 1.4;
  }

  footer ul li:not(:last-child) {
    padding-right: 0;
  }

  footer ul li:not(:last-child)::after {
    display: none;
  }

  .modal {
    padding: 56px 36px 40px;
    height: auto;
  }

  .modal h2 {
    margin-bottom: 36px;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  header {
    padding: 20px 0;
  }

  .overlay {
    padding: 12px;
  }

  .modal {
    padding: 56px 20px 28px;
    max-height: calc(100dvh - 24px);
  }

  .modal h2 {
    font-size: 30px;
    margin-bottom: 28px;
  }

  .close {
    top: 8px;
    right: 8px;
    padding: 8px;
  }

  #form form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #form form .form-group input,
  #form form .form-group textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 16px; /* 16px stops iOS zoom */
  }

  #form form .form-footer {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
    gap: 16px;
  }

  #form form .captcha {
    justify-content: center;
    min-height: 0;
  }

  #form form .form-footer .submit {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
  }
}

/* ---------- very small phones ---------- */
@media (max-width: 400px) {
  .modal {
    padding: 52px 16px 24px;
  }

  #form form .captcha {
    transform: scale(.85);
    transform-origin: center top;
  }
  footer ul li,footer ul li a {font-size: 12px;}
}

/* ---------- short screens (desktop / tablet landscape) ---------- */
@media (max-height: 600px) and (min-width: 821px) {
  .modal {
    height: auto;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overlay.open,
  .modal {
    animation: none;
  }
}