/* ═══════════════════════════════════════════════════
   ORDER A SAMPLE — Modal Popup
   ═══════════════════════════════════════════════════ */

.sample-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sample-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sample-modal {
  background: var(--white, #ffffff);
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.sample-modal-backdrop.open .sample-modal {
  transform: translateY(0);
}

.sample-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--black, #000);
  opacity: 0.4;
  transition: opacity 0.2s;
  z-index: 1;
}
.sample-modal-close:hover { opacity: 1; }

.sample-modal-header {
  padding: 40px 40px 0;
}
.sample-modal-title {
  font-family: 'Concrette S', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--black, #000);
  margin-bottom: 6px;
}
.sample-modal-subtitle {
  font-family: 'Concrette S', serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--black, #000);
  opacity: 0.6;
  line-height: 1.3;
  max-width: 420px;
}

/* Selected stone card */
.sample-modal-stone {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream, #f3f1e6);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 20px 40px 0;
}
.sample-modal-stone img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.sample-modal-stone-ph {
  width: 56px;
  height: 56px;
  background: #d9d9d9;
  border-radius: 4px;
  flex-shrink: 0;
}
.sample-modal-stone-name {
  font-family: 'Concrette S', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--black, #000);
}
.sample-modal-stone-coll {
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--black, #000);
  opacity: 0.5;
}

/* Form */
.sample-modal-form {
  padding: 28px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.smf-row { display: flex; gap: 16px; }
.smf-input {
  background: var(--cream, #f3f1e6);
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--black, #000);
  width: 100%;
  outline: none;
}
.smf-input::placeholder { color: var(--black, #000); opacity: 0.35; }
.smf-input:focus { box-shadow: 0 0 0 2px var(--olive, #564d22); }
.smf-select {
  background: var(--cream, #f3f1e6);
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--black, #000);
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px 6px;
  padding-right: 44px;
}
.smf-label {
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--black, #000);
  opacity: 0.5;
  margin-bottom: 4px;
  display: block;
}
.smf-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.smf-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--olive, #564d22);
  cursor: pointer;
  flex-shrink: 0;
}
.smf-checkbox label {
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--black, #000);
  cursor: pointer;
}
.smf-submit-row { display: flex; justify-content: flex-end; }
.smf-submit {
  background: var(--olive, #564d22);
  color: var(--white, #fff);
  font-family: 'Degular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  padding: 10px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}
.smf-submit:hover { opacity: 0.9; }

/* Stone card sample button */
.stone-card-sample {
  font-family: 'Degular', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
  align-self: flex-start;
}
.stone-card-sample:hover {
  color: var(--white, #fff);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  .sample-modal { width: 95%; max-width: none; }
  .sample-modal-header { padding: 32px 24px 0; }
  .sample-modal-stone { margin: 16px 24px 0; }
  .sample-modal-form { padding: 20px 24px 32px; }
  .smf-row { flex-direction: column; gap: 20px; }
  .sample-modal-title { font-size: 24px; }
}
