/* Ensure [hidden] always wins over flex/grid display rules */
[hidden] { display: none !important; }

/* ══════════════════════════════
   ORDER PAGE — PAGE HERO
══════════════════════════════ */
.order-page-hero {
  padding: calc(72px + var(--sp-lg)) 0 var(--sp-lg);
  background: var(--grad-light);
  text-align: center;
}

.order-page-title {
  font-family: Georgia, serif;
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: var(--sp-sm);
}
.order-page-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.order-page-subtitle {
  font-size: var(--text-base);
  color: var(--gray);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ══════════════════════════════
   ORDER LAYOUT
══════════════════════════════ */
.order-layout {
  padding: var(--sp-lg) 0 var(--sp-xl);
  background: #fff;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-lg);
  align-items: start;
}

/* ══════════════════════════════
   FORM
══════════════════════════════ */
.order-form-wrap {
  background: var(--warm-white);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  border: 1px solid var(--border);
}

.form-heading {
  font-family: Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--sp-md);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* ── Field ── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: var(--text-base);
  color: var(--dark);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.field-input::placeholder { color: #C8B4BC; }
.field-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196,32,104,0.1);
}
.field-input:invalid:not(:placeholder-shown) {
  border-color: #E55;
}

.field-select { cursor: pointer; 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='%236B5E65' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.field-textarea { resize: vertical; min-height: 120px; }

.field-hint {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* ── File upload ── */
.hidden { display: none; }

.upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-area:hover,
.upload-area:focus-within { border-color: var(--rose); background: var(--light-rose); }

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.upload-placeholder,
.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-md);
  text-align: center;
  pointer-events: none;
}

.upload-icon { font-size: 32px; line-height: 1; }
.upload-text { font-size: var(--text-sm); font-weight: 600; color: var(--dark); }
.upload-subtext { font-size: 12px; color: var(--gray); }

.upload-preview { flex-direction: row; gap: 12px; padding: 18px var(--sp-md); pointer-events: none; }
.upload-filename { font-size: var(--text-sm); color: var(--dark); font-weight: 500; }
.upload-remove {
  pointer-events: all;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  z-index: 3;
  position: relative;
}
.upload-remove:hover { background: #FFE4EF; color: var(--rose); }

/* ── Submit ── */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: var(--text-base);
  margin-top: var(--sp-xs);
}

.form-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
}

/* ── Success ── */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-lg);
  gap: var(--sp-sm);
}
.success-icon { font-size: 56px; line-height: 1; }
.success-title {
  font-family: Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark);
}
.success-text { font-size: var(--text-base); color: var(--gray); max-width: 420px; line-height: 1.7; }

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.order-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  position: sticky;
  top: calc(72px + var(--sp-md));
}

.sidebar-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-card-rose {
  background: var(--light-rose);
  border-color: var(--border);
}

.sidebar-icon { font-size: 28px; line-height: 1; }

.sidebar-card-title {
  font-family: Georgia, serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--dark);
}

.sidebar-card-text {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.7;
}
.sidebar-card-text strong { color: var(--dark); }

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-list li {
  font-size: var(--text-sm);
  color: var(--gray);
  padding-left: 16px;
  position: relative;
}
.sidebar-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-size: 9px;
  top: 4px;
}

.sidebar-contact {
  text-align: center;
  padding: var(--sp-sm);
}
.sidebar-contact-label {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}
.sidebar-contact-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--rose);
  transition: opacity 0.2s;
}
.sidebar-contact-link:hover { opacity: 0.75; }

/* ══════════════════════════════
   MOBILE
══════════════════════════════ */
@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
  .order-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 480px) {
  .order-form-wrap { padding: var(--sp-md); }
  .order-page-hero { padding-top: calc(72px + var(--sp-md)); }
}
