/* =========================================================
   Pagina de contact – [pd_contact]
   GeneratePress Child – Servicii-IT PRO
   ========================================================= */
.pd-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}
.pd-ct-info { grid-column: 1 / -1; }
.pd-contact h2,
.pd-contact h3 { color: var(--pd-primary); }

/* ---------- Carduri date generale ---------- */
.pd-ct-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.pd-ct-card {
    position: relative;
    padding: 22px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
    font-size: 15px;
    line-height: 1.6;
}
.pd-ct-card--wide { grid-column: 1 / -1; }
.pd-ct-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--pd-soft);
    color: var(--pd-primary);
}
.pd-contact .pd-ct-card__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
}
.pd-ct-card p { margin: 0 0 6px; color: var(--pd-text); }
.pd-ct-card p:last-child { margin-bottom: 0; }
.pd-ct-card__big { font-size: 17px; font-weight: 700; }
.pd-ct-card__big a[href^="mailto"] { font-size: 15px; }
.pd-ct-card a { color: var(--pd-primary); text-decoration: none; overflow-wrap: anywhere; }
.pd-ct-card a:hover { text-decoration: underline; }
.pd-ct-card__muted {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280 !important;
}
.pd-ct-card__muted svg { width: 16px; height: 16px; }
.pd-ct-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-weight: 600;
}
.pd-ct-card__link svg { width: 16px; height: 16px; color: var(--pd-accent); }
.pd-ct__sep { color: #9aa3af; }

/* ---------- Formular ---------- */
.pd-ct-form {
    padding: 28px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
.pd-ct-form__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.pd-ct-form__head .pd-ct-card__icon { margin: 0; flex: none; }
.pd-ct-form__head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.pd-ct-form__head p { margin: 2px 0 0; font-size: 14px; color: #6b7280; }

.pd-ct-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.pd-field { margin: 0 0 16px; }
.pd-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-text);
}
.pd-req { color: #b42318; }
.pd-opt { font-weight: 400; color: #6b7280; }
.pd-ct-form input[type="text"],
.pd-ct-form input[type="email"],
.pd-ct-form input[type="tel"],
.pd-ct-form input[type="number"],
.pd-ct-form select,
.pd-ct-form textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fbfcfd;
    font: inherit;
    font-size: 16px; /* fără zoom pe iOS */
    color: var(--pd-text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pd-ct-form textarea { min-height: 150px; resize: vertical; }
.pd-ct-form input:focus,
.pd-ct-form select:focus,
.pd-ct-form textarea:focus {
    outline: none;
    border-color: var(--pd-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .35);
}
.pd-ct-form input:user-invalid,
.pd-ct-form textarea:user-invalid,
.pd-ct-form select:user-invalid { border-color: #b42318; }

.pd-ct-grid--bottom { align-items: start; }
.pd-field--captcha input { max-width: 140px; }
.pd-field--check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 26px;
}
.pd-field--check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--pd-primary);
}
.pd-field--check label { margin: 0; font-weight: 400; font-size: 14px; line-height: 1.5; }
.pd-field--check a { color: var(--pd-primary); }

.pd-ct-form .pd-ct-submit {
    font: inherit;
    font-weight: 700;
    padding: 13px 26px;
    cursor: pointer;
}
.pd-ct-submit svg { width: 18px; height: 18px; }
.pd-ct-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--pd-accent);
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
}

/* capcană anti-spam */
.pd-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* mesaje */
.pd-ct-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
}
.pd-ct-alert svg { flex: none; margin-top: 1px; }
.pd-ct-alert.is-success { background: #e6f4ec; color: #17603b; border: 1px solid #b7dfc8; }
.pd-ct-alert.is-error   { background: #fdecea; color: #8a1c12; border: 1px solid #f3c1bb; }
.pd-ct-alert:focus { outline: 3px solid var(--pd-accent); outline-offset: 2px; }

/* ---------- Telefoane compartimente ---------- */
.pd-ct-dir {
    padding: 24px;
    border-radius: 14px;
    background: #f3f6f9;
}
.pd-ct-dir__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.pd-ct-dir__head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.pd-ct-dir__search { position: relative; flex: 1 1 200px; max-width: 280px; }
.pd-ct-dir__search svg {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}
.pd-ct-dir__search input {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 9px 12px 9px 36px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 15px;
}
.pd-ct-dir__search input:focus {
    outline: none;
    border-color: var(--pd-primary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .35);
}
.pd-ct-dir__group + .pd-ct-dir__group { margin-top: 14px; }
.pd-contact .pd-ct-dir__group h3 {
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--pd-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: inline-block;
}
.pd-ct-dir ul { margin: 0; padding: 0; list-style: none; }
.pd-ct-dir__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}
.pd-ct-dir__item + .pd-ct-dir__item { margin-top: 6px; }
.pd-ct-dir__item[hidden], .pd-ct-dir__group[hidden] { display: none; }
.pd-ct-dir__name { font-weight: 600; color: var(--pd-text); }
.pd-ct-dir__contact {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-variant-numeric: tabular-nums;
}
.pd-ct-dir__phone { display: inline-flex; align-items: center; gap: 6px; }
.pd-ct-dir__phone svg,
.pd-ct-dir__mail svg { width: 14px; height: 14px; color: var(--pd-accent); flex: none; }
.pd-ct-dir a { color: var(--pd-primary); font-weight: 600; text-decoration: none; }
.pd-ct-dir a:hover { text-decoration: underline; }
.pd-ct-dir__int {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--pd-soft);
    color: var(--pd-primary);
    font-size: 12px;
    font-weight: 700;
}
.pd-ct-dir__mail { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.pd-ct-dir__empty { margin: 10px 0 0; color: #6b7280; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pd-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .pd-ct-grid { grid-template-columns: minmax(0, 1fr); }
    .pd-field--check { padding-top: 0; }
    .pd-ct-form, .pd-ct-dir { padding: 20px; }
    .pd-ct-form .pd-ct-submit { width: 100%; justify-content: center; }
    .pd-ct-dir__search { max-width: none; }
}

/* ---------- Print ---------- */
@media print {
    .pd-ct-form, .pd-ct-dir__search { display: none !important; }
    .pd-contact { display: block; }
    .pd-ct-card, .pd-ct-dir { box-shadow: none; background: #fff; border: 1px solid #ccc; margin-bottom: 10px; }
}
