/**
 * Client - Legal CRM — Frontend Styles
 * Design: Refined Legal — sober, professional, elegant
 *
 * @package TucaMaria\CRM
 */

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
    --tm-primary:        #181818;
    --tm-primary-hover:  #2a2a2a;
    --tm-accent:         #c9a870;
    --tm-accent-hover:   #b8975f;
    --tm-text:           #181818;
    --tm-text-muted:     #6a6a6a;
    --tm-bg:             #ffffff;
    --tm-bg-subtle:      #f7f7f5;
    --tm-border:         #e0ded9;
    --tm-border-focus:   #c9a870;
    --tm-error:          #a02020;
    --tm-error-bg:       #fef2f2;
    --tm-success:        #2d6b2d;
    --tm-success-bg:     #f0f7f0;

    --tm-font-body:      'Georgia', 'Times New Roman', serif;
    --tm-font-ui:        system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --tm-radius:         3px;
    --tm-radius-lg:      6px;
    --tm-input-height:   48px;
    --tm-transition:     0.2s ease;
    --tm-shadow:         0 2px 16px rgba(0, 0, 0, 0.07);
}

/* ── Shared Wrappers ─────────────────────────────────────────────── */
.tm-contact-wrap {
    font-family: var(--tm-font-ui);
    color: var(--tm-text);
    max-width: 640px;
    margin: 0 auto;
}

.tm-newsletter-wrap {
    --tm-newsletter-burgundy: #800020;
    --tm-newsletter-burgundy-hover: #9a0026;
    --tm-newsletter-gold: #c8a45d;
    --tm-newsletter-ink: #17130f;
    --tm-newsletter-muted: #645b52;
    --tm-newsletter-line: rgba(128, 0, 32, .12);
    --tm-newsletter-soft: #fbfaf7;
    color: var(--tm-newsletter-ink);
    max-width: 1200px;
    margin: 0 auto;
    font-family: Roboto, "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tm-form-title {
    font-family: var(--tm-font-body);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--tm-primary);
    line-height: 1.3;
}

.tm-form-subtitle,
.tm-newsletter-subtitle {
    font-size: 15px;
    color: var(--tm-text-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.tm-newsletter-title {
    font-family: "Roboto Slab", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 700;
    margin: 0;
    color: var(--tm-newsletter-ink);
    line-height: 1.1;
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.tm-alert {
    padding: 14px 18px;
    border-radius: var(--tm-radius-lg);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    border-left: 3px solid transparent;
}
.tm-alert-success {
    background: var(--tm-success-bg);
    color: var(--tm-success);
    border-left-color: var(--tm-success);
}
.tm-alert-error {
    background: var(--tm-error-bg);
    color: var(--tm-error);
    border-left-color: var(--tm-error);
}

.tm-newsletter-wrap .tm-alert {
    margin: 0;
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: 8px;
    font-family: Roboto, system-ui, sans-serif;
}

.tm-newsletter-wrap .tm-alert-success {
    border-color: rgba(45, 107, 45, .18);
    border-left-color: #2d6b2d;
    background: #f2f8f1;
}

.tm-newsletter-wrap .tm-alert-error {
    border-color: rgba(160, 32, 32, .18);
    border-left-color: #a02020;
    background: #fff6f5;
}

/* ── Field Groups ────────────────────────────────────────────────── */
.tm-field-group {
    margin-bottom: 20px;
}

.tm-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tm-text);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    text-transform: none;
}

.tm-required {
    color: var(--tm-error);
    margin-left: 2px;
}

.tm-field-optional {
    color: var(--tm-text-muted);
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.tm-field-hint {
    display: block;
    font-size: 12px;
    color: var(--tm-text-muted);
    margin-top: 6px;
}

.tm-field-error {
    display: block;
    font-size: 12px;
    color: var(--tm-error);
    margin-top: 4px;
    min-height: 16px;
}

/* ── Inputs, Textarea, Select ────────────────────────────────────── */
.tm-field-input,
.tm-field-select,
.tm-field-textarea {
    display: block;
    width: 100%;
    font-family: var(--tm-font-ui);
    font-size: 15px;
    color: var(--tm-text);
    background: var(--tm-bg);
    border: 1.5px solid var(--tm-border);
    border-radius: var(--tm-radius);
    padding: 12px 16px;
    transition: border-color var(--tm-transition), box-shadow var(--tm-transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.tm-field-input {
    height: var(--tm-input-height);
}

.tm-field-input::placeholder,
.tm-field-textarea::placeholder {
    color: #ababab;
}

.tm-field-input:focus,
.tm-field-select:focus,
.tm-field-textarea:focus {
    border-color: var(--tm-border-focus);
    box-shadow: 0 0 0 3px rgba(201, 168, 112, 0.15);
}

.tm-field-input.tm-invalid,
.tm-field-textarea.tm-invalid {
    border-color: var(--tm-error);
}

.tm-field-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ── Select wrapper ─────────────────────────────────────────────── */
.tm-select-wrap {
    position: relative;
}

.tm-field-select {
    cursor: pointer;
    padding-right: 40px;
    height: var(--tm-input-height);
}

.tm-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--tm-text-muted);
    pointer-events: none;
}

/* ── Checkboxes ──────────────────────────────────────────────────── */
.tm-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.tm-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tm-checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--tm-border);
    border-radius: 3px;
    background: var(--tm-bg);
    transition: all var(--tm-transition);
    margin-top: 2px;
}

.tm-checkbox-input:checked + .tm-checkbox-box {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
}

.tm-checkbox-input:checked + .tm-checkbox-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.tm-checkbox-input:focus-visible + .tm-checkbox-box {
    outline: 2px solid var(--tm-accent);
    outline-offset: 2px;
}

.tm-checkbox-text {
    font-size: 14px;
    color: var(--tm-text);
    line-height: 1.5;
}

.tm-checkbox-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tm-checkbox-marketing .tm-checkbox-text {
    font-size: 13px;
    color: var(--tm-text-muted);
}

.tm-text-muted {
    color: var(--tm-text-muted);
}

/* ── Category Pills (newsletter) ────────────────────────────────── */
.tm-newsletter-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
    gap: clamp(22px, 2.6vw, 32px);
    align-items: stretch;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid var(--tm-newsletter-line);
    border-radius: 12px;
    background-color: #ffffff;
    background-image: url("https://www.tucamaria.ro/wp-content/uploads/2026/06/ChatGPT-Image-Jun-6-2026-at-12_10_34-AM.avif");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0 4px 20px rgba(128, 0, 32, .10);
    overflow: hidden;
}

.tm-newsletter-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .74);
    pointer-events: none;
}

.tm-newsletter-editorial {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    min-width: 0;
    padding: 8px 8px 8px 0;
}

.tm-newsletter-mark {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: #050505;
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tm-newsletter-mark::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--tm-newsletter-gold);
}

.tm-newsletter-wrap .tm-newsletter-subtitle {
    max-width: 560px;
    margin: 0;
    color: #050505;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.72;
}

.tm-newsletter-wrap .tm-newsletter-title {
    color: #050505;
}

.tm-newsletter-benefits {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.tm-newsletter-benefits li {
    position: relative;
    padding-left: 24px;
    color: #050505;
    font-size: 15px;
    line-height: 1.62;
}

.tm-newsletter-benefits li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--tm-newsletter-burgundy);
    box-shadow: 0 0 0 4px rgba(128, 0, 32, .08);
}

.tm-newsletter-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(200, 164, 93, .34);
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(23, 19, 15, .07);
}

.tm-newsletter-card-head {
    display: block;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(200, 164, 93, .28);
}

.tm-newsletter-card-head strong {
    color: var(--tm-newsletter-ink);
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.25;
}

.tm-newsletter-card-head span {
    display: none;
}

.tm-newsletter-form {
    display: grid;
    gap: 16px;
}

.tm-newsletter-wrap .tm-field-group {
    margin-bottom: 0;
}

.tm-newsletter-wrap .tm-field-label {
    margin-bottom: 8px;
    color: #241f1b;
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tm-newsletter-wrap .tm-field-input {
    height: 52px;
    border: 1px solid rgba(128, 0, 32, .16);
    border-radius: 8px;
    background: #fff;
    color: #17130f;
    font-family: Roboto, system-ui, sans-serif;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.tm-newsletter-wrap .tm-field-input:focus {
    border-color: var(--tm-newsletter-burgundy);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, .10);
}

.tm-newsletter-topics {
    padding: 16px;
    border: 1px solid rgba(200, 164, 93, .28);
    border-radius: 8px;
    background: var(--tm-newsletter-soft);
}

.tm-category-pills {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin-top: 2px;
}

.tm-category-pill {
    display: block;
    cursor: pointer;
    min-width: 0;
    width: 100%;
}

.tm-category-pill-all {
    grid-column: 1 / -1;
    order: 2;
    margin-top: 2px;
}

.tm-category-pill[data-category-name="diverse"] {
    order: 1;
}

.tm-pill-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tm-pill-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(128, 0, 32, .16);
    border-radius: 8px;
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: clamp(11px, .82vw, 13px);
    font-weight: 800;
    color: var(--tm-newsletter-muted);
    background: rgba(255, 255, 255, .72);
    transition: all var(--tm-transition);
    user-select: none;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.tm-pill-input:checked + .tm-pill-label {
    background: var(--tm-newsletter-burgundy);
    border-color: var(--tm-newsletter-burgundy);
    color: #fff;
    box-shadow: 0 8px 18px rgba(128, 0, 32, .16);
}

.tm-category-pill-all .tm-pill-input:checked + .tm-pill-label {
    background: linear-gradient(135deg, #800020, #5f0018);
    border-color: rgba(200, 164, 93, .55);
}

.tm-category-pill-all .tm-pill-label {
    min-height: 48px;
    height: 48px;
    border-radius: 8px;
    font-size: 14px;
}

.tm-pill-input:focus-visible + .tm-pill-label {
    outline: 2px solid var(--tm-accent);
    outline-offset: 2px;
}

.tm-category-pill:hover .tm-pill-label {
    border-color: var(--tm-newsletter-gold);
    color: var(--tm-newsletter-burgundy);
}

.tm-category-pill:hover .tm-pill-input:checked + .tm-pill-label,
.tm-category-pill:focus-visible .tm-pill-input:checked + .tm-pill-label,
.tm-pill-input:checked:focus-visible + .tm-pill-label {
    color: #ffffff;
}

@media (max-width: 700px) {
    .tm-category-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-pill-label {
        min-height: 44px;
        height: 44px;
        padding-inline: 12px;
        font-size: 13px;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .tm-category-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-pill-label {
        font-size: 13px;
    }
}

.tm-category-hint {
    display: none;
}

.tm-newsletter-wrap[data-topic-mode="custom"] .tm-category-hint {
    display: none;
}

.tm-newsletter-wrap[data-topic-mode="custom"] .tm-category-hint::after {
    content: "";
}

.tm-newsletter-consent .tm-checkbox-label {
    gap: 11px;
}

.tm-newsletter-consent .tm-checkbox-text {
    color: var(--tm-newsletter-muted);
    font-size: 13px;
}

.tm-newsletter-consent .tm-checkbox-text a {
    color: var(--tm-newsletter-burgundy);
    font-weight: 700;
}

/* ── Submit Button ───────────────────────────────────────────────── */
.tm-form-footer {
    margin-top: 24px;
}

.tm-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--tm-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--tm-font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--tm-transition), transform var(--tm-transition), box-shadow var(--tm-transition);
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.tm-submit-btn:hover:not(:disabled) {
    background: var(--tm-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.tm-submit-btn:active {
    transform: translateY(0);
}

.tm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tm-submit-btn--nl {
    width: 100%;
    min-height: 52px;
    background: var(--tm-newsletter-burgundy);
    color: #fff;
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(128, 0, 32, .20);
}

.tm-submit-btn--nl:hover:not(:disabled) {
    background: var(--tm-newsletter-burgundy-hover);
}

/* Spinner */
.tm-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tm-spin 0.6s linear infinite;
}

.tm-submit-btn--nl .tm-btn-spinner {
    border-color: rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
}

.tm-submit-btn .tm-btn-glare {
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transition: left .5s ease;
    pointer-events: none;
}

.tm-submit-btn:hover .tm-btn-glare {
    left: 100%;
}

.tm-newsletter-privacy-note {
    margin: 10px 0 0;
    color: var(--tm-newsletter-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.tm-btn-loading .tm-btn-text {
    opacity: 0.6;
}

.tm-btn-loading .tm-btn-spinner {
    display: inline-block;
}

@keyframes tm-spin {
    to { transform: rotate(360deg); }
}

/* ── Honeypot ────────────────────────────────────────────────────── */
.tm-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Subscriber Count ────────────────────────────────────────────── */
.tm-subscriber-count {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ── Horizontal Newsletter Layout ───────────────────────────────── */
.tm-newsletter-horizontal {
    max-width: 760px;
}

.tm-newsletter-horizontal .tm-newsletter-shell {
    display: block;
    padding: 18px;
}

.tm-newsletter-horizontal .tm-newsletter-title {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.tm-newsletter-horizontal .tm-newsletter-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tm-newsletter-horizontal .tm-newsletter-card-head {
    display: none;
}

.tm-newsletter-horizontal .tm-newsletter-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.tm-newsletter-horizontal .tm-field-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.tm-newsletter-horizontal .tm-field-label {
    display: none; /* Email placeholder serves as label */
}

.tm-newsletter-horizontal .tm-form-footer {
    margin-top: 0;
    flex-shrink: 0;
}

.tm-newsletter-horizontal .tm-submit-btn {
    width: auto;
    padding: 12px 24px;
    height: var(--tm-input-height);
    min-height: var(--tm-input-height);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .tm-newsletter-shell {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tm-newsletter-editorial {
        padding: 0;
    }

    .tm-newsletter-card-head span {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .tm-newsletter-wrap {
        margin-inline: auto;
    }

    .tm-newsletter-shell {
        padding: 20px;
        border-radius: 12px;
    }

    .tm-newsletter-card {
        padding: 18px;
    }

    .tm-newsletter-card-head {
        display: grid;
        gap: 6px;
    }

    .tm-newsletter-card-head span {
        text-align: left;
    }

    .tm-newsletter-title {
        font-size: clamp(1.85rem, 9vw, 2.45rem);
    }

    .tm-newsletter-horizontal .tm-newsletter-form {
        flex-direction: column;
    }

    .tm-newsletter-horizontal .tm-field-group {
        width: 100%;
    }

    .tm-newsletter-horizontal .tm-form-footer {
        width: 100%;
    }

    .tm-newsletter-horizontal .tm-submit-btn {
        width: 100%;
    }

    .tm-submit-btn {
        width: 100%;
    }
}

/* ── Maria Contact Module ───────────────────────────────────────── */
.maria-contact-module {
    --primary-color: #800020;
    --accent-color: #D4AF37;
    --text-color: #333;
    --white: #fff;
    --shadow-color: rgba(128, 0, 32, 0.1);
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.maria-contact-module .section-title {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.maria-contact-module .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.maria-contact-module .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.maria-contact-module .form-section,
.maria-contact-module .info-section {
    background: var(--white);
    padding: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.maria-contact-module .tm-contact-maria-form {
    width: 95%;
    margin: 0 auto;
    padding: 0 5px;
}

.maria-contact-module .tm-field-group {
    margin-bottom: 20px;
    padding: 0;
}

.maria-contact-module .tm-field-input,
.maria-contact-module .tm-field-textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.3s ease;
}

.maria-contact-module .tm-field-input:focus,
.maria-contact-module .tm-field-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(128, 0, 32, 0.1);
}

.maria-contact-module .tm-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.maria-contact-module .tm-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-wrap: nowrap;
}

.maria-contact-module .tm-checkbox-input {
    position: static;
    opacity: 1;
    width: auto;
    height: auto;
    margin: 0;
    flex-shrink: 0;
}

.maria-contact-module .tm-checkbox-box {
    display: none;
}

.maria-contact-module .tm-checkbox-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.maria-contact-module .tm-contact-submit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    padding: 0;
    position: relative;
}

.maria-contact-module .disclaimer-container {
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 0 5px;
    width: 100%;
}

.maria-contact-module .legal-disclaimer {
    display: inline-block;
    font-size: 13px;
    color: #800020;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    position: relative;
}

.maria-contact-module .legal-disclaimer-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    background-color: rgba(255, 255, 255, 0.97);
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    line-height: 1.6;
    padding: 20px;
    z-index: 9999;
    text-align: left;
}

.maria-contact-module .tm-custom-submit-btn,
.maria-contact-module .tm-vcard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #800020;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.maria-contact-module .tm-custom-submit-btn:hover,
.maria-contact-module .tm-vcard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    background-color: #9a0026;
}

.maria-contact-module .tm-custom-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.maria-contact-module .tm-btn-glare {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.maria-contact-module .tm-custom-submit-btn:hover .tm-btn-glare,
.maria-contact-module .tm-vcard-btn:hover .tm-btn-glare {
    left: 100%;
}

.maria-contact-module .grecaptcha-badge,
.grecaptcha-badge {
    visibility: hidden;
}

.maria-contact-module .form-icon {
    position: absolute;
    top: -100px;
    right: -150px;
    width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 10px var(--shadow-color));
    z-index: 1;
}

.maria-contact-module .form-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    padding: 0 5px;
}

.maria-contact-module .map-section {
    flex-grow: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    margin: 20px;
    margin-top: 0;
    position: relative;
    min-height: 300px;
    background: #f0f0f0;
}

.maria-contact-module .map-section iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
}

.maria-contact-module .contact-details {
    padding: 0 20px 20px;
    font-size: 0.9rem;
}

.maria-contact-module .contact-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.maria-contact-module .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-left: 3px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.maria-contact-module .contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.maria-contact-module .contact-item-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.maria-contact-module .contact-item img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    filter: hue-rotate(0deg) saturate(1.2) brightness(0.9);
}

.maria-contact-module .contact-item h3 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.maria-contact-module .contact-item-content {
    text-align: left;
    padding: 0;
    width: 100%;
}

.maria-contact-module .contact-item p,
.maria-contact-module .contact-item a {
    margin: 0 0 5px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maria-contact-module .contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.maria-contact-module .contact-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maria-contact-module .contact-item ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.maria-contact-module .social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: flex-start;
}

.maria-contact-module .social-links a {
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.maria-contact-module .social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.maria-contact-module .vcard-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 25px 0 0;
}

.maria-contact-module .footer-disclaimer {
    text-align: center;
    max-width: 420px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6d6257;
    margin: 12px auto 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .maria-contact-module .contact-grid {
        grid-template-columns: 1fr;
    }

    .maria-contact-module .form-section,
    .maria-contact-module .info-section {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .maria-contact-module .form-icon {
        position: static;
        display: block;
        margin: 0 auto 20px;
        width: 80px;
    }

    .maria-contact-module .map-section {
        min-height: 300px;
        height: 300px;
        margin: 20px 10px;
    }

    .maria-contact-module .contact-items-grid {
        grid-template-columns: 1fr;
    }

    .maria-contact-module .contact-item,
    .maria-contact-module .contact-item-content {
        align-items: flex-start;
        text-align: left;
    }

    .maria-contact-module .contact-item-header {
        justify-content: flex-start;
    }

    .maria-contact-module .tm-custom-submit-btn,
    .maria-contact-module .tm-vcard-btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

/* ── Two-column field row (prenume + nume) ───────────────────────── */
.tm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .tm-field-row {
        grid-template-columns: 1fr;
    }
}
    justify-content: center;
    width: 100%;
