/* =====================
   Buy Hero
   ===================== */

.buy-hero {
  border-bottom: 1px solid var(--color-glass-border);
}

/* =====================
   Tier Info Card
   ===================== */

.tier-info-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tier-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tier-icon {
  font-size: 2.2rem;
  color: var(--color-brand-orange);
  margin-bottom: 0.75rem;
}

.tier-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 0.3rem;
}

.tier-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.2rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-features li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.tier-features li i {
  color: var(--color-brand-orange);
  width: 20px;
  margin-right: 0.5rem;
}

/* =====================
   Thank You Message
   ===================== */

.buy-thank-you {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-brand-orange);
  text-align: center;
  margin: 2rem 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.buy-thank-you.collapsed {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* =====================
   Form Wrapper
   ===================== */

.buy-form-wrapper {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.6s ease;
}

.buy-form-wrapper.collapsed {
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.buy-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1.8rem;
}

/* =====================
   Contact Info Grid
   ===================== */

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.buy-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.buy-field-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.buy-input {
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--color-glass-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.buy-input:focus {
  border-color: var(--color-brand-orange);
  background: rgb(242 139 42 / 6%);
  box-shadow: 0 0 0 3px rgb(242 139 42 / 12%);
}

.buy-input.buy-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b949e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.buy-input option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* =====================
   Tool Selectors Section
   ===================== */

.tool-selectors-section {
  margin-bottom: 2rem;
}

.tool-selectors-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.tool-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-group {
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--color-glass-border);
  border-radius: 12px;
  padding: 1.2rem;
  transition: border-color 0.2s ease;
}

.tool-group h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.tool-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tool-options > input[type="radio"] {
  display: none;
}

.tool-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-glass-border);
  border-radius: 10px;
  cursor: pointer;
  background: rgb(255 255 255 / 2%);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  position: relative;
}

.tool-options label:hover {
  border-color: var(--color-brand-orange);
  background: rgb(242 139 42 / 8%);
  transform: translateY(-2px);
}

.tool-options label:has(input[type="radio"]:checked) {
  border-color: var(--color-brand-orange);
  background: rgb(242 139 42 / 14%);
  box-shadow: 0 0 0 2px rgb(242 139 42 / 20%);
}

.tool-options input[type="radio"] {
  display: none;
}

.tool-options img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.tool-options > label[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-glass-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}

.other-input {
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--color-glass-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  outline: none;
  width: 100%;
  margin-top: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.other-input:focus {
  border-color: var(--color-brand-orange);
  background: rgb(242 139 42 / 6%);
}

.other-input::placeholder {
  color: var(--color-text-muted);
}

/* Validation error state */
.tool-group[style*="border: 2px solid red"] {
  border-color: #f85149 !important;
  box-shadow: 0 0 0 3px rgb(248 81 73 / 15%);
}

/* =====================
   Submit Row
   ===================== */

.buy-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.buy-submit-btn {
  min-width: 180px;
  text-align: center;
}

.buy-submit-btn:disabled {
  background: rgb(242 139 42 / 25%);
  border: 1px solid rgb(242 139 42 / 40%);
  color: rgb(242 139 42 / 70%);
  cursor: default;
  transform: none;
  box-shadow: none;
  opacity: 1;
}

/* =====================
   Responsive
   ===================== */

@media (width < 768px) {
  .tier-info-card {
    padding: 1.5rem;
  }

  .buy-form-wrapper {
    padding: 1.5rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .tool-selectors {
    grid-template-columns: 1fr;
  }

  .tool-options label {
    width: 42px;
    height: 42px;
  }

  .tool-options img {
    max-width: 26px;
    max-height: 26px;
  }
}
