/* ============================================
   ENHANCED CONTACT SECTION
   3D Globe, Multi-Step Form, Floating Cards
   ============================================ */

/* Floating Contact Cards */
.floating-contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.floating-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: floatCard 6s ease-in-out infinite;
  animation-delay: var(--delay);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(239, 55, 36, 0.1);
}

.floating-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(239, 55, 36, 0.15);
}

.floating-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.floating-card .card-content {
  display: flex;
  flex-direction: column;
}

.floating-card .card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 3px;
}

.floating-card .card-value {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.floating-card a.card-value:hover {
  color: #ef3724;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(1deg); }
  50% { transform: translateY(-5px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-1deg); }
}

/* Globe Container */
.globe-container {
  position: relative;
  width: 100%;
  height: 450px;
  background: radial-gradient(circle at center, #0a1628 0%, #060d18 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    inset 0 0 100px rgba(239, 55, 36, 0.05);
}

.globe-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(239, 55, 36, 0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: globeGlow 3s ease-in-out infinite;
}

@keyframes globeGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

#contact-globe {
  width: 100%;
  height: 100%;
}

.globe-location-marker {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}

.marker-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(239, 55, 36, 0.3);
  border-radius: 50%;
  animation: markerPulse 2s ease-out infinite;
}

.marker-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ef3724;
  border-radius: 50%;
  top: 14px;
  left: 14px;
  box-shadow: 0 0 20px rgba(239, 55, 36, 0.8);
}

.marker-label {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(239, 55, 36, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

@keyframes markerPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.globe-overlay-text {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
}

.globe-greeting {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #ef3724;
  text-shadow: 0 2px 20px rgba(239, 55, 36, 0.5);
}

.globe-subtext {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-form-multi {
  position: relative;
}

/* Form Progress Bar */
.form-progress {
  margin-bottom: 40px;
}

.progress-track {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, #ef3724, #ff6b5b);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.progress-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.progress-steps .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.progress-steps .step-icon {
  display: none;
}

.progress-steps .step.active .step-number,
.progress-steps .step.completed .step-number {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 55, 36, 0.4);
}

.progress-steps .step.completed .step-number::after {
  content: '✓';
}

.progress-steps .step-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.progress-steps .step.active .step-label,
.progress-steps .step.completed .step-label {
  color: #ef3724;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeInStep 0.4s ease;
}

.form-step.active {
  display: block;
}

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

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
}

/* Enhanced Form Inputs */
.form-group-enhanced {
  margin-bottom: 25px;
}

.input-wrapper {
  position: relative;
}

.form-control-enhanced {
  width: 100%;
  padding: 18px 16px 8px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-control-enhanced:focus {
  outline: none;
  border-color: #ef3724;
  background: white;
  box-shadow: 0 0 0 4px rgba(239, 55, 36, 0.1);
}

.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
}

.textarea-wrapper .floating-label {
  top: 20px;
  transform: none;
}

.form-control-enhanced:focus ~ .floating-label,
.form-control-enhanced:not(:placeholder-shown) ~ .floating-label,
.form-control-enhanced.has-value ~ .floating-label {
  top: 8px;
  font-size: 0.75rem;
  color: #ef3724;
  transform: none;
}

.input-focus-effect {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ef3724, #ff6b5b);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.form-control-enhanced:focus ~ .input-focus-effect {
  width: 100%;
}

/* Textarea specific */
textarea.form-control-enhanced {
  min-height: 120px;
  resize: vertical;
}

/* Review Card */
.review-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e0e0e0;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item.review-message {
  flex-direction: column;
  gap: 8px;
}

.review-label {
  color: #888;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-label i {
  color: #ef3724;
}

.review-value {
  font-weight: 600;
  color: #333;
  word-break: break-word;
}

.review-message .review-value {
  background: white;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  font-weight: normal;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 15px;
}

.btn-prev {
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-next,
.btn-submit {
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

.btn-submit .btn-text,
.btn-submit .btn-icon,
.btn-submit .btn-loading,
.btn-submit .paper-plane {
  transition: all 0.3s ease;
}

.btn-submit .btn-icon,
.btn-submit .btn-loading,
.btn-submit .paper-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-loading { opacity: 1; animation: spin 1s linear infinite; }

.btn-submit.success .btn-text { opacity: 0; }
.btn-submit.success .btn-icon { opacity: 1; }

.btn-submit.fly .paper-plane {
  opacity: 1;
  animation: flyAway 1s ease-out forwards;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes flyAway {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
  100% { transform: translate(100px, -100px) rotate(45deg); opacity: 0; }
}

/* Success Message */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success h3 {
  font-size: 1.8rem;
  color: #333;
  margin: 20px 0 10px;
}

.form-success p {
  color: #666;
  margin-bottom: 25px;
}

/* Success Checkmark Animation */
.success-animation {
  margin-bottom: 20px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  position: relative;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.check-icon::before,
.check-icon::after {
  content: '';
  height: 100px;
  position: absolute;
  background: #fff;
  transform: rotate(-45deg);
}

.icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: #fff;
}

@keyframes rotate-circle {
  0% { transform: rotate(-45deg); }
  5% { transform: rotate(-45deg); }
  12% { transform: rotate(-405deg); }
  100% { transform: rotate(-405deg); }
}

@keyframes icon-line-tip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 50px; left: -8px; top: 37px; }
  84% { width: 17px; left: 21px; top: 48px; }
  100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 55px; right: 0px; top: 35px; }
  100% { width: 47px; right: 8px; top: 38px; }
}

/* Responsive */
@media (max-width: 991.98px) {
  .floating-contact-cards {
    gap: 15px;
  }

  .floating-card {
    padding: 15px 20px;
  }

  .globe-container {
    height: 350px;
    margin-bottom: 30px;
  }

  .contact-form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 767.98px) {
  .floating-contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .floating-card {
    width: 100%;
    max-width: 320px;
  }

  .globe-container {
    height: 280px;
  }

  .globe-greeting {
    font-size: 1.5rem;
  }

  .progress-steps .step-label {
    font-size: 0.7rem;
  }

  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .form-navigation {
    flex-direction: column;
  }

  .btn-prev,
  .btn-next,
  .btn-submit {
    width: 100%;
    margin: 0;
  }
}

/* Contact Main Row Adjustment */
.contact-main-row {
  align-items: stretch;
}

.contact-main-row > div {
  display: flex;
  flex-direction: column;
}

.contact-main-row .globe-container {
  flex: 1;
}

.contact-main-row .contact-form-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-main-row .contact-form-multi {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-main-row .vg-contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-main-row .form-step {
  flex: 1;
}

