/* ============================================================
   Services Juridiques Gagné — Public Suite CSS
   gagnelaw.ca ; Hiero theme (navy #1c2c4a / gold #b8964a)
   ============================================================ */

.gp-widget, .gp-widget * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

.gp-widget {
    font-family: Arial, sans-serif;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    overflow: hidden;
    margin: 28px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ── Widget header ──────────────────────────────────── */
.gp-widget-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    background: #1c2c4a;
    border-bottom: 3px solid #b8964a;
}
.gp-widget-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.gp-widget-head h3 { margin: 0 0 3px; font-size: 16px; font-weight: 700; color: #fff; font-family: Georgia, serif; }
.gp-widget-head p  { margin: 0; font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.4; }

/* ── Forms ──────────────────────────────────────────── */
.gp-form { padding: 22px; }
.gp-row  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
.gp-row .gp-field { flex: 1; min-width: 200px; }

.gp-field { margin-bottom: 14px; }
.gp-field label {
    display: block; font-size: 12px; font-weight: 700;
    color: #444; margin-bottom: 5px; letter-spacing: .02em;
}
.gp-field input,
.gp-field select,
.gp-field textarea {
    width: 100%; padding: 9px 12px;
    border: 1px solid #d0d0d0; border-radius: 3px;
    font-size: 13px; font-family: Arial, sans-serif;
    color: #222; background: #fafaf8; outline: none;
    transition: border-color .15s;
}
.gp-field input:focus,
.gp-field select:focus,
.gp-field textarea:focus { border-color: #1c2c4a; background: #fff; }
.gp-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.gp-field.invalid input,
.gp-field.invalid select,
.gp-field.invalid textarea { border-color: #c0392b; }
.gp-req { color: #c0392b; }
.gp-hint { font-size: 10px; color: #aaa; line-height: 1.5; margin: 3px 0 0; }

.gp-form-section-label {
    font-size: 11px; font-weight: 700; color: #1c2c4a;
    text-transform: uppercase; letter-spacing: .1em;
    border-bottom: 2px solid #e8ecf4; padding-bottom: 6px;
    margin: 4px 0 14px;
}

/* ── Buttons ────────────────────────────────────────── */
.gp-btn-primary {
    background: #1c2c4a; color: #fff; border: none;
    padding: 11px 26px; border-radius: 3px; font-size: 13px;
    font-family: Arial, sans-serif; font-weight: 700;
    cursor: pointer; text-decoration: none;
    display: inline-block; transition: background .15s;
    letter-spacing: .03em;
}
.gp-btn-primary:hover { background: #243a61; color: #fff; }
.gp-btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.gp-btn-secondary {
    background: #fff; color: #1c2c4a;
    border: 1px solid #b8964a; padding: 9px 20px;
    border-radius: 3px; font-size: 13px;
    font-family: Arial, sans-serif; font-weight: 600;
    cursor: pointer; text-decoration: none;
    display: inline-block; transition: all .15s;
}
.gp-btn-secondary:hover { background: #fdf6ec; color: #1c2c4a; }

.gp-btn-outline {
    background: transparent; color: #555;
    border: 1px solid #ccc; padding: 9px 18px;
    border-radius: 3px; font-size: 13px;
    font-family: Arial, sans-serif;
    cursor: pointer; transition: all .15s;
}
.gp-btn-outline:hover { border-color: #999; color: #222; }

.gp-nav-buttons { display: flex; gap: 10px; margin-top: 6px; }

/* ── Notices ────────────────────────────────────────── */
.gp-success {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 22px; background: #f0faf2;
    border-left: 3px solid #27ae60; color: #1a6b34;
    font-size: 14px; line-height: 1.6;
}
.gp-success span { font-size: 20px; flex-shrink: 0; }
.gp-error {
    padding: 10px 14px; background: #fdf2f2;
    border-left: 3px solid #c0392b; border-radius: 3px;
    color: #7b1e1e; font-size: 13px; margin-top: 10px;
}
.gp-disclaimer {
    font-size: 10px; color: #aaa; line-height: 1.6;
    padding: 12px 22px; border-top: 1px solid #f0f0ee;
    margin: 0;
}

/* ── Fee calculator ─────────────────────────────────── */
.gp-calc-body { padding: 22px; }
.gp-calc-result {
    margin-top: 20px;
    background: #f0f3f8;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    overflow: hidden;
}
.gp-calc-result-inner { padding: 20px 24px; }
.gp-calc-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #888; margin-bottom: 6px; }
.gp-calc-amount { font-size: 32px; font-weight: 700; color: #1c2c4a; font-family: Georgia, serif; }
.gp-calc-note   { font-size: 12px; color: #666; margin-top: 6px; line-height: 1.5; }

/* ── Chatbot ────────────────────────────────────────── */
.gp-chat-window {
    height: 340px; overflow-y: auto;
    padding: 16px; background: #fafaf8;
    border-bottom: 1px solid #e8e8e6;
    display: flex; flex-direction: column; gap: 10px;
}
.gp-chat-bubble {
    max-width: 82%; padding: 10px 14px; border-radius: 4px;
    font-size: 13px; line-height: 1.65;
}
.gp-chat-ai {
    background: #f0f3f8; color: #222;
    border-left: 3px solid #1c2c4a;
    align-self: flex-start;
}
.gp-chat-user {
    background: #1c2c4a; color: #fff;
    align-self: flex-end; border-radius: 4px;
}
.gp-chat-typing {
    background: #f0f3f8; color: #888;
    border-left: 3px solid #b8964a;
    align-self: flex-start; font-style: italic;
}
.gp-chat-input-row {
    display: flex; gap: 8px; padding: 12px 16px;
    border-bottom: 1px solid #f0f0ee;
}
.gp-chat-input-row input {
    flex: 1; padding: 9px 12px; border: 1px solid #d0d0d0;
    border-radius: 3px; font-size: 13px; outline: none;
    transition: border-color .15s;
}
.gp-chat-input-row input:focus { border-color: #1c2c4a; }
.gp-chat-suggestions {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 10px 16px;
}
.gp-chat-suggestion {
    font-size: 11px; padding: 4px 10px;
    background: #f0f3f8; border: 1px solid #d0d8e8;
    border-radius: 20px; color: #1c2c4a; cursor: pointer;
    transition: all .12s;
}
.gp-chat-suggestion:hover { background: #e0e8f4; }

/* ── Blog feed ──────────────────────────────────────── */
.gp-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.gp-blog-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: box-shadow .15s, transform .1s;
}
.gp-blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.gp-blog-img {
    height: 160px; background-size: cover; background-position: center;
    background-color: #f0f3f8;
}
.gp-blog-content { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gp-blog-cat {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: #b8964a;
}
.gp-blog-content h4 { margin: 0; font-size: 14px; font-weight: 700; color: #1c2c4a; font-family: Georgia, serif; line-height: 1.4; }
.gp-blog-content p  { margin: 0; font-size: 12px; color: #666; line-height: 1.55; flex: 1; }
.gp-blog-date { font-size: 11px; color: #aaa; }
.gp-link { color: #b8964a; text-decoration: none; font-size: 13px; font-weight: 600; }
.gp-link:hover { color: #1c2c4a; }

/* ── Language toggle ────────────────────────────────── */
.gp-lang-toggle { display: inline-flex; align-items: center; gap: 4px; }
.gp-lang-btn {
    background: none; border: 1px solid #ccc; border-radius: 3px;
    padding: 4px 10px; font-size: 12px; font-weight: 700;
    cursor: pointer; color: #888; transition: all .12s;
    font-family: Arial, sans-serif; letter-spacing: .06em;
}
.gp-lang-btn.active { background: #1c2c4a; border-color: #1c2c4a; color: #fff; }
.gp-lang-btn:hover:not(.active) { border-color: #1c2c4a; color: #1c2c4a; }
.gp-lang-sep { color: #ccc; font-size: 12px; }

/* ── Retainer ───────────────────────────────────────── */
.gp-step-bar { display: flex; border-bottom: 1px solid #e0e0e0; background: #f7f7f5; }
.gp-step {
    flex: 1; text-align: center; padding: 10px;
    font-size: 12px; color: #aaa; border-bottom: 2px solid transparent;
    transition: all .15s; font-family: Arial, sans-serif;
}
.gp-step.active { color: #1c2c4a; border-bottom-color: #b8964a; font-weight: 700; background: #fff; }
.gp-step.done   { color: #27ae60; }
.gp-retainer-steps .gp-form { padding: 22px; }
.gp-retainer-preview {
    background: #f7f7f5; border: 1px solid #e8e8e6;
    border-radius: 3px; padding: 18px; margin-bottom: 16px;
    font-size: 12px; color: #444; line-height: 1.8;
}
.gp-retainer-preview h4 { margin: 0 0 10px; font-size: 14px; color: #1c2c4a; font-family: Georgia, serif; }
.gp-retainer-preview dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; }
.gp-retainer-preview dt { font-weight: 700; color: #555; }
.gp-retainer-preview dd { margin: 0; }
.gp-retainer-tos {
    font-size: 11px; color: #888; line-height: 1.6;
    padding: 12px; background: #fafaf8; border: 1px solid #e8e8e6;
    border-radius: 3px; margin-bottom: 14px;
}
.gp-signature-input {
    font-family: Georgia, serif !important;
    font-size: 18px !important;
    font-style: italic;
    border-bottom: 2px solid #1c2c4a !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 8px 4px !important;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    .gp-form { padding: 16px; }
    .gp-calc-body { padding: 16px; }
    .gp-row .gp-field { min-width: 100%; }
    .gp-blog-grid { grid-template-columns: 1fr; }
    .gp-step { font-size: 10px; padding: 8px 6px; }
    .gp-calc-amount { font-size: 26px; }
}
