/* Base styles matching Chainalysis theme */
:root {
  --orange: #ff5300;
  --deep-blue: #293972;
  --dark-blue: #1e2a5c;
  --soft-gray: #f8f9fa;
  --text-gray: #666;
  --white: #ffffff;
  --border-radius: 12px;
  --spacing-small: 1rem;
  --spacing-medium: 2rem;
  --spacing-large: 3rem;
  --spacing-xlarge: 4rem;
  --hover-bg-color: white;
  --hover-border-color: rgb(41, 57, 114);
  --hover-text-color: rgb(41, 57, 114);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--white);
  min-height: 100vh; /* Changed from height: 100% */
  margin: 0;
  display: flex;
  flex-direction: column;
}

.page-white-space {
  background: var(--white);
}

/* Layout */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 -10px;
}

/* Spacing */
.padding-top-large {
  padding-top: var(--spacing-large);
}
.padding-bottom-small {
  padding-bottom: var(--spacing-small);
}
.padding-top {
  padding-top: var(--spacing-medium);
}
.padding-bottom-large {
  padding-bottom: var(--spacing-large);
}
.padding-top-medium {
  padding-top: var(--spacing-medium);
}
.padding-bottom-medium {
  padding-bottom: var(--spacing-medium);
}
.desktop-padding-top-xlarge {
  padding-top: var(--spacing-xlarge);
}
.desktop-padding-bottom-xlarge {
  padding-bottom: var(--spacing-xlarge);
}

/* Typography */
.font-size-2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.font-size-3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.bg-soft-gray {
  background-color: var(--soft-gray);
}

.bg-orange-to-orange-tint-gradient-to-right {
  background: linear-gradient(90deg, var(--orange) 0%, #ff7a3d 100%);
}

/* Form Styles */

.form-module {
  width: 400px;
}

/* Hide form module on mobile */
@media screen and (max-width: 768px) {
  .form-module {
    display: none;
  }
}

.form-wrapper {
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 1px;
  border-radius: 24px;
  border: 2px solid #ff5300;
}

@media screen and (max-width: 450px) {
  .form-wrapper {
    padding: 10px;
  }
}

.rounded {
  border-radius: var(--border-radius);
}

.padded-area {
  padding: var(--spacing-large);
}

.template-content {
  padding: 24px 20px;
}

.logo-wrapper {
  width: 160px;
  text-align: left;
}

.logo-wrapper svg {
  width: 100%;
  height: auto;
  fill: rgb(230, 74, 0); /* sets SVG paths to orange color */
}

.content {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  margin: 0 auto;
  column-gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .content {
    margin-bottom: 0px;
    flex-direction: column;
    row-gap: 24px;
    padding: 0;
  }
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--deep-blue);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--white);
  height: 40px !important;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 83, 0, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 128px;
}

.form-textarea::placeholder {
  color: var(--text-gray);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 200ms ease 0s;
  font-family: inherit;
  text-align: center;
  min-width: 140px;
  letter-spacing: 2px;
}

.btn--orange {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn:hover {
  background-color: var(--hover-bg-color);
  border-color: var(--hover-border-color);
  color: var(--hover-text-color);
}

.form-submit-btn {
  width: 200px;
  margin: 0 auto;
  border-radius: 64px !important;
  display: block !important;
}

/* CTA Section */
.content-wrapper {
  display: flex;
}

.buttons.center {
  text-align: center;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__icon-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal__icon-close:hover {
  background-color: #f3f4f6;
}

.modal-title {
  margin-bottom: 1rem;
  color: var(--deep-blue);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal__description {
  max-height: 600px !important;
}

.modal__description p {
  margin-bottom: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Form validation styles */
.form-input:invalid {
  border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

/* Success message */
.success-message {
  background-color: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: none;
}

.success-message.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .font-size-2 {
    font-size: 2rem;
  }

  .font-size-3 {
    font-size: 1.5rem;
  }

  .padded-area {
    padding: var(--spacing-medium);
  }

  .section-container {
    padding: 0 15px;
  }

  .modal-content {
    margin: 20px;
    padding: var(--spacing-medium);
  }
}

.footerRow {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgb(41, 57, 114);
  font-size: 17px;
  justify-content: space-evenly;
  padding-top: 24px;
  border-top: 1px solid rgb(41, 57, 114);
  margin: 24px 20px 0 20px;
  padding-bottom: 20px;
}

@media (max-width: 624px) {
  .footerRow {
    flex-direction: column;
    row-gap: 12px;
    text-align: center;
  }
}

.footerRow p,
.footerRow a {
  color: rgb(41, 57, 114);
  font-size: 17px;
  text-decoration: none;
  margin: 0;
  font-weight: 500;
}

.footerRow a:hover {
  color: rgb(31, 47, 104);
  text-decoration: underline;
}
