/* Stone Quote Form – stonequoteform.css */

/* ── Wrapper ── */
.sqf-wrapper {
  margin: 2rem 0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.5rem;
  background: #fff;
}

/* ── Tabs ── */
.sqf-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5rem;
}
.sqf-tab {
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  color: #888;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.sqf-tab:hover { color: #333; }
.sqf-tab--active { color: #333; border-bottom-color: #333; }

/* ── Panels ── */
.sqf-panel { display: none; }
.sqf-panel--active { display: block; }
.sqf-panel__title {
  font-size: 18px;
  font-weight: 400;
  color: #333;
  margin-bottom: .5rem;
}
.sqf-panel__desc {
  font-size: 13px;
  color: #777;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── Shapes grid ── */
.sqf-shapes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sqf-shape-btn {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  transition: border-color .2s, background .2s, color .2s;
}
.sqf-shape-btn:hover {
  border-color: #aaa;
  background: #ececec;
  color: #666;
}
.sqf-shape-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

/* ── Overlay & Modal ── */
.sqf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.sqf-overlay--open { display: flex; }

.sqf-modal {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 740px;
  padding: 2rem;
  position: relative;
  margin: auto;
}

.sqf-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.sqf-modal__close:hover { color: #333; }

.sqf-modal__title {
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 1.5rem;
}

/* ── Modal body: preview + fields ── */
.sqf-modal__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.sqf-shape-preview {
  background: #f4f4f4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: .75rem;
  color: #888;
}
.sqf-shape-preview svg { width: 100%; height: auto; }

.sqf-fields { display: flex; flex-direction: column; gap: .75rem; }

/* ── Form rows ── */
.sqf-row { display: grid; gap: .75rem; }
.sqf-cols2 { grid-template-columns: 1fr 1fr; }
.sqf-cols3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Inputs ── */
.sqf-label {
  display: block;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}
.sqf-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fafafa;
  color: #333;
  outline: none;
  transition: border-color .15s;
}
.sqf-input:focus { border-color: #aaa; background: #fff; }
.sqf-textarea { min-height: 120px; resize: vertical; }
.sqf-product-name {
  background: #f0f0f0;
  color: #555;
  cursor: default;
  user-select: text;
  font-size: 13px;
  line-height: 1.4;
  min-height: 36px;
  display: flex;
  align-items: center;
}

/* ── Area result ── */
.sqf-area-result {
  background: #e8f4f2;
  border: 1px solid #c5e0db;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13px;
  color: #3a7a70;
  text-align: center;
}

/* ── Checkboxes ── */
.sqf-checks-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.sqf-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.sqf-check input { cursor: pointer; }

/* ── Section label ── */
.sqf-section-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  margin: .75rem 0 .5rem;
}

/* ── Polished sides ── */
.sqf-sides-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: .5rem;
}
.sqf-side-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fafafa;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.sqf-side-btn--active {
  background: #e8f4f2;
  border-color: #7bbfb5;
  color: #3a7a70;
}
.sqf-sides-label {
  font-size: 12px;
  color: #999;
  margin-right: 4px;
}

/* ── Finishing grid ── */
.sqf-finishing-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin-bottom: .75rem;
}
.sqf-finish-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.sqf-finish-opt input { cursor: pointer; }
.sqf-finish-name {
  font-size: 9px;
  color: #888;
  text-align: center;
  line-height: 1.2;
}
.sqf-finish-img {
  width: 100%;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
  display: block;
}
.sqf-finish-opt input:checked ~ .sqf-finish-img {
  border-color: #7bbfb5;
  box-shadow: 0 0 0 2px #7bbfb5;
}

/* ── Divider ── */
.sqf-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 1rem 0;
}

/* ── Contact grid ── */
.sqf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sqf-contact-left { display: flex; flex-direction: column; gap: .75rem; }

/* ── Messages ── */
.sqf-error-msg {
  display: none;
  background: #fde8e8;
  border: 1px solid #f5b8b8;
  color: #a33;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: .75rem;
}
.sqf-success-msg {
  display: none;
  background: #e8f4f2;
  border: 1px solid #c5e0db;
  color: #3a7a70;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: .75rem;
}

/* ── Buttons ── */
.sqf-btn-row {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.sqf-btn {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .03em;
  transition: opacity .15s, background .15s;
  border: 1px solid;
}
.sqf-btn--primary {
  background: #7bbfb5;
  border-color: #6aada3;
  color: #fff;
}
.sqf-btn--primary:hover { background: #6aada3; }
.sqf-btn--secondary {
  background: #fafafa;
  border-color: #ddd;
  color: #555;
}
.sqf-btn--secondary:hover { background: #f0f0f0; }
.sqf-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .sqf-shapes-grid { grid-template-columns: repeat(2, 1fr); }
  .sqf-modal__body { grid-template-columns: 1fr; }
  .sqf-cols2, .sqf-cols3 { grid-template-columns: 1fr; }
  .sqf-contact-grid { grid-template-columns: 1fr; }
  .sqf-finishing-grid { grid-template-columns: repeat(5, 1fr); }
}
