/* Contact Page Styles */
.contact-page {
  min-height: 100vh;
  padding: 120px 2rem 4rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header Styles */
.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
}

.contact-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.contact-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-color);
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Content Layout */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.floating {
  position: relative;
  margin-bottom: 0.5rem;
}

.floating input,
.floating textarea {
  width: 100%;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  transition: all 0.3s ease;
}

.floating label {
  position: absolute;
  top: 0.7rem;
  left: 0;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating input:focus ~ label,
.floating input:valid ~ label,
.floating textarea:focus ~ label,
.floating textarea:valid ~ label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: var(--accent-color);
}

.floating .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.floating input:focus ~ .line,
.floating textarea:focus ~ .line {
  width: 100%;
}

/* Submit Button */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Contact Info Styles */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.benefits-list,
.process-list {
  list-style: none;
  padding: 0;
}

.benefits-list li,
.process-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  opacity: 0.8;
}

.benefits-list li::before,
.process-list li::before {
  content: "→";
  color: var(--accent-color);
  font-weight: bold;
}

.contact-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-color);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.social-link:hover {
  color: var(--accent-color);
  opacity: 1;
  transform: translateY(-2px);
}

/* Updated styles for service selection */
.service-selection {
  margin: 1.5rem 0;
}

.service-selection h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-option {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
  border-color: var(--accent-color);
}

.service-option h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-option p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.4;
}

.service-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.service-option input[type="checkbox"]:checked + label {
  color: var(--accent-color);
}

.service-option input[type="checkbox"]:checked + label h4 {
  color: var(--accent-color);
}

.service-option:has(input[type="checkbox"]:checked) {
  border-color: var(--accent-color);
  background: rgba(74, 144, 226, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
}

.service-option input[type="checkbox"]:checked + label::before {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 0.8s linear infinite;
}

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

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .loading-spinner {
  display: inline-block;
}

.success-message {
  display: none;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.success-message.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.contact-form.hide {
  display: none;
}

/* Canvas background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper,
  .info-card {
    padding: 1.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes glitch {
  0% {
    text-shadow:
      0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
      0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow:
      0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow:
      -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

/* Success Message Animation Styles */
.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #4caf50;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px #4caf50;
  animation:
    fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #4caf50;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #4caf50;
  }
}

/* Loading animation for submit button */
.submit-btn.loading {
  background: var(--accent-color);
  pointer-events: none;
}

.submit-btn.loading .btn-text {
  visibility: hidden;
  opacity: 0;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contact-footer {
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.social-link {
  color: var(--text-color);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.social-link svg {
  width: 28px;
  height: 28px;
}

#wave-canvas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  background: transparent;
}

/* Thank You Message Styles */
.thank-you-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.thank-you-content {
  position: relative;
  text-align: center;
  padding: 3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.particle-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
}

.glitch-text {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  position: relative;
  animation: glitch 1s infinite;
}

.fade-in-text {
  font-size: 1.5rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-top: 1rem;
  font-weight: 500;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

/* Success Container */
.success-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-text h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.success-text p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1.1rem;
}

.new-request-btn {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.new-request-btn:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

/* Error Container */
.error-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.error-icon {
  font-size: 1.25rem;
}

.error-content p {
  color: #e53e3e;
  margin: 0;
  font-size: 1rem;
}

/* Service Selection Error */
.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
  opacity: 0;
  animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Loading Button Enhancement */
.submit-btn.loading .loading-spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* Minimal Success Message */
.minimal-success {
  text-align: center;
  padding: 2rem;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.checkmark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #4caf50;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #4caf50;
  animation:
    fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #4caf50;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.minimal-success h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.minimal-success p {
  color: #4a5568;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Minimal Error */
.minimal-error {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.minimal-error p {
  color: #e53e3e;
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
