


.primary-button {
  display: block;
  width: 100%;
  background: var(--violet);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--violet-deep);
  text-decoration: none;
  color: #ffffff;
}

.primary-button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.large-button {
  padding: 1.15rem 1rem;
  font-size: 1.15rem;
  animation: warm-pulse 3.6s ease-out infinite;
}

.amber-button {
  background: var(--amber);
  color: var(--ink);
}

.amber-button:hover,
.amber-button:focus-visible {
  background: #d99b00;
  color: var(--ink);
}

.ghost-button {
  display: inline-block;
  width: auto;
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--violet);
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: var(--fluid-font-sm);
  text-align: center;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: var(--violet);
  color: #ffffff;
  text-decoration: none;
}

.button-note {
  font-size: var(--fluid-font-sm);
  color: var(--ink-muted);
  text-align: center;
}


.order-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.order-modal-open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 51, 0.55);
  animation: veil-in 0.28s ease both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(94%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  margin: 4vh auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4) var(--space-4);
  box-shadow: 0 32px 80px rgba(28, 16, 51, 0.4);
  animation: modal-lift 0.34s cubic-bezier(0.22, 0.68, 0.36, 1) both;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--violet);
  background: var(--surface-lilac);
}

.modal-head h2 {
  color: var(--ink);
  margin-bottom: 8px;
}

.modal-head p {
  font-size: var(--fluid-font-sm);
}

.modal-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1);
  background: var(--surface-lilac);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
}

.modal-summary-name {
  font-weight: 600;
  color: var(--ink);
}

.modal-summary-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.form-label {
  font-size: var(--fluid-font-sm);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  min-height: 48px;
}

.form-input::placeholder {
  color: var(--ink-muted);
}

.form-input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
  background: var(--paper);
}

.form-consent {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}

.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--violet);
}

.form-consent label {
  font-size: var(--fluid-font-sm);
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-consent a {
  color: var(--violet);
  text-decoration: underline;
}

.form-error {
  display: none;
  font-size: var(--fluid-font-sm);
  color: #8f1132;
  background: var(--surface-blush);
  border-left: 3px solid #8f1132;
  border-radius: var(--radius);
  padding: 10px 14px;
}

.form-error-visible {
  display: block;
  animation: rise-in 0.3s ease both;
}

.form-note {
  font-size: var(--fluid-font-sm);
  color: var(--ink-muted);
  text-align: center;
}


.order-success {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
  padding: var(--space-3) 0;
}

.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-lilac);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise-in 0.5s ease both;
}

.success-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-success h2 {
  color: var(--ink);
}

.order-success p {
  max-width: 44ch;
}


@media (max-width: 768px) {
  .modal-panel {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    padding-bottom: var(--space-8);
  }

  .ghost-button {
    display: block;
    width: 100%;
  }
}
