/**
 * CY Colombia - Contact Widget Styles
 * Matches the site design tokens with 100% Elementor selector hooks
 */

.cy-contact-section {
  background-color: var(--cy-contact-bg, #d00618);
  color: #fff;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cy-contact-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
  box-sizing: border-box;
}

/* Info Column */
.cy-contact__info {
  display: flex;
  flex-direction: column;
}

.cy-contact__label {
  color: inherit;
  font-family: var(--font-geist-mono, monospace);
  letter-spacing: 0.13em;
  opacity: 0.75;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 14px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
}

.cy-contact__heading {
  color: #fff;
  letter-spacing: -0.055em;
  max-width: 560px;
  margin: 48px 0 70px;
  font-size: clamp(45px, 5vw, 72px);
  font-weight: 560;
  line-height: 0.98;
}

.cy-contact__office {
  margin-bottom: 56px;
}

.cy-contact__office-title {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 14px;
}

.cy-contact__office-text {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.cy-contact__link {
  width: fit-content;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  align-items: center;
  gap: 18px;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 620;
  display: inline-flex;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cy-contact__link span {
  font-size: 16px;
  transition: transform 0.18s;
  display: inline-block;
}

.cy-contact__link:hover {
  border-color: #fff;
}

.cy-contact__link:hover span {
  transform: translate(3px, -3px);
}

/* Form Container Card */
.cy-contact__form-card {
  border-radius: var(--radius, 24px);
  background: var(--paper, #f6f5f1);
  color: var(--ink, #151515);
  align-self: center;
  padding: 36px;
  box-shadow: 0 28px 70px rgba(90, 0, 10, 0.22);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Built-in Form */
.cy-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  margin: 0;
  padding: 0;
}

.cy-contact-form label {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.cy-contact-form label > span {
  font-size: 12px;
  font-weight: 630;
  color: var(--ink, #151515);
  letter-spacing: 0.01em;
}

.cy-contact-form input,
.cy-contact-form textarea {
  border: 1px solid rgba(21, 21, 21, 0.12);
  width: 100%;
  color: var(--ink, #151515);
  background: #fff;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.cy-contact-form input {
  height: 54px;
  padding: 0 16px;
}

.cy-contact-form textarea {
  resize: vertical;
  padding: 16px;
  min-height: 126px;
}

.cy-contact-form input:focus,
.cy-contact-form textarea:focus {
  border-color: var(--red, #d00618);
  box-shadow: 0 0 0 4px rgba(208, 6, 24, 0.08);
}

.cy-contact-form input::placeholder,
.cy-contact-form textarea::placeholder {
  color: rgba(21, 21, 21, 0.38);
}

.cy-contact-form__message,
.cy-contact-form__submit-wrap {
  grid-column: 1 / -1;
}

.cy-contact-form__submit {
  width: 100%;
  min-height: 52px;
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--red, #d00618);
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 580;
  transition: transform 0.18s, background-color 0.18s, box-shadow 0.18s;
  display: inline-flex;
}

.cy-contact-form__submit span {
  font-size: 17px;
  transition: transform 0.18s;
  display: inline-block;
}

.cy-contact-form__submit:hover {
  background: var(--red-dark, #a90010);
  transform: translateY(-2px);
}

.cy-contact-form__submit:hover span {
  transform: translate(2px, -2px);
}

.cy-contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success Card */
.cy-form-success {
  border-radius: var(--radius, 24px);
  background: var(--paper, #f6f5f1);
  min-height: 390px;
  color: var(--ink, #151515);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 36px;
  display: flex;
  box-sizing: border-box;
}

.cy-form-success__icon {
  background: var(--red, #d00618);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
  display: grid;
}

.cy-form-success .cy-form-success__eyebrow {
  color: var(--muted, #686866);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cy-form-success .cy-form-success__eyebrow:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red, #d00618);
}

.cy-form-success h3 {
  letter-spacing: -0.04em;
  margin: 6px 0 14px;
  font-size: 32px;
  font-weight: 560;
  color: var(--ink, #151515);
}

.cy-form-success p:not(.cy-form-success__eyebrow) {
  max-width: 480px;
  color: var(--muted, #686866);
  line-height: 1.6;
  margin: 0 0 24px;
  font-size: 15px;
}

.cy-form-success .cy-button-reset {
  min-height: 46px;
  color: var(--ink, #151515);
  cursor: pointer;
  border: 1px solid rgba(21, 21, 21, 0.45);
  border-radius: 999px;
  background: transparent;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 580;
  transition: transform 0.18s, background-color 0.18s, color 0.18s, border-color 0.18s;
  display: inline-flex;
}

.cy-form-success .cy-button-reset:hover {
  background: var(--ink, #151515);
  border-color: var(--ink, #151515);
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive Rules */
@media (max-width: 1100px) {
  .cy-contact-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    padding: 100px 32px;
  }

  .cy-contact__heading {
    margin: 36px 0 52px;
    font-size: clamp(38px, 4.5vw, 56px);
  }
}

@media (max-width: 820px) {
  .cy-contact-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 84px 24px;
  }

  .cy-contact__heading {
    margin: 32px 0 44px;
    font-size: clamp(38px, 7vw, 56px);
  }

  .cy-contact__office {
    margin-bottom: 40px;
  }

  .cy-contact__form-card {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .cy-contact-inner {
    gap: 44px;
    padding: 70px 20px;
  }

  .cy-contact__heading {
    margin-bottom: 38px;
    font-size: 44px;
  }

  .cy-contact__form-card {
    padding: 22px;
  }

  .cy-contact-form {
    grid-template-columns: 1fr;
  }

  .cy-contact-form > * {
    grid-column: 1 !important;
  }
}

/* ==========================================================================
   Page Light Variant (Contact Page: Grid Surface & Sticky Left Heading)
   ========================================================================== */
.cy-contact-section--page-light {
  background-color: var(--paper, #f6f5f1);
  background-image: linear-gradient(90deg, rgba(21, 21, 21, 0.055) 1px, transparent 1px),
                    linear-gradient(rgba(21, 21, 21, 0.043) 1px, transparent 1px);
  background-position: top;
  background-size: 160px 160px;
  color: var(--ink, #151515);
  border-bottom: 1px solid rgba(21, 21, 21, 0.12);
}

.cy-contact-section--page-light .cy-contact-inner {
  grid-template-columns: 0.75fr 1.25fr;
  align-items: start;
  gap: 100px;
}

.cy-contact-section--page-light .cy-contact__info {
  position: sticky;
  top: 130px;
}

.cy-contact-section--page-light .cy-contact__label {
  color: var(--ink, #151515);
  opacity: 0.68;
  border-color: rgba(21, 21, 21, 0.12);
}

.cy-contact-section--page-light .cy-contact__heading {
  color: var(--ink, #151515);
  letter-spacing: -0.055em;
  margin: 48px 0 24px;
  font-size: clamp(44px, 4.5vw, 66px);
  font-weight: 560;
  line-height: 0.98;
}

.cy-contact-section--page-light .cy-contact__page-desc {
  max-width: 440px;
  color: var(--muted, #686866);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.cy-contact-section--page-light .cy-contact__form-card {
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: var(--radius, 24px);
  background: #ffffff;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(21, 21, 21, 0.06);
}

/* Checkbox Terms Row */
.cy-check-row {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  color: var(--muted, #686866);
  cursor: pointer;
  font-size: 13px;
  margin-top: 4px;
}

.cy-check-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--red, #d00618);
  cursor: pointer;
  margin: 0;
}

.cy-check-row span {
  font-size: 13px !important;
  font-weight: 450 !important;
  color: var(--muted, #686866) !important;
}

.cy-check-row a {
  color: var(--ink, #151515);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .cy-contact-section--page-light .cy-contact-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .cy-contact-section--page-light .cy-contact__info {
    position: relative;
    top: auto;
  }

  .cy-contact-section--page-light .cy-contact__form-card {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .cy-contact-section--page-light {
    background-size: 92px 92px;
  }

  .cy-contact-section--page-light .cy-contact__form-card {
    padding: 20px;
  }
}

