/* ===========================================
   CONTACT PAGE STYLES
   Modern, Clean Design with Dynamic Theming
   =========================================== */

:root {
  --contact-primary: var(--event-primary, #00997d);
  --contact-secondary: var(--event-secondary, #0a294a);
  --contact-accent: var(--event-accent, #fab702);
}

/* ========================================
   HERO SECTION
======================================== */
.contact-hero-section {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--contact-secondary) 0%,
    var(--contact-primary) 100%
  );
  padding: 120px 0 80px;
  overflow: hidden;
}

.contact-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.contact-hero-float {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: floatAnimation 20s ease-in-out infinite;
}

.contact-hero-float.float-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.contact-hero-float.float-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero-badge i {
  font-size: 18px;
  color: var(--contact-accent);
}

.contact-hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-hero-desc {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.contact-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.contact-breadcrumb a:hover {
  color: #fff;
}

.contact-breadcrumb span {
  color: var(--contact-accent);
  font-weight: 600;
}

/* ========================================
   MAIN CONTACT SECTION
======================================== */
.contact-main-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CONTACT FORM CARD
======================================== */
.contact-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-header {
  margin-bottom: 30px;
}

.contact-form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--contact-secondary);
  margin-bottom: 10px;
}

.contact-form-header p {
  color: #666;
  font-size: 16px;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--contact-secondary);
  margin-bottom: 10px;
  font-size: 14px;
}

.contact-form label i {
  color: var(--contact-primary);
  font-size: 16px;
}

.contact-form label .required {
  color: #dc3545;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  background: #f8f9fa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--contact-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 153, 125, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #adb5bd;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.phone-input-group {
  display: flex;
  gap: 10px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #e9ecef;
  border-radius: 12px;
  font-weight: 600;
  color: var(--contact-secondary);
  white-space: nowrap;
}

.phone-prefix img {
  width: 24px;
  height: auto;
  border-radius: 4px;
}

.phone-input-group input {
  flex: 1;
}

.form-hint {
  font-size: 12px;
  color: #868e96;
  margin-top: 6px;
}

/* Form Buttons */
.contact-form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 35px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-contact-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.btn-contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 35px;
  background: #fff;
  color: var(--contact-secondary);
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-contact-email:hover {
  border-color: var(--contact-primary);
  color: var(--contact-primary);
  transform: translateY(-3px);
}

/* ========================================
   CONTACT INFO SIDEBAR
======================================== */
.contact-info-card {
  background: #fff;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.contact-info-header {
  margin-bottom: 30px;
}

.contact-info-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--contact-secondary);
  margin-bottom: 5px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(
    135deg,
    var(--contact-primary),
    var(--contact-secondary)
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.contact-info-content label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #868e96;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-info-content p {
  font-size: 15px;
  color: var(--contact-secondary);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

.contact-info-content a {
  color: var(--contact-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-content a:hover {
  color: var(--contact-primary);
}

/* Social Links */
.contact-social {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.contact-social h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #868e96;
  margin-bottom: 18px;
  font-weight: 600;
}

.contact-social-links {
  display: flex;
  gap: 12px;
}

.contact-social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8f9fa;
  color: var(--contact-secondary);
  font-size: 18px;
  transition: all 0.3s;
}

.contact-social-links a:hover {
  background: var(--contact-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ========================================
   MAP SECTION
======================================== */
.contact-map-section {
  background: #fff;
}

.contact-map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(20%);
}

/* ========================================
   RESPONSIVE STYLES
======================================== */
@media (max-width: 768px) {
  .contact-hero-section {
    padding: 100px 0 60px;
  }

  .contact-hero-title {
    font-size: 32px;
  }

  .contact-hero-desc {
    font-size: 16px;
  }

  .contact-main-section {
    padding: 50px 0;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 25px;
  }

  .contact-form-header h2 {
    font-size: 24px;
  }

  .contact-form-actions {
    flex-direction: column;
  }

  .btn-contact-submit,
  .btn-contact-email {
    width: 100%;
    justify-content: center;
  }

  .phone-input-group {
    flex-direction: column;
  }

  .phone-prefix {
    justify-content: center;
  }
}

/* ========================================
   FORM SUCCESS STATE
======================================== */
.contact-success {
  text-align: center;
  padding: 60px 30px;
}

.contact-success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    var(--contact-primary),
    var(--contact-secondary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 50px;
  color: #fff;
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 153, 125, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(0, 153, 125, 0);
  }
}

.contact-success h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--contact-secondary);
  margin-bottom: 15px;
}

.contact-success p {
  color: #666;
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto 25px;
  line-height: 1.7;
}

.btn-send-another {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--contact-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-send-another:hover {
  background: var(--contact-secondary);
  transform: translateY(-2px);
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
