/* ============================================================
   CONTACT PAGE — Additional Styles
   ============================================================ */

/* Hero */
.contact-hero {
  background: var(--color-bg-dark);
  padding: calc(var(--header-height) + 64px) 0 64px;
  text-align: center;
}

.contact-hero-title {
  font-size: 40px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.contact-hero-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 16px auto 0;
}

.contact-hero-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

/* Layout */
.contact-main {
  min-height: 100vh;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 80px;
}

/* Form Wrap */
.contact-form-wrap {
  background: var(--color-bg-white);
}

/* Form Elements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-row-half .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.form-required {
  color: var(--color-accent);
  margin-left: 4px;
}

.form-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Underline-style inputs */
.form-input,
.form-textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border);
  padding: 10px 0;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #AAAAAA;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--color-primary);
}

.form-input.is-error,
.form-textarea.is-error {
  border-bottom-color: #D0021B;
}

.form-input-half {
  max-width: 280px;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}

.form-error {
  font-size: 13px;
  color: #D0021B;
  min-height: 18px;
  display: block;
}

/* Turnstile */
.cf-turnstile {
  margin-top: 8px;
}

/* Privacy */
.form-privacy {
  font-size: 13px;
  color: var(--color-text-light);
}

.form-privacy a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Submit Button */
.form-submit {
  align-self: flex-start;
  min-width: 200px;
  position: relative;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

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

/* Error banner */
.form-error-banner {
  padding: 14px 18px;
  background: #FFF0F0;
  color: #D0021B;
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid #D0021B;
}

/* Thank You */
.contact-thanks {
  text-align: center;
  padding: 64px 32px;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

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

.thanks-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.thanks-text {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Sidebar */
.contact-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: var(--color-bg-gray);
  padding: 24px;
}

.sidebar-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-list li {
  font-size: 14px;
  color: var(--color-text);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}

.sidebar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 2px;
  background: var(--color-accent);
}

.sidebar-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.sidebar-text strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }

  .contact-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: calc(var(--header-height) + 40px) 0 40px;
  }

  .contact-hero-title {
    font-size: 30px;
  }

  .contact-hero-text br {
    display: none;
  }

  .form-row-half {
    flex-direction: column;
    gap: 28px;
  }

  .form-input-half {
    max-width: 100%;
  }

  .form-submit {
    width: 100%;
  }
}
