/* ============================================================
   LARIX INQUIRY FORM — larix-inquiry.css
   Loaded on all frontend pages by WordPress
   ============================================================ */

/* ---- CSS VARIABLES ---------------------------------------- */
:root {
  --linq-red:       #C0392B;
  --linq-red-dark:  #96281B;
  --linq-dark:      #1A1A1A;
  --linq-black:     #0D0D0D;
  --linq-gold:      #B8976A;
  --linq-gray:      #6B6B6B;
  --linq-light:     #F4F2EF;
  --linq-white:     #FFFFFF;
  --linq-border:    #E5E0D8;
  --linq-green:     #27AE60;
  --linq-font-h:    'Montserrat', 'Segoe UI', Arial, sans-serif;
  --linq-font-b:    'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* ---- OVERLAY ---------------------------------------------- */
#larix-inq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 99999;
  display: flex !important; /* overrides style="display:none" via JS */
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#larix-inq-overlay.larix-inq-open {
  opacity: 1;
  pointer-events: all;
}

/* ---- MODAL BOX -------------------------------------------- */
.larix-inq-modal {
  background: var(--linq-white);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--linq-border) transparent;
}

#larix-inq-overlay.larix-inq-open .larix-inq-modal {
  transform: translateY(0) scale(1);
}

/* ---- HEADER ----------------------------------------------- */
.larix-inq-header {
  background: var(--linq-dark);
  padding: 26px 32px 22px;
  border-bottom: 3px solid var(--linq-red);
  position: relative;
}

.larix-inq-label {
  font-family: var(--linq-font-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linq-gold);
  margin-bottom: 6px;
}

.larix-inq-title {
  font-family: var(--linq-font-h);
  font-size: 20px;
  font-weight: 800;
  color: var(--linq-white);
  margin: 0 0 4px;
  line-height: 1.2;
}

.larix-inq-model-name {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  min-height: 18px;
}

.larix-inq-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--linq-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 0;
}

.larix-inq-close:hover {
  background: var(--linq-red);
  border-color: var(--linq-red);
}

/* ---- BODY ------------------------------------------------- */
.larix-inq-body {
  padding: 28px 32px 32px;
}

/* ---- FIELDS ----------------------------------------------- */
.larix-inq-field {
  margin-bottom: 16px;
}

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

.larix-inq-lbl {
  display: block;
  font-family: var(--linq-font-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--linq-gray);
  margin-bottom: 7px;
}

.larix-inq-lbl span {
  color: var(--linq-red);
}

.larix-inq-input,
.larix-inq-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--linq-light);
  border: 1.5px solid var(--linq-border);
  border-radius: 0;
  font-family: var(--linq-font-b);
  font-size: 14px;
  font-weight: 300;
  color: var(--linq-dark);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.larix-inq-input::placeholder,
.larix-inq-textarea::placeholder {
  color: rgba(107, 107, 107, 0.5);
  font-weight: 300;
}

.larix-inq-input:focus,
.larix-inq-textarea:focus {
  border-color: var(--linq-red);
  background: var(--linq-white);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.09);
  outline: none;
}

/* Readonly model field */
.larix-inq-readonly {
  background: rgba(192, 57, 43, 0.06) !important;
  border-color: rgba(192, 57, 43, 0.3) !important;
  color: var(--linq-red) !important;
  font-weight: 600 !important;
  cursor: default;
  letter-spacing: 0.02em;
}

.larix-inq-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.75;
}

/* ---- SUBMIT BUTTON ---------------------------------------- */
.larix-inq-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--linq-red);
  color: var(--linq-white);
  font-family: var(--linq-font-h);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 8px;
}

.larix-inq-submit:hover:not(:disabled) {
  background: var(--linq-red-dark);
  transform: translateY(-1px);
}

.larix-inq-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ---- NOTES & MESSAGES ------------------------------------- */
.larix-inq-note {
  font-size: 11px;
  font-weight: 300;
  color: rgba(107, 107, 107, 0.8);
  margin-top: 12px;
  line-height: 1.65;
  text-align: center;
}

.larix-inq-note a {
  color: var(--linq-red);
  text-decoration: none;
}

.larix-inq-note a:hover {
  text-decoration: underline;
}

.larix-inq-error {
  background: rgba(192, 57, 43, 0.08);
  border-left: 3px solid var(--linq-red);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--linq-red-dark);
  margin-bottom: 16px;
  line-height: 1.6;
}

.larix-inq-success {
  background: rgba(39, 174, 96, 0.09);
  border-left: 3px solid var(--linq-green);
  padding: 20px 20px;
  font-size: 14px;
  color: #1e7e34;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 16px;
}

/* ---- TRIGGER BUTTON (shortcode output) ------------------- */
.larix-inq-trigger-wrap {
  display: inline-block;
}

.larix-inq-open-btn {
  font-family: var(--linq-font-h);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--linq-red);
  color: var(--linq-white);
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  border-radius: 0;
}

.larix-inq-open-btn:hover {
  background: var(--linq-red-dark);
  transform: translateY(-1px);
}

/* ---- CARD BUTTONS (on vrata.html product cards) ----------- */
.card-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.card-btn-zoom {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--linq-light);
  border: 1px solid var(--linq-border);
  color: var(--linq-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-radius: 0;
}

.card-btn-zoom:hover {
  background: var(--linq-dark);
  color: var(--linq-white);
  border-color: var(--linq-dark);
}

.card-btn-inq {
  flex: 1;
  font-family: var(--linq-font-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--linq-red);
  color: var(--linq-white);
  border: none;
  height: 36px;
  padding: 0 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  border-radius: 0;
}

.card-btn-inq:hover {
  background: var(--linq-red-dark);
}

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 600px) {
  .larix-inq-modal {
    max-height: 95vh;
  }

  .larix-inq-header {
    padding: 20px 20px 18px;
  }

  .larix-inq-body {
    padding: 20px 20px 24px;
  }

  .larix-inq-row {
    grid-template-columns: 1fr;
  }

  .larix-inq-title {
    font-size: 17px;
    padding-right: 40px;
  }
}
