/* Contact Page Styles - Clean BEM Implementation 2025 */

/* ======================================
 *  Hero Section
 * ====================================== */
.gj-contact-hero {
  position: relative;
  width: 100%;
  padding: 10rem 0 6rem;
  box-sizing: border-box;
  background-color: var(--color-raw-white);
  overflow: hidden;
}

/* Background accent elements */
.gj-contact-hero__bg-accent {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(217, 45, 39, 0.04) 0%, rgba(217, 45, 39, 0.01) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: float-slow 20s ease-in-out infinite alternate;
}

.gj-contact-hero__bg-accent--secondary {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 40%;
  background: radial-gradient(circle, rgba(11, 31, 63, 0.03) 0%, rgba(11, 31, 63, 0.01) 70%);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  animation: float-slow 25s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, 2%) rotate(3deg); }
}

/* Main container */
.gj-contact-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* Left content area */
.gj-contact-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.gj-contact-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.gj-contact-hero__title-accent {
  display: block;
  color: var(--color-brand-primary);
  margin-top: 0.5rem;
  animation: fade-in-up 0.8s 0.3s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.gj-contact-hero__subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 90%;
  animation: fade-in-up 0.8s 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Right illustration area */
.gj-contact-hero__illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gj-contact-hero__icons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
  height: 400px;
  position: relative;
  z-index: 2;
  animation: fade-in 1s 0.5s ease-out forwards;
  opacity: 0;
}

.gj-contact-hero__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.gj-contact-hero__icon-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.gj-contact-hero__icon-wrapper--phone {
  background-color: rgba(217, 45, 39, 0.05);
}

.gj-contact-hero__icon-wrapper--email {
  background-color: rgba(11, 31, 63, 0.05);
}

.gj-contact-hero__icon-wrapper--location {
  background-color: rgba(33, 150, 83, 0.05);
}

.gj-contact-hero__icon-wrapper--time {
  background-color: rgba(242, 153, 74, 0.05);
}

.gj-contact-hero__icon {
  width: 50px;
  height: 50px;
  stroke-width: 1.5px;
}

.gj-contact-hero__icon-wrapper--phone .gj-contact-hero__icon {
  color: var(--color-brand-primary);
}

.gj-contact-hero__icon-wrapper--email .gj-contact-hero__icon {
  color: var(--color-text-primary);
}

.gj-contact-hero__icon-wrapper--location .gj-contact-hero__icon {
  color: rgba(33, 150, 83, 0.9);
}

.gj-contact-hero__icon-wrapper--time .gj-contact-hero__icon {
  color: rgba(242, 153, 74, 0.9);
}

.gj-contact-hero__illustration-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 80%;
  height: 80%;
  background: linear-gradient(140deg, rgba(217, 45, 39, 0.1), rgba(11, 31, 63, 0.05));
  border-radius: 2rem;
  z-index: 1;
  transform: rotate(-5deg);
  opacity: 0;
  animation: fade-in 1s 0.7s ease-out forwards;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 0.8; }
}

/* ======================================
 *  Contact Info Section
 * ====================================== */
.gj-contact-info {
  padding: 6rem 0;
  background-color: var(--color-background-surface);
  position: relative;
}

.gj-contact-info__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.gj-contact-info__card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: var(--border-glass);
  height: fit-content;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gj-contact-info__header {
  margin-bottom: 2rem;
}

.gj-contact-info__title {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}

.gj-contact-info__title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-brand-primary);
}

.gj-contact-info__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gj-contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: transform 0.3s ease;
}

.gj-contact-info__item:hover {
  transform: translateY(-5px);
}

.gj-contact-info__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.gj-contact-info__item:nth-child(1) .gj-contact-info__icon-wrapper {
  background-color: rgba(217, 45, 39, 0.1);
}

.gj-contact-info__item:nth-child(2) .gj-contact-info__icon-wrapper {
  background-color: rgba(11, 31, 63, 0.1);
}

.gj-contact-info__item:nth-child(3) .gj-contact-info__icon-wrapper {
  background-color: rgba(33, 150, 83, 0.1);
}

.gj-contact-info__item:nth-child(4) .gj-contact-info__icon-wrapper {
  background-color: rgba(242, 153, 74, 0.1);
}

.gj-contact-info__icon {
  width: 24px;
  height: 24px;
}

.gj-contact-info__item:nth-child(1) .gj-contact-info__icon {
  color: var(--color-brand-primary);
}

.gj-contact-info__item:nth-child(2) .gj-contact-info__icon {
  color: var(--color-text-primary);
}

.gj-contact-info__item:nth-child(3) .gj-contact-info__icon {
  color: rgba(33, 150, 83, 0.9);
}

.gj-contact-info__item:nth-child(4) .gj-contact-info__icon {
  color: rgba(242, 153, 74, 0.9);
}

.gj-contact-info__content {
  flex: 1;
}

.gj-contact-info__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.gj-contact-info__text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.gj-contact-info__link {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
}

.gj-contact-info__link:hover {
  color: var(--color-brand-primary-dark);
  text-decoration: underline;
}

/* ======================================
 *  Contact Form
 * ====================================== */
.gj-contact-form {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gj-contact-form__header {
  margin-bottom: 2rem;
}

.gj-contact-form__title {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}

.gj-contact-form__title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-brand-primary);
}

.gj-contact-form__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.gj-contact-form__link {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
}

.gj-contact-form__link:hover {
  color: var(--color-brand-primary-dark);
  text-decoration: underline;
}

.gj-contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gj-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.gj-contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gj-contact-form__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.gj-contact-form__input,
.gj-contact-form__textarea {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.gj-contact-form__input:focus,
.gj-contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(217, 45, 39, 0.1);
  background-color: rgba(255, 255, 255, 1);
}

.gj-contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.gj-contact-form__submit {
  margin-top: 1rem;
}

.gj-contact-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: var(--color-brand-primary);
  color: var(--color-raw-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(217, 45, 39, 0.2);
}

.gj-contact-form__button:hover {
  background-color: var(--color-brand-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(217, 45, 39, 0.25);
  color: #0B1F3F; /* Changed text color to blue on hover */
}

.gj-contact-form__button:active {
  transform: translateY(-1px);
}

/* ======================================
 *  Map Section
 * ====================================== */
.gj-map-section {
  padding: 6rem 0;
  background-color: var(--color-background-surface-alt);
  position: relative;
  overflow: hidden;
}

.gj-map-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gj-map-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.gj-map-section__title {
  font-size: var(--font-size-xxl);
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}

.gj-map-section__title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--color-brand-primary);
}

.gj-map-section__map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 500px;
}

.gj-map-section__map {
  width: 100%;
  height: 100%;
  border: none;
}

.gj-map-section__map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(217, 45, 39, 0.03), transparent 30%);
  pointer-events: none;
}

/* ======================================
 *  Responsive Styles
 * ====================================== */
@media (max-width: 992px) {
  .gj-contact-hero__container,
  .gj-contact-info__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gj-contact-hero__content {
    order: 1;
    text-align: center;
    align-items: center;
  }
  
  .gj-contact-hero__illustration {
    order: 0;
  }
  
  .gj-contact-hero__icons-grid {
    max-width: 350px;
    height: 350px;
  }
  
  .gj-contact-info__title::after,
  .gj-contact-form__title::after {
    left: 0;
  }
}

@media (max-width: 768px) {
  .gj-contact-hero__icons-grid {
    gap: 1.5rem;
  }
  
  .gj-contact-form__row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gj-map-section__map-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .gj-contact-hero {
    padding: 8rem 0 4rem;
  }
  
  .gj-contact-info,
  .gj-map-section {
    padding: 4rem 0;
  }
  
  .gj-contact-hero__title {
    font-size: 1.75rem;
  }
  
  .gj-contact-hero__icons-grid {
    max-width: 280px;
    height: 280px;
    gap: 1rem;
  }
  
  .gj-contact-hero__icon {
    width: 40px;
    height: 40px;
  }
  
  .gj-contact-info__card,
  .gj-contact-form {
    padding: 1.75rem;
  }
  
  .gj-map-section__map-container {
    height: 300px;
  }
}
