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

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

/* Background accent elements */
.gj-quote-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-quote-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-quote-hero__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.gj-quote-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gj-quote-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-quote-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-quote-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: 700px;
  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); }
}

/* ======================================
 *  Quote Form Section
 * ====================================== */
.gj-quote-form {
  padding: 4rem 0 6rem;
  background-color: var(--color-background-surface);
  position: relative;
}

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

.gj-quote-form__wrapper {
  background-color: rgba(255, 255, 255, 0.95);
  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-quote-form__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gj-quote-form__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(217, 45, 39, 0.1);
  flex-shrink: 0;
}

.gj-quote-form__icon {
  width: 24px;
  height: 24px;
  color: var(--color-brand-primary);
}

.gj-quote-form__title {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  margin: 0;
}

.gj-quote-form__section {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1.5rem;
}

.gj-quote-form__section:last-of-type {
  border-bottom: none;
}

.gj-quote-form__section-title {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.gj-quote-form__section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-brand-primary);
}

.gj-quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.gj-quote-form__group--full {
  grid-column: 1 / -1;
}

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

.gj-quote-form__input,
.gj-quote-form__textarea,
.gj-quote-form__select {
  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-quote-form__input:focus,
.gj-quote-form__textarea:focus,
.gj-quote-form__select: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-quote-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.gj-quote-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.gj-quote-form__submit {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.gj-quote-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-quote-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-quote-form__button:active {
  transform: translateY(-1px);
}

/* ======================================
 *  Alternative Contact Section
 * ====================================== */
.gj-quote-alt-contact {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.gj-quote-alt-contact__content {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gj-quote-alt-contact__title {
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.gj-quote-alt-contact__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-brand-primary);
}

.gj-quote-alt-contact__text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

.gj-quote-alt-contact__link:hover {
  color: var(--color-brand-primary-dark);
  text-decoration: underline;
}

.gj-quote-alt-contact__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gj-quote-alt-contact__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gj-quote-alt-contact__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-brand-primary);
  flex-shrink: 0;
}

.gj-quote-alt-contact__feature p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ======================================
 *  Responsive Styles
 * ====================================== */
@media (max-width: 992px) {
  .gj-quote-form__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gj-quote-alt-contact {
    position: static;
  }
}

@media (max-width: 768px) {
  .gj-quote-form__grid {
    grid-template-columns: 1fr;
  }
  
  .gj-quote-form__wrapper,
  .gj-quote-alt-contact__content {
    padding: 1.75rem;
  }
}

@media (max-width: 576px) {
  .gj-quote-hero {
    padding: 8rem 0 3rem;
  }
  
  .gj-quote-form {
    padding: 3rem 0 4rem;
  }
  
  .gj-quote-form__header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .gj-quote-form__title {
    font-size: var(--font-size-lg);
  }
  
  .gj-quote-form__section-title::after,
  .gj-quote-alt-contact__title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .gj-quote-form__section-title,
  .gj-quote-alt-contact__title {
    display: block;
    text-align: center;
  }
  
  .gj-quote-form__submit {
    justify-content: center;
  }
}
