/* =====================================================
   CONTACT PAGE STYLES - SG ENERGY 2026
   Modern Contact Form, Info Cards, Locations
===================================================== */

/* ===================== CONTACT PAGE ===================== */
.contact-page {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-page__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Flash message */
.contact-flash-wrap {
  margin-top: var(--spacing-lg);
}

.contact-flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.contact-flash__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.contact-flash__content {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.55;
}

.contact-flash__close {
  margin-left: 8px;
  opacity: .55;
}

.contact-flash__close:hover {
  opacity: .9;
}

.contact-flash--success {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.08) 0%, rgba(46, 125, 50, 0.12) 100%);
  border-color: rgba(46, 125, 50, 0.28);
}

.contact-flash--success .contact-flash__icon {
  background: #2e7d32;
  color: #fff;
}

.contact-flash--error {
  background: linear-gradient(135deg, rgba(183, 28, 28, 0.07) 0%, rgba(229, 57, 53, 0.10) 100%);
  border-color: rgba(198, 40, 40, 0.28);
}

.contact-flash--error .contact-flash__icon {
  background: #c62828;
  color: #fff;
}

/* Contact Intro */
.contact-intro {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Card */
.contact-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-3xl);
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-3xl);
}

.contact-card__left {
  border-right: 2px solid var(--border-light);
  padding-right: var(--spacing-3xl);
}

.contact-card__right {
  padding-left: var(--spacing-xl);
}

/* Quote Head */
.quote-head {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 3px solid var(--border-light);
}

.quote-head__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.quote-head__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.quote-head__title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.quote-head__desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Quote Card Form */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.quote-card__col {
  display: flex;
  flex-direction: column;
}

.quote-section-header {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.05) 0%, rgba(0, 172, 193, 0.08) 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
}

.quote-section-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.quote-section-text {
  flex: 1;
}

.quote-card__h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.quote-card__p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Form Elements */
.qform {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.qrow {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.qrow__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.qrow__hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

.qrow__control {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.qrange {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--primary-light), var(--primary-color));
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.qrange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
  transition: all var(--transition-smooth);
}

.qrange::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
}

.qrange::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
  transition: all var(--transition-smooth);
}

.qrange::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
}

.qrow__value {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.1) 0%, rgba(0, 172, 193, 0.15) 100%);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

.qselect {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.qselect:hover {
  border-color: var(--primary-light);
}

.qselect:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

/* Lead Form */
.qlead {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.qinput {
  position: relative;
  display: flex;
  align-items: center;
}

.qinput__icon {
  position: absolute;
  left: 18px;
  color: var(--text-light);
  font-size: 18px;
  pointer-events: none;
  transition: color var(--transition-base);
}

.qinput__field {
  width: 100%;
  padding: 15px 18px 15px 52px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  transition: all var(--transition-smooth);
}

.qinput__field::placeholder {
  color: var(--text-lighter);
}

.qinput__field:hover {
  border-color: var(--primary-light);
}

.qinput__field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.qinput__field:focus + .qinput__icon,
.qinput:hover .qinput__icon {
  color: var(--primary-color);
}

.qerror {
  font-size: 13px;
  color: var(--error-color);
  margin-top: 6px;
  display: none;
}

.qerror:not(:empty) {
  display: block;
}

/* Quote Actions */
.quote-actions {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--border-light);
}

.quote-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: 18px 32px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(21, 101, 192, 0.4);
  position: relative;
  overflow: hidden;
}

.quote-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.quote-btn:hover::before {
  width: 300px;
  height: 300px;
}

.quote-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.5);
}

.quote-btn__icon,
.quote-btn__text,
.quote-btn__arrow {
  position: relative;
  z-index: 1;
}

.quote-btn__arrow {
  transition: transform var(--transition-smooth);
}

.quote-btn:hover .quote-btn__arrow {
  transform: translateX(6px);
}

.quote-actions__note {
  margin-top: var(--spacing-md);
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quote-actions__note i {
  color: var(--success-color);
  font-size: 16px;
}

/* Contact Info */
.contact-info-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--border-light);
}

.contact-info__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.contact-info__subtitle {
  font-size: 14px;
  color: var(--text-light);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.contact-info__item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.05) 0%, rgba(0, 172, 193, 0.08) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition-smooth);
}

.contact-info__item:hover {
  background: #fff;
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-info__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
}

.contact-info__item:hover .contact-info__icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-info__content {
  flex: 1;
}

.contact-info__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.contact-info__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition-base);
}

.contact-info__value:hover {
  color: var(--primary-color);
}

.contact-info__note {
  font-size: 12px;
  color: var(--success-color);
  font-weight: 600;
}

/* Social Media */
.contact-social {
  text-align: center;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
}

.contact-social__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.contact-social__buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.social-btn--facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-btn--youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-btn--linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.social-btn--zalo {
  background: linear-gradient(135deg, #0180C7 0%, #015f94 100%);
  font-weight: 700;
  font-size: 20px;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Contact Hours */
.contact-hours {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.1) 0%, rgba(255, 167, 38, 0.15) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 167, 38, 0.3);
  margin-top: var(--spacing-lg);
}

.contact-hours__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-hours__content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-hours__content p {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 3px;
}

.contact-hours__note {
  font-weight: 600;
  color: var(--error-color);
}

/* Locations */
.contact-locations {
  position: relative;
  padding: var(--spacing-2xl);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.locations-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.locations-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.locations-subtitle {
  font-size: 15px;
  color: var(--text-light);
}

.loc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.loc-nav:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

.loc-nav--prev {
  left: var(--spacing-lg);
}

.loc-nav--next {
  right: var(--spacing-lg);
}

.loc-grid {
  max-width: 800px;
  margin: 0 auto;
}

.loc-card {
  background: #fff;
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--border-light);
  transition: all var(--transition-smooth);
}

.loc-card.is-active {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.loc-card__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.loc-card__head {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--border-light);
}

.loc-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.loc-card__title {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
}

.loc-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.loc-card__line {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 15px;
  color: var(--text-medium);
  padding: var(--spacing-md);
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
}

.loc-card__line i {
  font-size: 18px;
  color: var(--primary-color);
}

.loc-card__line a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-base);
}

.loc-card__line a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.loc-card__actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.loc-card__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.loc-card__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.loc-card__btn--secondary {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.loc-card__btn--secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .contact-card__left {
    border-right: none;
    border-bottom: 2px solid var(--border-light);
    padding-right: 0;
    padding-bottom: var(--spacing-2xl);
  }
  
  .contact-card__right {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: var(--spacing-xl);
  }
  
  .quote-head__title {
    font-size: 28px;
  }
  
  .loc-nav {
    width: 40px;
    height: 40px;
  }
  
  .loc-nav--prev {
    left: var(--spacing-sm);
  }
  
  .loc-nav--next {
    right: var(--spacing-sm);
  }
  
  .loc-card__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: var(--spacing-lg);
  }
  
  .quote-head__title {
    font-size: 24px;
  }
  
  .quote-section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contact-social__buttons {
    flex-wrap: wrap;
  }
}
