/* ======================== */
/* Barlow kényszerítés      */
/* ======================== */

.pqm-frontend-wrapper,
.pqm-frontend-wrapper *,
.pqm-admin-wrapper,
.pqm-admin-wrapper * {
    font-family: 'Barlow', sans-serif !important;
}


/* ======================== */
/* FRONTEND ÜGYFÉL ŰRLAP    */
/* ======================== */

.pqm-frontend-wrapper {
    background: #fed033;
    border-radius: 32px;
    padding: 24px;
    color: #14171e;
    box-sizing: border-box;
    font-size: 18px;
}

.pqm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pqm-service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 0;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pqm-service-card--active {
    background: #ec911f !important;
    box-shadow: 0 0 0 2px #14171e33;
}

.pqm-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pqm-service-image {
    width: 100%;
    padding-top: 56%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pqm-service-content {
    padding: 12px 14px 14px;
    text-align: center;
}

.pqm-service-title {
    font-size: 25px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: #14171e;
}

.pqm-selected-service {
    font-size: 18px;
    margin-bottom: 8px;
}

.pqm-selected-service strong {
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
}

.pqm-form-wrapper {
    margin-top: 16px;
}

.pqm-quote-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pqm-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pqm-form-row label {
    font-size: 18px;
    font-weight: 500;
}

.pqm-quote-form input[type="text"],
.pqm-quote-form input[type="email"],
.pqm-quote-form input[type="tel"] {
    border-radius: 999px;
    border: none;
    padding: 10px 14px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
}

.pqm-quote-form input:focus {
    box-shadow: 0 0 0 2px rgba(20, 23, 30, 0.3);
}

.pqm-privacy-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
}

.pqm-privacy-label a {
    color: #14171e;
    text-decoration: underline;
}

.pqm-form-submit button {
    margin-top: 4px;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    background: #14171e;
    color: #fed033;
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.pqm-form-submit button:hover {
    opacity: 0.9;
}

/* Single service header */
.pqm-single-service-header h3 {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
}

.pqm-message {
    font-size: 18px;
}


/* ======================== */
/* ADMIN SHORTCODE NÉZET    */
/* ======================== */

.pqm-admin-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    color: #14171e;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.pqm-admin-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
}

.pqm-admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.pqm-admin-filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pqm-admin-filter-actions {
    display: flex;
    gap: 10px;
}

.pqm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.pqm-btn-primary {
    background: #fed033;
    color: #14171e;
}

.pqm-btn-secondary {
    background: #14171e;
    color: #fed033;
}

.pqm-btn-mini {
    padding: 4px 12px;
    font-size: 13px;
}

.pqm-admin-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ececec;
}

.pqm-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pqm-admin-grid input,
.pqm-admin-grid select {
    width: 100%;
}

.pqm-admin-new-quote-actions {
    margin-top: 16px;
}

/* Táblázat */

.pqm-admin-table-wrapper {
    margin-top: 16px;
    overflow-x: auto;
}

.pqm-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pqm-admin-table th,
.pqm-admin-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #ececec;
    text-align: left;
}

.pqm-inline-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pqm-badge {
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 11px;
}

.pqm-badge-success {
    background: #e1f7e8;
    color: #1b7c3d;
}

.pqm-link-edit {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #14171e;
    font-size: 12px;
    text-decoration: none;
    color: #14171e;
}

.pqm-link-edit:hover {
    background: #14171e;
    color: #fed033;
}


/* ======================== */
/* MOBIL NÉZET – FRONTEND   */
/* ======================== */

@media (max-width: 768px) {

    .pqm-frontend-wrapper {
        padding: 16px;
    }

    .pqm-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    /* 🔥 KISEBB NÉV MOBILON */
    .pqm-service-title {
        font-size: 12px !important;
        font-weight: 600;
    }

    .pqm-service-content {
        padding: 8px 6px 10px;
    }

    .pqm-quote-form input {
        font-size: 16px;
    }

    .pqm-form-submit button {
        font-size: 20px;
    }
}


/* ======================== */
/* MOBIL NÉZET – ADMIN      */
/* ======================== */

@media (max-width: 1024px) {
    .pqm-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .pqm-admin-wrapper {
        padding: 16px;
        border-radius: 16px;
    }

    .pqm-admin-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .pqm-admin-grid {
        grid-template-columns: 1fr;
    }

    .pqm-admin-table {
        font-size: 12px;
    }

    .pqm-admin-table th,
    .pqm-admin-table td {
        padding: 6px 4px;
    }
}
