/* Contact Section Enhanced Styles */
.contact-enhanced {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.contact-card {
  background: linear-gradient(135deg, var(--bg-alt), #0a1511);
  border: 1px solid rgba(158, 209, 178, 0.15);
  border-radius: 40px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5);
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 40px 60px -20px rgba(158, 209, 178, 0.3);
}

/* Background Patterns (reuse from newsletter) */
.contact-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contact-bg-pattern .pattern-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(158, 209, 178, 0.1) 0%,
    transparent 70%
  );
  animation: floatSlow 20s infinite ease-in-out;
}

.contact-bg-pattern .pattern-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
}

.contact-bg-pattern .pattern-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
  animation-delay: -5s;
}

.contact-bg-pattern .pattern-circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 20%;
  animation-delay: -10s;
}

.contact-bg-pattern .pattern-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(158, 209, 178, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  animation: moveDots 30s linear infinite;
}

/* Floating Elements */
.contact-enhanced .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.contact-enhanced .floating-element {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(158, 209, 178, 0.1);
  border: 1px solid rgba(158, 209, 178, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  backdrop-filter: blur(5px);
  animation: float 6s infinite ease-in-out;
}

.contact-enhanced .element-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.contact-enhanced .element-2 {
  bottom: 20%;
  right: 12%;
  animation-delay: -2s;
}

.contact-enhanced .element-3 {
  top: 30%;
  right: 15%;
  animation-delay: -4s;
}

.contact-enhanced .element-4 {
  bottom: 25%;
  left: 15%;
  animation-delay: -1s;
}

/* Contact Content */
.contact-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-badge {
  display: inline-block;
  margin-bottom: 20px;
}

.contact-badge .badge-pulse {
  display: inline-flex;
  align-items: center;
  background: rgba(158, 209, 178, 0.1);
  border: 1px solid rgba(158, 209, 178, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
  animation: badgePulse 2s infinite;
}

.contact-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.contact-title .text-gradient {
  background: linear-gradient(135deg, var(--accent), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Contact Stats */
.contact-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  padding: 20px;
  background: rgba(158, 209, 178, 0.05);
  border-radius: 60px;
  border: 1px solid rgba(158, 209, 178, 0.1);
  backdrop-filter: blur(10px);
}

.contact-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-stats .stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(158, 209, 178, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contact-stats .stat-item:hover .stat-icon {
  background: var(--accent);
  color: var(--bg-main);
  transform: rotate(360deg);
}

.contact-stats .stat-info {
  display: flex;
  flex-direction: column;
}

.contact-stats .stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.contact-stats .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-stats .stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(158, 209, 178, 0.2);
}

/* Contact Form */
.contact-form-container {
  margin-bottom: 40px;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form .form-group {
  background: rgba(158, 209, 178, 0.03);
  border: 1px solid rgba(158, 209, 178, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.contact-form .form-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(158, 209, 178, 0.2);
  transform: scale(1.02);
}

.contact-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.contact-form .input-icon {
  position: absolute;
  left: 20px;
  top: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.3s ease;
  z-index: 2;
}

.contact-form .input-wrapper:focus-within .input-icon {
  color: var(--accent);
}

.contact-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px 18px 50px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  border-radius: 16px;
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 18px;
}

.contact-input::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-input option {
  background: var(--bg-alt);
  color: var(--text-main);
}

.contact-input:focus option {
  background: var(--bg-alt);
}

/* Select styling */
select.contact-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ed1b2' 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 20px center;
  background-size: 16px;
  padding-right: 50px;
}

/* Checkbox styling */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.form-check-input {
  width: 20px;
  height: 20px;
  background: rgba(158, 209, 178, 0.1);
  border: 1px solid rgba(158, 209, 178, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-check-input:focus {
  box-shadow: 0 0 10px rgba(158, 209, 178, 0.3);
  outline: none;
}

.form-check-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
}

/* Submit button */
.btn-submit {
  position: relative;
  background: linear-gradient(135deg, var(--accent), #78a98a);
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  color: var(--bg-main);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  justify-content: center;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(158, 209, 178, 0.4);
}

.btn-submit:hover .btn-icon {
  transform: translateX(5px) rotate(45deg);
}

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

.btn-submit .btn-text {
  position: relative;
  z-index: 2;
}

.btn-submit .btn-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.btn-submit .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-submit:hover .btn-glow {
  left: 100%;
}

/* Input focus ring */
.input-focus-ring {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.input-wrapper:focus-within .input-focus-ring {
  width: calc(100% - 40px);
}

/* Success Message */
.contact-enhanced .success-message {
  display: none;
  align-items: center;
  gap: 20px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 16px;
  padding: 25px;
  margin-top: 30px;
  animation: slideUp 0.5s ease;
}

.contact-enhanced .success-message.show {
  display: flex;
}

.contact-enhanced .success-message.error {
  background: rgba(244, 67, 54, 0.1);
  border-color: rgba(244, 67, 54, 0.3);
}

.contact-enhanced .success-icon {
  width: 60px;
  height: 60px;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4caf50;
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.contact-enhanced .success-message.error .success-icon {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.contact-enhanced .success-content h4 {
  color: #4caf50;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-enhanced .success-message.error .success-content h4 {
  color: #f44336;
}

.contact-enhanced .success-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.trust-badges .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.trust-badges .trust-item:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.trust-badges .trust-item i {
  font-size: 1rem;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-card {
    padding: 40px 20px;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-stats {
    flex-direction: column;
    gap: 15px;
    border-radius: 30px;
    padding: 20px;
  }

  .contact-stats .stat-divider {
    width: 50%;
    height: 1px;
  }

  .btn-submit {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .contact-enhanced .floating-element {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-title {
    font-size: 1.8rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
