/* ─── Link Directory Plugin Styles ─────────────────────────────────────── */
.ld-form-wrap, .ld-grid, .ld-pricing-wrap { font-family: inherit; }

/* ── Form ── */
.ld-submit-form { max-width: 620px; margin: 0 auto; }
.ld-field { margin-bottom: 18px; }
.ld-field label { display: block; font-weight: 600; margin-bottom: 5px; }
.ld-field input[type="text"],
.ld-field input[type="url"],
.ld-field input[type="tel"],
.ld-field input[type="number"],
.ld-field textarea,
.ld-field select {
    width: 100%; padding: 9px 12px;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; box-sizing: border-box;
}
.ld-field textarea { resize: vertical; }
.required { color: #e00; }

.ld-styling-section { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 14px; }
.ld-style-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.ld-style-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ld-style-item input[type="color"] { width: 48px; height: 32px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; padding: 2px; }
.ld-style-item input[type="checkbox"] { width: auto; }

/* ── Buttons ── */
.ld-btn {
    display: inline-block; padding: 10px 22px;
    background: #2271b1; color: #fff;
    border: none; border-radius: 6px;
    cursor: pointer; font-size: 15px; text-decoration: none;
    transition: background .2s;
}
.ld-btn:hover { background: #135e96; color: #fff; }
.ld-btn-sm { padding: 7px 14px; font-size: 13px; }
.ld-btn-outline { background: transparent; border: 2px solid #2271b1; color: #2271b1; }
.ld-btn-outline:hover { background: #2271b1; color: #fff; }

/* ── Notices ── */
.ld-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.ld-notice-success { background: #edfaef; border-color: #46b450; color: #1a5c1d; }
.ld-notice-warning { background: #fff8e5; border-color: #ffb900; color: #6b4c00; }
.ld-notice-error   { background: #fdecea; border-color: #d63638; color: #8c1c1e; }

/* ── Directory Grid ── */
.ld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px; margin: 20px 0;
}
.ld-card {
    border: 1px solid #e0e0e0; border-radius: 10px;
    overflow: hidden; background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: box-shadow .2s, transform .2s;
}
.ld-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.13); transform: translateY(-2px); }
.ld-card-img img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ld-card-gallery { display: flex; gap: 4px; padding: 4px 8px 0; }
.ld-card-gallery img { width: 60px; height: 50px; object-fit: cover; border-radius: 4px; }
.ld-card-body { padding: 14px; }
.ld-card-title { margin: 0 0 8px; font-size: 16px; }
.ld-card-desc { font-size: 13px; color: #555; margin: 0 0 10px; }
.ld-meta { font-size: 13px; color: #666; margin: 4px 0; }
.ld-meta a { color: inherit; }
.ld-card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── Pricing Table ── */
.ld-pricing-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; margin: 30px 0;
    align-items: start;
}
.ld-pricing-card {
    border: 2px solid #e0e0e0; border-radius: 12px;
    overflow: hidden; background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: relative; transition: transform .2s, box-shadow .2s;
}
.ld-pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.ld-pricing-card.ld-featured { border-color: #f90; transform: scale(1.03); box-shadow: 0 8px 28px rgba(255,153,0,.25); }
.ld-featured-badge {
    position: absolute; top: 12px; left: 12px;
    background: #f90; color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.ld-pricing-header {
    padding: 24px 20px; color: #fff; text-align: center;
}
.ld-pricing-header h3 { margin: 0 0 8px; font-size: 20px; }
.ld-price { font-size: 32px; font-weight: 800; }
.ld-price span { font-size: 14px; font-weight: 400; opacity: .8; }
.ld-pkg-desc { margin: 8px 0 0; font-size: 13px; opacity: .85; }
.ld-pricing-body { padding: 20px; }
.ld-pricing-body ul { list-style: none; margin: 0 0 20px; padding: 0; }
.ld-pricing-body ul li { padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.ld-pricing-body ul li:last-child { border-bottom: none; }
.ld-pricing-btn {
    display: block; text-align: center;
    padding: 12px; border-radius: 8px;
    color: #fff; text-decoration: none;
    font-weight: 700; font-size: 15px;
    transition: opacity .2s;
}
.ld-pricing-btn:hover { opacity: .88; color: #fff; }

@media (max-width: 600px) {
    .ld-grid { grid-template-columns: 1fr; }
    .ld-pricing-wrap { grid-template-columns: 1fr; }
    .ld-pricing-card.ld-featured { transform: none; }
}
