@import url("./index.css");

/* =========================================
   GO ENERGY — CONTACT SECTION
========================================= */

.go-contact-section {
  --contact-navy: #182b3f;
  --contact-navy-light: #223c54;
  --contact-orange: #e58426;
  --contact-background: #f6f4ef;
  --contact-white: #ffffff;
  --contact-text: #66717b;
  --contact-border: rgba(24, 43, 63, 0.12);

  position: relative;
  overflow: hidden;
  padding: 90px 6%;
  background:
    radial-gradient(
      circle at top right,
      rgba(229, 132, 38, 0.1),
      transparent 32%
    ),
    var(--contact-background);
}

.go-contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  width: 100px;
  height: 4px;
  background: var(--contact-orange);
}

.go-contact-section::after {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -220px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(24, 43, 63, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.go-contact-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}


/* =========================================
   SECTION HEADER
========================================= */

.go-contact-header {
  max-width: 800px;
  margin-bottom: 48px;
}

.go-contact-eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--contact-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
}

.go-contact-header h2 {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--contact-navy);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.go-contact-header p {
  max-width: 750px;
  margin: 0;
  color: var(--contact-text);
  font-size: 16px;
  line-height: 1.8;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.go-contact-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(300px, 0.65fr);
  align-items: stretch;
  gap: 28px;
}


/* =========================================
   FORM PANEL
========================================= */

.go-contact-form-panel {
  position: relative;
  overflow: hidden;
  padding: 46px;
  background: var(--contact-white);
  border: 1px solid var(--contact-border);
  box-shadow: 0 18px 50px rgba(24, 43, 63, 0.08);
}

.go-contact-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 95px;
  height: 4px;
  background: var(--contact-orange);
}

.go-contact-form-panel::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -85px;
  width: 205px;
  height: 205px;
  border: 1px solid rgba(229, 132, 38, 0.12);
  border-radius: 50%;
  pointer-events: none;
}


/* =========================================
   FORM GRID
========================================= */

.go-contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.go-form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.go-form-group-full {
  grid-column: 1 / -1;
}

.go-form-group label {
  color: var(--contact-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}


/* =========================================
   FORM FIELDS
========================================= */

.go-form-group input,
.go-form-group select,
.go-form-group textarea {
  width: 100%;
  margin: 0;
  padding: 15px 16px;
  color: var(--contact-navy);
  background: #fbfaf8;
  border: 1px solid var(--contact-border);
  border-radius: 3px;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.go-form-group input,
.go-form-group select {
  min-height: 52px;
}

.go-form-group textarea {
  min-height: 165px;
  resize: vertical;
}

.go-form-group input::placeholder,
.go-form-group textarea::placeholder {
  color: #939ba3;
  opacity: 1;
}

.go-form-group input:hover,
.go-form-group select:hover,
.go-form-group textarea:hover {
  background: #ffffff;
  border-color: rgba(24, 43, 63, 0.3);
}

.go-form-group input:focus,
.go-form-group select:focus,
.go-form-group textarea:focus {
  background: #ffffff;
  border-color: var(--contact-orange);
  box-shadow: 0 0 0 4px rgba(229, 132, 38, 0.12);
}


/* =========================================
   SELECT FIELD
========================================= */

.go-form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  cursor: pointer;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--contact-navy) 50%
    ),
    linear-gradient(
      135deg,
      var(--contact-navy) 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;

  background-size:
    6px 6px,
    6px 6px;

  background-repeat: no-repeat;
}


/* =========================================
   FORM ACTIONS
========================================= */

.go-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.go-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 14px 28px;
  color: #ffffff;
  background: var(--contact-orange);
  border: 1px solid var(--contact-orange);
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(229, 132, 38, 0.22);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.go-contact-button:hover {
  background: var(--contact-navy);
  border-color: var(--contact-navy);
  box-shadow: 0 14px 30px rgba(24, 43, 63, 0.22);
  transform: translateY(-3px);
}

.go-contact-button:active {
  transform: translateY(0);
}

.go-contact-button:focus-visible {
  outline: 3px solid rgba(229, 132, 38, 0.35);
  outline-offset: 4px;
}

.go-contact-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.go-form-note {
  flex: 1;
  min-height: 22px;
  margin: 0;
  color: var(--contact-text);
  font-size: 14px;
  line-height: 1.6;
}

.go-form-note.success {
  color: #237647;
}

.go-form-note.error {
  color: #b33f3f;
}
.go-form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================
   CONTACT INFORMATION PANEL
========================================= */

.go-contact-info-panel {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.go-contact-info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 34px;
  overflow: hidden;
  background: #182b3f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(24, 43, 63, 0.14);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.go-contact-info-card::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 34px;
  width: 42px;
  height: 3px;
  background: #e58426;
}

.go-contact-info-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.go-contact-info-card:hover {
  background: #223c54;
  box-shadow: 0 22px 50px rgba(24, 43, 63, 0.22);
  transform: translateY(-5px);
}

.go-contact-info-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #e58426;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.go-contact-info-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.go-contact-info-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.go-contact-info-card a {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.go-contact-info-card a:hover {
  color: #e58426;
}


/* =========================================
   LOCATION CARD
========================================= */

.go-contact-location-card {
  justify-content: flex-end;
}

.go-contact-location-card .go-contact-location-address {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.go-contact-map-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: #e58426 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.go-contact-map-link span {
  font-size: 17px;
  line-height: 1;
}

.go-contact-map-link:hover {
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .go-contact-section {
    padding: 50px 18px;
  }

  .go-contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .go-contact-form-panel {
    padding: 28px 20px;
  }

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

  .go-form-group-full,
  .go-form-actions {
    grid-column: auto;
  }

  .go-contact-info-panel {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }

  .go-contact-location-card {
    grid-column: auto;
  }

  .go-contact-info-card {
    width: 100%;
    min-height: 180px;
    padding: 30px 26px;
  }

  .go-contact-header h2 {
    font-size: 32px;
  }

  .go-contact-button {
    width: 100%;
  }
}