/* RLTV Contact Page Plugin — contact.css */

.rltv-contact-wrap {
  --rltv-navy: #0e1c2f;
  --rltv-navy-mid: #1a2e4a;
  --rltv-gold: #c8a44a;
  --rltv-gold-light: #e2c47a;
  --rltv-parchment: #f5f0e8;
  --rltv-parchment-dark: #ede6d6;
  --rltv-ink: #1a1512;
  --rltv-ink-muted: #3d3428;
  --rltv-ink-light: #6b5c47;
  --rltv-cream: #faf7f2;
  --rltv-border: rgba(14,28,47,0.15);
  --rltv-border-gold: rgba(200,164,74,0.4);
  --rltv-shadow: 0 4px 24px rgba(14,28,47,0.12);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rltv-ink);
  max-width: 100%;
}

.rltv-contact-wrap *, .rltv-contact-wrap *::before, .rltv-contact-wrap *::after {
  box-sizing: border-box;
}

/* Header (optional) */
.rltv-header {
  background: var(--rltv-navy);
  border-radius: 4px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.rltv-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(200,164,74,0.04) 60px, rgba(200,164,74,0.04) 61px);
}
.rltv-header-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 24px 32px;
}
.rltv-eyebrow {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rltv-gold-light);
  margin-bottom: 10px;
  opacity: 0.85;
}
.rltv-site-name {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 6px;
}
.rltv-site-name span { color: var(--rltv-gold); }
.rltv-header-rule {
  width: 56px;
  height: 2px;
  background: var(--rltv-gold);
  margin: 14px auto 12px;
  opacity: 0.7;
}
.rltv-header-tagline {
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* Page intro */
.rltv-page-intro { text-align: center; margin-bottom: 36px; }
.rltv-page-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 400;
  color: var(--rltv-navy);
  margin-bottom: 6px;
}
.rltv-page-subtitle {
  font-size: 15px;
  color: var(--rltv-ink-light);
  font-style: italic;
}

/* Grid */
.rltv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.rltv-grid-single { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
@media (max-width: 680px) { .rltv-grid { grid-template-columns: 1fr; } }

/* Cards */
.rltv-card {
  background: #fff;
  border: 1px solid var(--rltv-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--rltv-shadow);
}
.rltv-card-header {
  background: var(--rltv-navy);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rltv-icon { width: 20px; height: 20px; opacity: 0.85; flex-shrink: 0; }
.rltv-card-header h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
}
.rltv-badge {
  margin-left: auto;
  background: rgba(200,164,74,0.25);
  color: var(--rltv-gold-light);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.rltv-card-body { padding: 20px; }

/* Form */
.rltv-form-group { margin-bottom: 14px; }
.rltv-form-group label {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rltv-navy-mid);
  margin-bottom: 5px;
}
.rltv-contact-wrap .rltv-form-group input,
.rltv-contact-wrap .rltv-form-group select,
.rltv-contact-wrap .rltv-form-group textarea {
  width: 100%;
  background: var(--rltv-parchment);
  border: 1px solid var(--rltv-border);
  border-radius: 3px;
  padding: 9px 12px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  color: var(--rltv-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.rltv-contact-wrap .rltv-form-group input:focus,
.rltv-contact-wrap .rltv-form-group select:focus,
.rltv-contact-wrap .rltv-form-group textarea:focus {
  border-color: var(--rltv-gold);
  box-shadow: 0 0 0 3px rgba(200,164,74,0.15);
  background: #fff;
}
.rltv-contact-wrap .rltv-form-group textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
.rltv-contact-wrap .rltv-form-group select {
  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='%236b5c47' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.rltv-submit-btn {
  width: 100%;
  background: var(--rltv-navy);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 12px 20px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.rltv-submit-btn:hover { background: var(--rltv-navy-mid); }
.rltv-submit-btn:active { transform: scale(0.99); }
.rltv-form-note {
  font-size: 11px;
  color: var(--rltv-ink-light);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}
.rltv-success-msg {
  display: none;
  background: #f0f7f0;
  border: 1px solid #a8d5a8;
  border-radius: 3px;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  color: #2d5a2d;
  margin-top: 10px;
}

/* Chatbot */
.rltv-chatbot-container { display: flex; flex-direction: column; }
.rltv-chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--rltv-parchment);
  border-bottom: 1px solid var(--rltv-border);
}
.rltv-chat-messages::-webkit-scrollbar { width: 4px; }
.rltv-chat-messages::-webkit-scrollbar-thumb { background: rgba(14,28,47,0.2); border-radius: 2px; }
.rltv-msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 3px;
  font-size: 13.5px;
  line-height: 1.6;
  animation: rltvMsgIn 0.2s ease;
}
@keyframes rltvMsgIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rltv-msg-bot {
  background: var(--rltv-navy);
  color: rgba(255,255,255,0.9);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}
.rltv-msg-bot a { color: var(--rltv-gold-light); }
.rltv-msg-user {
  background: #fff;
  color: var(--rltv-ink);
  align-self: flex-end;
  border: 1px solid var(--rltv-border);
  border-bottom-right-radius: 0;
  font-style: italic;
}
.rltv-msg-system {
  align-self: center;
  background: rgba(200,164,74,0.1);
  color: var(--rltv-ink-muted);
  border: 1px solid var(--rltv-border-gold);
  font-size: 12px;
  font-style: italic;
  text-align: center;
  max-width: 100%;
  border-radius: 3px;
}
.rltv-typing {
  display: none;
  align-self: flex-start;
  background: var(--rltv-navy);
  padding: 9px 14px;
  border-radius: 3px;
  border-bottom-left-radius: 0;
  margin: 0 14px 8px;
}
.rltv-typing span {
  display: inline-block;
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  margin: 0 2px;
  animation: rltvBounce 1.2s infinite;
}
.rltv-typing span:nth-child(2) { animation-delay: 0.2s; }
.rltv-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rltvBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}
.rltv-chat-input-area {
  padding: 10px 14px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.rltv-chat-input {
  flex: 1;
  border: 1px solid var(--rltv-border);
  border-radius: 3px;
  padding: 8px 11px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 13.5px;
  color: var(--rltv-ink);
  background: var(--rltv-parchment);
  outline: none;
  resize: none;
  min-height: 36px;
  max-height: 90px;
  line-height: 1.5;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.rltv-chat-input:focus { border-color: var(--rltv-gold); background: #fff; box-shadow: none; }
.rltv-chat-input:disabled { opacity: 0.5; cursor: not-allowed; }
.rltv-send-btn {
  background: var(--rltv-navy);
  border: none;
  border-radius: 3px;
  padding: 8px 13px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
  flex-shrink: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rltv-send-btn:hover:not(:disabled) { background: var(--rltv-navy-mid); }
.rltv-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rltv-chat-counter {
  font-size: 11px;
  color: var(--rltv-ink-light);
  padding: 4px 14px 8px;
  font-style: italic;
  background: #fff;
  text-align: right;
  margin: 0;
}

/* Mailto fallback */
.rltv-mailto-box {
  display: none;
  background: var(--rltv-parchment-dark);
  border-top: 1px solid var(--rltv-border-gold);
  padding: 16px 18px;
  text-align: center;
}
.rltv-mailto-box p { font-size: 13px; color: var(--rltv-ink-muted); margin-bottom: 12px; line-height: 1.5; }
.rltv-mailto-link {
  display: inline-block;
  background: var(--rltv-navy);
  color: var(--rltv-gold-light) !important;
  text-decoration: none !important;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 3px;
  transition: background 0.2s;
  letter-spacing: 0.03em;
}
.rltv-mailto-link:hover { background: var(--rltv-navy-mid); }

/* Sidebar info cards */
.rltv-info-card {
  background: #fff;
  border: 1px solid var(--rltv-border);
  border-left: 3px solid var(--rltv-gold);
  border-radius: 0 4px 4px 0;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--rltv-shadow);
}
.rltv-info-card h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--rltv-navy);
  margin: 0 0 8px;
}
.rltv-info-card p, .rltv-info-card li {
  font-size: 13.5px;
  color: var(--rltv-ink-light);
  line-height: 1.65;
  margin: 0;
}
.rltv-info-card ul { padding-left: 16px; margin: 0; }
.rltv-info-card li { margin-bottom: 4px; }
.rltv-info-card a { color: var(--rltv-navy); border-bottom: 1px solid var(--rltv-border-gold); text-decoration: none; }
.rltv-info-card a:hover { border-bottom-color: var(--rltv-gold); }
.rltv-divider { width: 100%; height: 1px; background: var(--rltv-border); margin: 14px 0; }
.rltv-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rltv-navy); font-style: normal; }

.rltv-amendment-block {
  background: var(--rltv-navy);
  border-radius: 4px;
  padding: 18px 20px;
  box-shadow: var(--rltv-shadow);
}
.rltv-amendment-block blockquote {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  border-left: 2px solid var(--rltv-gold);
  padding-left: 14px;
  margin: 0 0 10px;
}
.rltv-amendment-block cite {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rltv-gold);
  font-style: normal;
}
