/* Contact page layout */
.contact-main {
  margin-top: -73px;
}

/* Hero Section */
.contact-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /*background: linear-gradient(135deg, #050609 0%, #0c1420 100%);*/
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.28;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 30%, rgba(225, 194, 151, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(230, 199, 156, 0.28) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  margin: 0 0 30px;
}

.title-main {
  display: block;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.title-sub {
  display: block;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-desc {
  font-size: clamp(18px, 2.5vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin: 0;
}

#contact-hero-canvas {
  position: fixed;
  top: -10vh;
  left: 0;
  width: 100vw;
  height: 110vh;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

/* Contact Options */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.contact-card {
  background: linear-gradient(135deg, rgba(16, 24, 34, 0.22), rgba(8, 10, 16, 0.18));
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e1c297, #e6c79c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  color: rgba(225, 194, 151, 0.95);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  color: #f0f4ff;
  margin: 0 0 20px;
}

.card-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(210, 220, 240, 0.7);
  margin: 0 0 30px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.card-link .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.card-link:hover .arrow {
  transform: translateX(4px);
}

/* Contact Form Section */
.contact-form-section {
  padding: 110px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.form-header {
  text-align: center;
  margin-bottom: 60px;
}

.form-title {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: #f5f8ff;
  margin: 0 0 20px;
}

.form-desc {
  font-size: 16px;
  color: rgba(220, 230, 245, 0.55);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(230, 235, 248, 0.85);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid rgba(90, 118, 150, 0.28);
  background: rgba(12, 16, 24, 0.3);
  color: #f5f6fb;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(225, 194, 151, 0.82);
  box-shadow: 0 0 0 4px rgba(225, 194, 151, 0.18);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 45px;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  border: 1px solid transparent;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-group.is-active::after {
  border-color: rgba(225, 194, 151, 0.4);
  opacity: 1;
  transform: scale(1);
}

.checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  color: rgba(230, 235, 250, 0.78);
}

.checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.form-submit {
  text-align: center;
  margin-top: 60px;
}

.btn-dark {
  display: inline-block;
  padding: 20px 60px;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-dark.primary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-dark.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.btn-dark.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-dark.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.submit-arrow {
  width: 18px;
  height: 18px;
}

/* FAQ Section */
.faq-section {
  padding: 120px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: #f3f6ff;
  margin: 0 0 60px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.faq-item[open] {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.faq-item summary {
  padding: 25px 30px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(245, 248, 255, 0.92);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 60px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: rgba(225, 194, 151, 0.9);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-item p {
  padding: 0 30px 25px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(230, 235, 255, 0.7);
  margin: 0;
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal="fade-up"] {
  transform: translate3d(0, 40px, 0);
}

/* Form Result Page */
.form-result {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
}

.form-result h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: #f5f8ff;
  margin: 0 0 30px;
}

.form-result p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(230, 235, 250, 0.85);
  margin: 0 0 20px;
}

.form-result a {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 40px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.form-result a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.form-result code {
  background: rgba(225, 194, 151, 0.15);
  color: rgba(225, 194, 151, 0.95);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.form-result button {
  margin-left: 12px;
  padding: 8px 20px;
  background: rgba(225, 194, 151, 0.2);
  color: rgba(225, 194, 151, 0.95);
  border: 1px solid rgba(225, 194, 151, 0.4);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.form-result button:hover {
  background: rgba(225, 194, 151, 0.3);
  border-color: rgba(225, 194, 151, 0.6);
  transform: translateY(-1px);
}

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

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

  .contact-card {
    padding: 40px 30px;
  }

  .form-result {
    padding: 30px 20px;
  }

  .form-result code {
    display: block;
    margin-bottom: 12px;
  }

  .form-result button {
    margin-left: 0;
    margin-top: 12px;
  }
}
