* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", sans-serif;
  background-color: #000;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.section {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

.edm-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  background: transparent;
  overflow: hidden;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
}

.layer.slider-layer {
  touch-action: pan-y pinch-zoom;
}

.layer img {
  width: 100%;
  height: auto;
  display: block;
}

.bg-layer {
  position: relative;
  z-index: 1;
}

.slider-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-image {
  position: absolute;
  width: 100%;
  height: auto;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

.group-wrapper {
  position: absolute;
  left: 0%;
  top: 0%;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.group-container {
  position: relative;
  width: 100%;
  height: auto;
}

.group-container .layer {
  margin: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.group-container.absolute-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
  pointer-events: auto;
}

.custom-slider:active {
  cursor: grabbing;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.group-container {
  position: relative;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .edm-container {
    max-width: 100%;
  }
}

.s1-g1-1 {
  position: relative;
}

.s1-g1-2 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s1-g1-3 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s1-g1-4 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s1-g1-5 {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0%;
  left: 0%;
  z-index: 1;
}

.s2-g1-1 {
  position: relative;
}

.s2-g1-2 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s2-g1-3 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s3-g1-1 {
  position: relative;
}

.s3-g2-1 {
  position: relative;
}

.s3-g3-1 {
  position: relative;
}

.s4-g1-1 {
  position: relative;
}

.s4-g2-1 {
  position: relative;
}

.s4-g2-2 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s4-g2-3 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  width: 100%;
  height: 57%;
  z-index: 1;
  pointer-events: auto;
}

.s4-g2-3 .custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.s4-g3-1 {
  position: relative;
}

.s4-g3-2 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  width: 100%;
  height: 57%;
  z-index: 1;
  pointer-events: auto;
}

.s4-g3-2 .custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.s5-g1-1 {
  position: relative;
}

.s5-g1-2 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s6-g1-1 {
  position: relative;
}

.s6-g1-2 {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0%;
  left: 0%;
  z-index: 1;
}

.s6-g2-1 {
  position: relative;
}

.s6-g2-2 {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0%;
  left: 0%;
  z-index: 1;
}

.s7-g1-1 {
  position: relative;
}

.s7-g1-2 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s7-g1-3 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s7-g1-4 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s7-g1-5 {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0%;
  left: 0%;
  z-index: 1;
}

.s8-g1-1 {
  position: relative;
}

.s8-g1-2 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s8-g1-3 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

.s8-g1-4 {
  position: absolute;
  top: 0%;
  right: auto;
  bottom: auto;
  left: 0%;
  z-index: 1;
}

/* 客製化微調修正*/
.no-pointer {
  pointer-events: none;
  user-select: none;
}
.hidden {
  visibility: hidden;
}

.cta-menu-box {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% + 720px / 2 + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  padding: 5px;

  backdrop-filter: blur(10px) saturate(180%);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (max-width: 1100px) {
  .cta-menu-box {
    top: auto;
    left: auto;
    bottom: 20px;
    right: 20px;
    transform: none;
  }
}

.cta-menu-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(103, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
  border-radius: 28px;
  pointer-events: none;
}

.cta-menu-box:hover {
  transform: translateY(-54px) scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 12px 35px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 1100px) {
  .cta-menu-box:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

.div-cta-element {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.div-cta-element:hover {
  transform: scale(1.12) translateY(-2px);
}

.div-cta-element:active {
  transform: scale(0.92);
}

.div-cta-icon-box.cta-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25), 0 3px 10px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.div-cta-icon-box.cta-v2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.div-cta-element:hover .div-cta-icon-box.cta-v2 {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.35), 0 5px 15px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.div-cta-element:hover .div-cta-icon-box.cta-v2::before {
  opacity: 1;
}

.cta-icon {
  font-size: 22px;
  color: white;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.div-cta-element:hover .cta-icon {
  transform: scale(1.15) rotate(5deg);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-mobile-decorated-line-v1 {
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, rgba(103, 126, 234, 0.3) 0%, rgba(103, 126, 234, 0.8) 50%, rgba(118, 75, 162, 0.3) 100%);
  border-radius: 2px;
  margin: 10px 0;
  opacity: 0.5;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(103, 126, 234, 0.2);
}

.cta-menu-box:hover .cta-mobile-decorated-line-v1 {
  opacity: 0.8;
  transform: scaleY(1.1);
}

.cta-text {
  display: none;
}

@media (max-width: 768px) {
  .cta-menu-box {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1), 0 -4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.95);
  }

  .div-cta-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 60px;
  }

  .div-cta-icon-box.cta-v2 {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }

  .cta-icon {
    font-size: 22px;
  }

  .cta-mobile-decorated-line-v1 {
    display: none;
  }

  .cta-text {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .cta-menu-box {
    padding: 12px 15px;
    gap: 10px;
  }

  .div-cta-element {
    min-width: 55px;
  }

  .div-cta-icon-box.cta-v2 {
    width: 46px;
    height: 46px;
  }

  .cta-icon {
    font-size: 20px;
  }

  .cta-text {
    font-size: 10px;
    margin-top: 3px;
  }
}

#section-contact {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  background: white;
  background: #182648;

  padding: 60px 20px;
  display: block !important;
  visibility: visible !important;
}

.contact-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
}

.contact-form-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 5%;

  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.contact-form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  display: block !important;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label:not(.checkbox-item) {
  display: block;
  margin-bottom: 8px;

  color: white;

  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
  position: relative;
  gap: 8px;
  margin-bottom: 0 !important;
}

.checkbox-item:hover {
  background-color: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
  border-radius: 8px;
}

.checkbox-item input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.checkmark {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin: 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.checkmark:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.checkbox-text {
  display: flex;
  align-items: center;
  line-height: 1.3;
  font-size: 14px;

  color: white;
  height: 20px;
}

.privacy-group {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: blur(20px);
}

.privacy-content {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.privacy-content p {
  margin-bottom: 8px;
}

.privacy-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.privacy-content ul {
  margin: 4px 0;
  padding-left: 20px;
}

.privacy-content li {
  margin-bottom: 4px;
}

.privacy-link {
  color: #8b93ff;
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.privacy-link:hover {
  color: #a5b4fc;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(139, 147, 255, 0.5);
}

.privacy-checkbox {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.submit-group {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  display: inline-block;
}

.btn-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  transition: all 0.3s ease;
  display: block;

  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  will-change: transform;

  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.submit-btn:hover .btn-image {
  transform: translateY(-2px) scale(1.02);
}

.submit-btn:active .btn-image {
  transform: translateY(0) scale(0.98);
}

.submit-btn:disabled .btn-image {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(50%);
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}

.error-message {
  color: #ff8a80;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  min-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.privacy-checkbox + .error-message {
  margin-top: 6px;

  font-size: 11px;
  color: #ff8a80;
  display: block;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
}

.popup-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-success .success-icon {
  width: 60px;
  height: 60px;
  background: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-error .error-icon {
  width: 60px;
  height: 60px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-content h3 {
  margin: 0 0 16px;
  color: #333;
  font-size: 24px;
}

.popup-content p {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.5;
}

.popup-close {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  #section-contact {
    padding: 40px 15px;
  }

  .submit-btn {
    padding: 10px;
    margin-bottom: 105px;

    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  .btn-image {
    -webkit-transform: translate3d(0, 0, 0) scale(1.001);
    transform: translate3d(0, 0, 0) scale(1.001);

    border-radius: 0.5px;
    outline: 1px solid transparent;
  }

  .contact-form {
    padding: 0;
    margin: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .privacy-group {
    padding: 16px;
  }

  .privacy-content {
    font-size: 12px;
  }

  .popup-content {
    padding: 30px 20px;
    margin: 20px;
  }
}

.field-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
}

.loader-content {
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}

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

@media (max-width: 768px) {
  .loader-content {
    padding: 30px 25px;
    margin: 20px;
  }

  .loader-spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
    border-top-width: 3px;
  }

  .loader-text {
    font-size: 16px;
  }
}

#section-contact {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  background: white;
  background: #182648;

  padding: 60px 20px;
  display: block !important;
  visibility: visible !important;
}

.contact-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
}

.contact-form-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 5%;

  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.contact-form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  display: block !important;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label:not(.checkbox-item) {
  display: block;
  margin-bottom: 8px;

  color: white;

  font-weight: 600;
  font-size: 16px;
  letter-spacing: 2px;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
  position: relative;
  gap: 8px;
  margin-bottom: 0 !important;
}

.checkbox-item:hover {
  background-color: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
  border-radius: 8px;
}

.checkbox-item input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.checkmark {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin: 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.checkmark:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.checkbox-text {
  display: flex;
  align-items: center;
  line-height: 1.3;
  font-size: 14px;

  color: white;
  height: 20px;
}

.privacy-group {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: blur(20px);
}

.privacy-content {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.privacy-content p {
  margin-bottom: 8px;
}

.privacy-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.privacy-content ul {
  margin: 4px 0;
  padding-left: 20px;
}

.privacy-content li {
  margin-bottom: 4px;
}

.privacy-link {
  color: #8b93ff;
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.privacy-link:hover {
  color: #a5b4fc;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(139, 147, 255, 0.5);
}

.privacy-checkbox {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.submit-group {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  display: inline-block;
}

.btn-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  transition: all 0.3s ease;
  display: block;

  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  will-change: transform;

  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.submit-btn:hover .btn-image {
  transform: translateY(-2px) scale(1.02);
}

.submit-btn:active .btn-image {
  transform: translateY(0) scale(0.98);
}

.submit-btn:disabled .btn-image {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(50%);
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}

.error-message {
  color: #ff8a80;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  min-height: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.privacy-checkbox + .error-message {
  margin-top: 6px;

  font-size: 11px;
  color: #ff8a80;
  display: block;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
}

.popup-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-success .success-icon {
  width: 60px;
  height: 60px;
  background: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-error .error-icon {
  width: 60px;
  height: 60px;
  background: #e74c3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.popup-content h3 {
  margin: 0 0 16px;
  color: #333;
  font-size: 24px;
}

.popup-content p {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.5;
}

.popup-close {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  #section-contact {
    padding: 40px 15px;
  }

  .submit-btn {
    padding: 10px;
    margin-bottom: 105px;

    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  .btn-image {
    -webkit-transform: translate3d(0, 0, 0) scale(1.001);
    transform: translate3d(0, 0, 0) scale(1.001);

    border-radius: 0.5px;
    outline: 1px solid transparent;
  }

  .contact-form {
    padding: 0;
    margin: 0;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .privacy-group {
    padding: 16px;
  }

  .privacy-content {
    font-size: 12px;
  }

  .popup-content {
    padding: 30px 20px;
    margin: 20px;
  }
}

.field-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
}

.loader-content {
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}

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

@media (max-width: 768px) {
  .loader-content {
    padding: 30px 25px;
    margin: 20px;
  }

  .loader-spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
    border-top-width: 3px;
  }

  .loader-text {
    font-size: 16px;
  }
}
