/* ===== KONTAKTILEHE STIIL ===== */

.header {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

html {
  overflow-y: scroll;
}

body {
  position: relative;
  min-height: 100vh;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: #fff;
}

/* Taust koos tumevarjuga */
.background {
  position: absolute;
  inset: 0;
  background: url("/static/images/wp.jpg") center/cover no-repeat;
  z-index: -1;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* ===== CONTACT 2 COLUMN LAYOUT ===== */

.contact-layout{
  display:grid;
  grid-template-columns: 520px 360px;
  gap:40px;
  justify-content: flex-start;
  align-items:stretch;
}

.contact-info{

  gap:28px;
}

.info-row a{
  color:inherit;
  text-decoration:none;
}

.info-row a:hover{
  text-decoration:underline;
}
.company-card{
  flex-grow:1;
}

/* rows */

.info-row strong{
  display:block;
  font-size:0.9rem;
  color:#bbb;
}

.company-card p{
  margin:6px 6px;
}

/* INFO SECTION */

.contact-info{
  justify-content:space-between;
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  gap:52px;
}

/* card */

.info-card{
  position: relative;
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  padding: 20px 22px;
  overflow: hidden;
}

.company-card .info-card{
  margin-top: 22px;
}

/* reverse border */
.info-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:12px;
  padding:2px;

  background:linear-gradient(
    135deg,
    rgba(255,255,255,0.3),
    rgba(255,255,255,0.9)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events:none;
}

/* title */

.info-card h3{
  font-family:Electrolize,sans-serif;
  align-items: center;
  margin-bottom:20px;
  margin-top: auto;
  font-size:1.3rem;
  letter-spacing:0.5px;
}

/* row */

.info-row{
  display:flex;
  gap:15px;
  margin-bottom:18px;
  align-items:flex-start;
}

.info-row span{
  font-size:28px;
  color:#fff;
}

.info-row strong{
  display:block;
  font-size:0.95rem;
  color:#ccc;
}

.info-row p{
  margin:0;
  font-size:1rem;
}

/* layout */

.contact-container{
  gap:60px;
}

.contact-page {
  position: relative;
  min-height: 100vh;
}

/* Keskjoondatud konteiner */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 80px 20px;
}

/* Kontaktivormi kast */
.contact-box {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 40px 50px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(14,165,233,0.15);
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.3)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* CONTACT BOX FADE */
.contact-box {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-box.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Pealkiri */
.contact-box h2 {
  font-family: Electrolize, sans-serif;
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* Vormielemendid */
.contact-box label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-top: 1rem;
  color: #e5e7eb;
}

.contact-box input,
.contact-box textarea,
.contact-box select {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid white;
  border-radius: 6px;
  background: #111;
  color: #eee;
  font-family: "Montserrat", Times, serif;
  font-size: 1.3rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

/* CUSTOM SELECT LOOK */
.contact-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: #111 url("data:image/svg+xml,%3Csvg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 15px center;
  background-size: 18px;

  padding-right: 45px;
  font-size: 1.1rem;
}

.contact-box select {
  cursor: pointer;
  text-align: center;
}

.contact-box input:focus,
.contact-box textarea:focus,
.contact-box select:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 10px rgba(14,165,233,0.4);
}

/* Nupp */
.contact-box button {
  font-family: Montserrat, sans-serif;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: white;
  color: black;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-box button:hover {
  background: white;
  box-shadow: 0 0 15px rgba(14,165,233,0.5);
  transform: translateY(-2px);
}

.flash-message {
  background: rgba(14,165,233,0.2);
  border: 1px solid rgba(14,165,233,0.5);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.5s ease forwards;
}

.flash-message.hide {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

button.sending {
  background: #555;
  opacity: 0.7;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

/* Placeholder color */
.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

.cta-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 24px;
}

.cta-socials a {
  width: 44px;
  height: 44px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-socials a img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-socials a img:hover {
  transform: translateY(-4px) scale(1.05);
}

.footer {
  font-family: Montserrat, sans-serif;
  padding: 2rem;
  text-align: center;
  background: black;
  color: #aaa;
  font-size: 1rem;
}
.footer a { color: darkgray; }

.section-divider-single-blue {
  position: relative;
  height: 2px;
}

.section-divider-single-blue::after {
  content: "";
  position: absolute;
  top: 50%;               /* center vertically in divider space */
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, white, transparent);
  transform: translateY(-50%);
  box-shadow: 0 0 6px white;
}

@keyframes softFlickerBlue {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(14,165,233,0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(14,165,233,0.9);
  }
}

.section-divider-single-blue::after {
  animation: softFlickerBlue 3.5s ease-in-out infinite;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

/* ===== Fade ===== */
.company-card{
  opacity:0;
  transform:translateY(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.company-card.visible{
  opacity:1;
  transform:translateY(0);
}


/* ===== MOBILE CONTACT ===== */
@media (max-width: 768px) {



  .contact-layout{
    grid-template-columns:1fr;
    gap:30px;
  }

  .contact-box{
    order:1;
  }

  .contact-info{
    order:2;
  }

  .contact-container{
    flex-direction:column;
    align-items:center;
  }

  .contact-info{
    max-width:600px;
  align-items: center;
  }

  .info-card {
    max-width:600px;
  }

  .contact-container {
    padding: 50px 15px;
    min-height: auto;
  }

  .contact-box {
    padding: 25px 18px;
    border-radius: 10px;
  }

  .contact-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .contact-box input,
  .contact-box textarea,
  .contact-box select {
    font-size: 1rem;
    padding: 0.65rem;
  }

  .contact-box textarea {
    min-height: 140px;
  }

  .contact-box button {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  /* CAPTCHA väiksemaks */
  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left center;
    margin-top: 10px;
  }

  /* Social ikoonid väiksemaks */
  .cta-socials a img {
    width: 32px;
    height: 32px;
  }

  .cta-socials {
    gap: 10px;
    margin-top: 18px;
  }

  .section-divider-single-blue::after {
    background: white;
  }

  .info-card{
  text-align:center;
}

.info-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  max-width:220px;
  margin:0 auto 18px auto;
  text-align:left;
}

  .footer {
    padding: 1.2rem;
    font-size: 0.60rem;
  }

}


