/* =============================================
   CONTACT PAGE — Dr. Yiftach Yanai
   Overlay box layout: photo top, pink bottom, white box spanning both
   ============================================= */

/* Header always dark + kill canvas padding */
.site-header {
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(10px);
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Kill canvas template forced padding on wrapper */
.ct-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Fix header height — kill any extra top space from canvas */
.header-inner {
  padding-top: 0 !important;
}

/* ===================== WRAPPER ===================== */
.ct-wrapper {
  position: relative;
}

/* Top background — photo */
.ct-bg-photo {
  width: 100%;
  height: 640px;
  overflow: hidden;
}

.ct-bg-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Bottom background — pink */
.ct-bg-pink {
  width: 100%;
  height: 520px;
  background: #E29191;
}

/* ===================== FLOATING WHITE BOX ===================== */
.ct-box {
  position: absolute;
  top: 160px;
  right: 8%;
  width: 54%;
  max-width: 620px;
  min-width: 400px;
  background: #fff;
  z-index: 10;
  padding: 56px 48px;
  direction: rtl;
  text-align: right;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

/* ===================== INFO AREA (upper part of box) ===================== */
.ct-box__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 900;
  color: #E8556D;
  margin-bottom: 14px;
  line-height: 1.1;
}

.ct-box__desc {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 32px;
}

/* Action buttons */
.ct-box__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.ct-box__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid #333;
  border-radius: 50px;
  color: #333;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.ct-box__action-btn:hover {
  background: #333;
  color: #fff;
}

.ct-box__action-btn:hover .ct-box__action-icon {
  filter: brightness(0) invert(1);
}

.ct-box__action-icon {
  width: 16px;
  height: 16px;
  transition: filter 0.2s;
  filter: brightness(0);
}

/* Branches */
.ct-box__branches-title {
  font-family: 'Heebo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}

.ct-box__branches {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.ct-box__branch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.ct-box__branch strong {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}

/* ===================== FORM AREA (lower part of box) ===================== */
.ct-box__form-title {
  font-family: 'Heebo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.ct-box__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-box__form input,
.ct-box__form select {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 0;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  background: #f2ddd7;
  color: #333;
  direction: rtl;
  text-align: right;
  outline: none;
}

.ct-box__form input::placeholder {
  color: #999;
}

.ct-box__form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #999;
}

.ct-box__submit {
  width: 100%;
  max-width: 220px;
  padding: 15px;
  background: #222;
  color: #fff;
  border: none;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 6px;
  align-self: flex-start;
}

.ct-box__submit:hover {
  background: #000;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .ct-box {
    right: 5%;
    width: 60%;
    padding: 44px 36px;
  }
  .ct-box__branches {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .ct-bg-photo {
    height: 300px;
  }
  .ct-bg-pink {
    height: auto;
    padding-bottom: 60px;
  }
  .ct-box {
    position: relative;
    top: -60px;
    right: auto;
    width: calc(100% - 32px);
    max-width: none;
    min-width: auto;
    margin: 0 auto;
    padding: 32px 20px;
  }
  .ct-box__branches {
    flex-direction: column;
    gap: 16px;
  }
  .ct-box__actions {
    flex-direction: column;
  }
  .ct-box__submit {
    max-width: none;
  }
}
