/* Styling for Pilotpartner Section - Modern Dark Design mit optimiertem Hintergrund */
.montavis-pilotpartner-section {
  background: #000000;
  color: #E2E8F0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}

/* Optimierter Hintergrund mit subtilerem Verlauf */
.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.03) 0%, rgba(0, 0, 0, 0) 50%), 
              radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.03) 0%, rgba(0, 0, 0, 0) 50%),
              linear-gradient(135deg, #000000 0%, #0B1120 50%, #000000 100%);
  z-index: 0;
}

.montavis-pilotpartner-section .container {
  position: relative;
  z-index: 2;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Success Message Styling */
.success-message {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease-in;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #10B981;
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.success-message h3 {
  color: #F8FAFC;
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}

.success-message p {
  color: #94A3B8;
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section title mit subtilerem Design */
.montavis-pilotpartner-section .section-title h2 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #38BDF8, #818CF8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.glowing-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #38BDF8, #8B5CF6);
  border-radius: 2px;
  margin: 20px auto 30px;
}

.montavis-pilotpartner-section .section-title .subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  color: #94A3B8;
}

/* Shared styles for both main containers with gradient borders */
.pilotpartner-benefits, .pilotpartner-form-container {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 35px;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Benefits and Contact section shared styles */
.pilotpartner-benefits {
  margin-bottom: 20px;
}

.pilotpartner-benefits h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #F8FAFC;
}

/* Contact section specific styles inside the benefits styling */
.contact-section .contact-item {
  display: flex;
  align-items: center;
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.contact-section .contact-item:hover {
  background: rgba(15, 23, 42, 0.6);
  transform: translateX(3px);
  border-color: rgba(56, 189, 248, 0.2);
}

.contact-section .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.7), rgba(139, 92, 246, 0.7));
  border-radius: 10px;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-section .contact-icon i {
  font-size: 20px;
  color: #FFFFFF;
}

.contact-section .contact-details {
  display: flex;
  flex-direction: column;
}

.contact-section .contact-label {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 4px;
}

.contact-section .contact-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E2E8F0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-section .contact-value:hover {
  color: #38BDF8;
  text-decoration: none;
}

/* Remove old styles that might conflict */
.contact-card {
  display: none;
}

.contact-info {
  display: none;
}

/* Modernerer Gradient-Border */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(139, 92, 246, 0.4));
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Subtilere Hover-Effekte */
.gradient-border:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.7), rgba(139, 92, 246, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.section-icon i {
  font-size: 24px;
  color: #FFFFFF;
}

.accent-bar {
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #38BDF8, #A78BFA);
  margin: 15px 0 20px;
  border-radius: 2px;
}

/* Benefits section specific styles */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.benefits-list li {
  padding: 12px 0;
  font-size: 1rem;
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start for better alignment with longer text */
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.2s ease;
  line-height: 1.4; /* Added line height for better readability of longer text */
}

.benefits-list li:hover {
  padding-left: 3px;
  border-bottom-color: rgba(56, 189, 248, 0.15);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.check-icon {
  margin-right: 12px;
  color: #38BDF8;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(56, 189, 248, 0.05);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px; /* Added to better align with multi-line text */
}

/* Why Pilot Partners section */
.why-pilot-partners {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.why-pilot-partners h4 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #F8FAFC;
}

.why-pilot-partners p {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.6;
}

/* Form styling - verbesserte Sichtbarkeit */
.pilotpartner-form-container .form-header {
  margin-bottom: 25px;
}

.pilotpartner-form-container h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #F8FAFC;
}

.form-intro {
  font-size: 1rem;
  color: #94A3B8;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pilotpartner-form .form-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #CBD5E1;
  margin-bottom: 8px;
}

/* Verbesserte Input-Gruppen für bessere Sichtbarkeit der Icons */
.pilotpartner-form .input-group {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  margin-bottom: 5px;
}

.pilotpartner-form .input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #38BDF8;
  width: auto;
  min-width: 40px;
}

.pilotpartner-form .input-group-text i {
  font-size: 0.9rem;
}

.pilotpartner-form .form-control {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  border-radius: 0 8px 8px 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 12px 15px;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  color: #F8FAFC;
}

.pilotpartner-form .form-control:focus {
  border-color: #38BDF8;
  background: rgba(15, 23, 42, 0.6);
  outline: none;
  box-shadow: none;
}

.pilotpartner-form .form-control::placeholder {
  color: #64748B;
}

.pilotpartner-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-footer {
  margin-top: 25px;
}

/* Moderner Button mit Gradient und ohne übertriebene Effekte */
.pilotpartner-form .btn-primary {
  background: linear-gradient(135deg, #0284C7, #8B5CF6);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #F8FAFC;
}

.pilotpartner-form .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.pilotpartner-form .btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.privacy-note {
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 15px;
}

/* Form success message */
.success-message {
  text-align: center;
  padding: 30px 0;
}

.success-icon {
  background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: #FFFFFF;
}

.success-message h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #F8FAFC;
}

.success-message p {
  color: #94A3B8;
  font-size: 1.05rem;
}

/* Captcha specific styling */
#captcha-question {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38BDF8 !important;
  font-weight: 600 !important;
  min-width: 120px !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-left: none !important;
}

.pilotpartner-form .input-group:has(#pp-captcha) .input-group-text:last-child {
  border-radius: 0 8px 8px 0;
}

.pilotpartner-form .input-group:has(#pp-captcha) .form-control {
  border-radius: 0;
}

/* Validation styling */
.invalid-feedback {
  color: #FB7185;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

.form-control.is-invalid {
  border-color: #FB7185;
}

/* Animation effects - vereinfacht */
.pilotpartner-benefits, .pilotpartner-form-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pilotpartner-in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Spinner animation */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 991px) {
  .montavis-pilotpartner-section {
    padding: 80px 0;
  }
  
  .montavis-pilotpartner-section .section-title h2 {
    font-size: 2.5rem;
  }
  
  .montavis-pilotpartner-section .section-title .subtitle {
    font-size: 1.2rem;
  }
  
  .pilotpartner-benefits, .pilotpartner-form-container {
    padding: 25px;
  }
  
  .contact-section .contact-item {
    padding: 12px;
  }
  
  .contact-section .contact-icon {
    width: 45px;
    height: 45px;
  }
  
  .contact-section .contact-value {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .montavis-pilotpartner-section {
    padding: 60px 0;
  }
  
  .montavis-pilotpartner-section .section-title h2 {
    font-size: 2.2rem;
  }
  
  .montavis-pilotpartner-section .section-title .subtitle {
    font-size: 1.1rem;
  }
  
  .section-icon {
    width: 48px;
    height: 48px;
  }
  
  .section-icon i {
    font-size: 20px;
  }
  
  .contact-section {
    padding: 25px;
  }
}

@media (max-width: 575px) {
  .pilotpartner-benefits, .pilotpartner-form-container {
    padding: 20px 15px;
  }
  
  .pilotpartner-form .btn-primary {
    padding: 12px 20px;
  }
  
  .contact-section .contact-item {
    padding: 10px;
  }
  
  .contact-section .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-section .contact-icon i {
    font-size: 16px;
  }
  
  .contact-section .contact-value {
    font-size: 1rem;
  }
}
