/* ==================== INQUIRY MODAL STYLES ==================== */

/* Floating Contact Button */
#rf-inquiry-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  cursor: pointer;
  font-family: 'Jost', 'DM Sans', -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.rf-float-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 18px;
  background: #1A3D2B;
  color: #FDFAF6;
  border-radius: 60px;
  box-shadow: 0 4px 20px rgba(26, 61, 43, 0.35), 0 2px 8px rgba(26, 61, 43, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.rf-float-inner svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.rf-float-inner span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#rf-inquiry-float:hover .rf-float-inner {
  transform: translateY(-2px);
  background: #122A1E;
  box-shadow: 0 8px 28px rgba(26, 61, 43, 0.45), 0 4px 12px rgba(26, 61, 43, 0.25);
}

#rf-inquiry-float:active .rf-float-inner {
  transform: translateY(0);
}

/* Modal Backdrop */
#rf-inquiry-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#rf-inquiry-modal.rf-modal-open {
  display: flex;
}

.rf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Modal Window */
.rf-modal-wrap {
  position: relative;
  z-index: 1;
  background: #FAF7F2;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 48px 40px;
  box-shadow: 0 24px 80px rgba(26, 25, 23, 0.28);
}

.rf-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #8B7355;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-family: -apple-system, sans-serif;
  transition: color 0.2s;
  padding: 4px;
}

.rf-modal-close:hover { color: #1C1917; }

.rf-modal-header {
  margin-bottom: 32px;
}

.rf-modal-eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C4973A;
  margin-bottom: 14px;
}

.rf-modal-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 300;
  line-height: 1.15;
  color: #1A3D2B;
  margin-bottom: 10px;
}

.rf-modal-title em {
  font-style: italic;
  color: #1C1917;
}

.rf-modal-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: #7A6A58;
  line-height: 1.65;
}

/* Product preview in modal */
#rf-modal-product {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #F3EDE3;
  padding: 14px 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(26, 61, 43, 0.1);
}

#rf-modal-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

#rf-modal-product-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #1C1917;
  line-height: 1.3;
}

#rf-modal-product-price {
  font-size: 13px;
  color: #7A6A58;
  margin-top: 3px;
}

/* Form */
.rf-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.rf-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7A6A58;
}

.rf-required { color: #8B2500; margin-left: 2px; }
.rf-optional { font-weight: 300; text-transform: none; letter-spacing: 0; font-size: 10px; color: #A8998A; }

.rf-input, .rf-select, .rf-textarea {
  width: 100%;
  padding: 13px 18px;
  background: #FDFAF6;
  border: 1px solid rgba(26, 61, 43, 0.15);
  font-family: 'Jost', 'DM Sans', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #1C1917;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  border-radius: 0;
}

.rf-input::placeholder, .rf-textarea::placeholder { color: #A8998A; }
.rf-input:focus, .rf-select:focus, .rf-textarea:focus { border-color: #1A3D2B; box-shadow: 0 0 0 3px rgba(26, 61, 43, 0.06); }

.rf-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='%237A6A58' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.rf-textarea { resize: vertical; min-height: 110px; }

.rf-submit {
  padding: 16px 40px;
  background: #1A3D2B;
  color: #FDFAF6;
  font-family: 'Jost', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  align-self: flex-start;
}

.rf-submit:hover { background: #122A1E; }
.rf-submit:disabled { background: #A8998A; cursor: not-allowed; }

.rf-msg {
  font-size: 13px;
  color: #1A3D2B;
  display: none;
  padding: 10px 14px;
  background: rgba(26, 61, 43, 0.06);
  line-height: 1.5;
}

.rf-msg.rf-msg-error { color: #8B2500; background: rgba(139, 37, 0, 0.06); }
.rf-msg.rf-msg-show { display: block; }

/* Responsive */
@media (max-width: 600px) {
  .rf-modal-wrap { padding: 36px 24px 32px; }
  .rf-form-row { grid-template-columns: 1fr; }
  #rf-inquiry-float { bottom: 20px; right: 20px; }
  .rf-float-inner { padding: 12px 18px 12px 16px; }
  .rf-float-inner span { font-size: 12px; }
}