:root {
  --bg-color: #0b0914;
  --form-bg: #19162c;
  --form-border: #292452;
  --input-bg: #131122;
  --input-border: #3a3366;
  --input-success: #257a08;
  --input-error: #c62f2f;
  --btn-submit: #ff3868;
  --btn-portal: #36324d;
  --text-primary: #ffffff;
  --font-sora: 'Sora', sans-serif;
  --font-inter: 'Inter', sans-serif;
}

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




body {
  background-color: var(--bg-color) !important;
	
/* background: linear-gradient(to bottom, var(--bg-color) 0%, #000000 100%) !important;
  background-attachment: fixed !important; */
	
  color: var(--text-primary);
  font-family: var(--font-inter);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
main h1, main h2, main h3{
	color: white !important;
	font-family: var(--font-heading);
}
/* Background graphics layer */
.background-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  opacity: 1;
}

.bg-shape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.bg-1 {
  width: 900px;
  height: 900px;
  top: 0;
  left: 0;
}

.bg-2 {
  width: 1100px;
  height: 800px;
  top: 0;
  right: 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  max-width: 1225px;
  /* approx max width from Figma */
  margin: 0 auto;
  width: 100%;
}

.logo {
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sora);
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

.portal-btn {
  background-color: var(--btn-portal);
  color: var(--text-primary);
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  cursor: pointer;
  min-width: 140px;
  height: 44px;
  transition: background-color 0.2s ease;
}

.portal-btn:hover {
  background-color: #433e5c;
}

/* Main Form Area */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.hero-section {
  background-color: var(--form-bg);
  border: 1px solid var(--form-border);
  border-radius: 32px;
  padding: 24px 32px;
  width: 100%;
  max-width: 651px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.2;
  text-align: center;
}

.wpcf7 form {
  width: 100%;
}

.wpcf7 form>p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 24px;
  width: 100%;
}

.wpcf7 form br {
  display: none;
  /* Hide default CF7 line breaks */
}

/* Base styles for labels */
.wpcf7 form label {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  font-family: var(--font-sora);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
}

/* Grid layout positioning */
.wpcf7 form p>label:nth-of-type(1) {
  /* First name */
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.wpcf7 form p>label:nth-of-type(2) {
  /* Email */
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.wpcf7 form p>label:nth-of-type(3) {
  /* Website */
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.wpcf7 form p>label:nth-of-type(4) {
  /* Project textarea */
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}

.wpcf7 form p>span.wpcf7-spinner {
  grid-column: 1 / 3;
  grid-row: 5 / 6;
  justify-self: center;
  margin-top: -16px;
}

.wpcf7 form input[type="submit"] {
  grid-column: 1 / 3 !important;
  grid-row: 4 / 5 !important;
  margin: 0 auto !important;
  display: block;
}

.wpcf7 span.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 24px;
  padding: 16px 24px;
  color: var(--text-primary);
  font-family: var(--font-inter);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.wpcf7 textarea {
  resize: none;
  height: 140px;
  border-radius: 24px;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.wpcf7 .wpcf7-not-valid-tip {
  font-family: var(--font-sora);
  font-size: 12px;
  color: var(--input-error);
  margin-top: 4px;
  display: block;
}

/* Specific Border States for demo content match */
.wpcf7 .wpcf7-not-valid {
  border-color: var(--input-error) !important;
}

.wpcf7 input:not(:placeholder-shown):not(.wpcf7-not-valid)[aria-invalid="false"],
.wpcf7 textarea:not(:placeholder-shown):not(.wpcf7-not-valid)[aria-invalid="false"] {
  border-color: var(--input-success) !important;
}

.wpcf7 input[type="submit"] {
  background-color: var(--btn-submit) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-inter) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  border: none !important;
  border-radius: 16px !important;
  height: 52px;
  width: 240px;
  cursor: pointer;
  margin: 0 auto !important;
  transition: transform 0.2s ease, filter 0.2s ease;
  display: block;
}

.wpcf7 input[type="submit"]:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-2px) !important;
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0) !important;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .wpcf7 form>p {
    grid-template-columns: 1fr;
  }

  .wpcf7 form p>label:nth-of-type(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .wpcf7 form p>label:nth-of-type(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .wpcf7 form p>label:nth-of-type(3) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .wpcf7 form p>label:nth-of-type(4) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
  }

  .wpcf7 form input[type="submit"] {
    grid-column: 1 / 2 !important;
    grid-row: 5 / 6 !important;
  }

  .wpcf7 form p>span.wpcf7-spinner {
    grid-column: 1 / 2;
    grid-row: 6 / 7;
  }

  .hero-section {
    padding: 32px 24px;
  }

  .hero-title {
    font-size: 32px;
  }
}