.contact-section {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  z-index: 10;
  padding: 120px 20px 60px 20px;
}

/* Background Effects */
.background-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: orbFloat 20s infinite ease-in-out;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: rgba(51, 12, 179, 0.3);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.25);
  bottom: -50px;
  right: -50px;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

/* Info Section */
.info-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem;
}

.cinematic-container {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid rgba(51, 12, 179, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  animation: containerAppear 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.info-section h2 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: -2px;
}

@keyframes containerAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-text {
  opacity: 0;
  animation: revealText 0.8s 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes revealText {
  from {
    opacity: 0;
    transform: translateX(-30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.gradient-text {
  background: linear-gradient(45deg, rgba(51, 12, 179, 0.85), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-section p {
  font-size: 1.4rem;
  color: #505c68;
  line-height: 1.6;
  max-width: 90%;
}

.reveal-text-sub {
  opacity: 0;
  animation: revealText 0.8s 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Unused contact methods removed */

/* Form Section */
.form-section {
  background: #ffffff;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(51, 12, 179, 0.15);
  border-radius: 30px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(51, 12, 179, 0.8),
    transparent
  );
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.form-header p {
  color: #6c757d;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Input Styles */
.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  color: #1a1a1a;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
  box-sizing: border-box;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 150px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: rgba(51, 12, 179, 0.85);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(51, 12, 179, 0.1);
}

.input-wrapper label {
  position: absolute;
  left: 1.5rem;
  top: 37%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s;
  background: transparent;
  padding: 0.1rem 0.5rem 0rem 0.5rem;
}

.input-wrapper textarea + label {
  top: 1.2rem;
  transform: none;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper textarea:focus + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
  top: -0.3rem;
  left: 1rem;
  font-size: 0.85rem;
  color: rgba(51, 12, 179, 0.85);
  background: #ffffff;
  font-weight: 600;
  z-index: 12;
}

/* Specific adjustment for textarea label to align correctly on border */
.input-wrapper textarea:focus + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
  top: -0.7rem;
}

.char-count {
  position: absolute;
  bottom: -1.5rem;
  right: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Error Messages for JS */
.error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  margin-left: 1rem;
  display: none;
  animation: slideDown 0.3s ease-out;
  position: relative;
  z-index: 20; /* Higher than label (12) */
}

.error.show {
  display: block;
}

.error-field {
  border-color: #dc3545 !important;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1.3rem;
  background: #330cb3; /* Fixed Main Color */
  border: none;
  border-radius: 15px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 8px 20px rgba(51, 12, 179, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-btn:hover:not(:disabled) {
  background: #280a8c;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(51, 12, 179, 0.35);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* Loader Styles */
.btn-text,
.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Feedback Message */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsiveness */
@media (max-width: 968px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 100px 20px 40px 20px;
  }

  .info-section {
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .info-section h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .cinematic-container {
    padding: 2rem 1.5rem;
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 80px 15px 30px 15px;
    gap: 2rem;
  }

  .info-section h2 {
    font-size: 2rem;
    margin-top: 1rem;
  }

  .form-section {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }

  .input-wrapper {
    margin-bottom: 1rem;
  }

  .form-row {
    gap: 1rem;
  }
}
