/* =====================================================
   IPENKCO SERVICE CENTER
   Responsive Frontend UI — Navy / Blue / Orange
   ===================================================== */

.ipk-sc-wrapper {
    --ipk-navy: #0b1f33;
    --ipk-blue: #123b5b;
    --ipk-orange: #f28c28;
    --ipk-orange-dark: #d97617;
    --ipk-text: #243447;
    --ipk-muted: #687789;
    --ipk-border: #e2e8ef;
    --ipk-surface: #f5f8fb;
    --ipk-success: #17633b;
    --ipk-danger: #9b2828;

    direction: rtl;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    color: var(--ipk-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.9;
}

.ipk-sc-wrapper *,
.ipk-sc-wrapper *::before,
.ipk-sc-wrapper *::after {
    box-sizing: border-box;
}

.ipk-sc-wrapper a {
    text-decoration: none;
}

.ipk-sc-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ipk-sc-wrapper button,
.ipk-sc-modal button,
.ipk-sc-modal input,
.ipk-sc-modal select,
.ipk-sc-modal textarea {
    font-family: inherit;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */

.ipk-sc-page-header {
    position: relative;
    z-index: auto;
    overflow: hidden;
    margin: 0 0 30px;
    padding: 32px 34px;
    background: linear-gradient(120deg, #0b1f33 0%, #123b5b 100%);
    border-radius: 14px;
    border-right: 5px solid var(--ipk-orange);
    color: #fff;
}

.ipk-sc-page-header h1 {
    margin: 8px 0 10px;
    padding: 0;
    color: #fff;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.6;
}

.ipk-sc-page-header p {
    margin: 0;
    color: #e2ebf3;
    font-size: 15px;
    line-height: 2;
}

.ipk-sc-eyebrow {
    display: inline-block;
    color: var(--ipk-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    direction: ltr;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */

.ipk-sc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--ipk-muted);
    font-size: 13px;
}

.ipk-sc-breadcrumb a,
.ipk-sc-back-link {
    color: #b9630d;
    font-weight: 700;
}

.ipk-sc-breadcrumb a:hover,
.ipk-sc-back-link:hover {
    color: var(--ipk-navy);
}

/* =====================================================
   CATEGORY AND SERVICE GRIDS
   ===================================================== */

.ipk-sc-services-grid,
.ipk-sc-service-grid,
.ipk-sc-services-list,
.ipk-sc-service-cards {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =====================================================
   SERVICE AND CATEGORY CARDS
   ===================================================== */

.ipk-sc-service-card,
.ipk-sc-service-item,
.ipk-sc-service {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ipk-border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(11, 31, 51, .035);
    text-align: right;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ipk-sc-service-card:hover,
.ipk-sc-service-item:hover,
.ipk-sc-service:hover {
    border-color: rgba(242, 140, 40, .65);
    box-shadow: 0 8px 24px rgba(11, 31, 51, .085);
    transform: translateY(-2px);
}

/* Image */

.ipk-sc-service-image,
.ipk-sc-service-thumb {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 140px;
    width: 140px;
    height: 115px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: var(--ipk-surface);
    border-radius: 9px;
}

.ipk-sc-service-image img,
.ipk-sc-service-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .25s ease;
}

.ipk-sc-service-card:hover .ipk-sc-service-image img,
.ipk-sc-service-item:hover .ipk-sc-service-thumb img {
    transform: scale(1.04);
}

/* Fallback icon */

.ipk-sc-service-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    margin: 0;
    color: var(--ipk-orange);
    background: #fff5ea;
    border: 1px solid #ffe1c1;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 900;
    direction: ltr;
}

/* Card content */

.ipk-sc-service-card-body,
.ipk-sc-service-info,
.ipk-sc-service-content,
.ipk-sc-service-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.ipk-sc-service-card-title,
.ipk-sc-service-title,
.ipk-sc-service-card h3 {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    color: var(--ipk-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.8;
    text-align: right;
    overflow-wrap: anywhere;
}

.ipk-sc-service-card-title a,
.ipk-sc-service-title a {
    color: var(--ipk-navy);
    text-decoration: none;
}

.ipk-sc-service-card-title a:hover,
.ipk-sc-service-title a:hover {
    color: var(--ipk-orange-dark);
}

.ipk-sc-service-excerpt,
.ipk-sc-service-description,
.ipk-sc-service-card-body p {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    color: var(--ipk-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    text-align: right;
    overflow-wrap: anywhere;
}

.ipk-sc-service-excerpt p,
.ipk-sc-service-description p {
    margin: 0 0 6px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.ipk-sc-wrapper .ipk-sc-button,
.ipk-sc-modal .ipk-sc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 10px 19px;
    color: #fff;
    background: var(--ipk-orange);
    border: 1px solid var(--ipk-orange);
    border-radius: 7px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.ipk-sc-wrapper .ipk-sc-button:hover,
.ipk-sc-modal .ipk-sc-button:hover {
    color: #fff;
    background: var(--ipk-orange-dark);
    border-color: var(--ipk-orange-dark);
}

.ipk-sc-wrapper .ipk-sc-button:focus-visible,
.ipk-sc-modal .ipk-sc-button:focus-visible,
.ipk-sc-modal-close:focus-visible {
    outline: 3px solid rgba(242, 140, 40, .35);
    outline-offset: 3px;
}

.ipk-sc-wrapper .ipk-sc-button-outline {
    color: var(--ipk-navy);
    background: #fff;
    border-color: var(--ipk-border);
}

.ipk-sc-wrapper .ipk-sc-button-outline:hover {
    color: #fff;
    background: var(--ipk-navy);
    border-color: var(--ipk-navy);
}

.ipk-sc-wrapper .ipk-sc-button-small {
    min-height: 35px;
    padding: 7px 13px;
    font-size: 13px;
}

.ipk-sc-service-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.ipk-sc-service-actions .ipk-sc-button {
    flex: 0 0 auto;
}

.ipk-sc-service-request-button {
    cursor: pointer;
}

/* =====================================================
   SERVICE DETAILS
   ===================================================== */

.ipk-sc-service-detail {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ipk-border);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(11, 31, 51, .045);
}

.ipk-sc-detail-image {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    margin: 0 0 24px;
    background: var(--ipk-surface);
    border-radius: 10px;
}

.ipk-sc-detail-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.ipk-sc-detail-title {
    margin: 0 0 20px;
    padding: 0 15px 0 0;
    color: var(--ipk-navy);
    border-right: 4px solid var(--ipk-orange);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.8;
}

.ipk-sc-service-content {
    display: block;
    color: var(--ipk-text);
    line-height: 2.1;
    overflow-wrap: anywhere;
}

.ipk-sc-service-content p {
    margin: 0 0 18px;
}

.ipk-sc-service-content h2,
.ipk-sc-service-content h3,
.ipk-sc-service-content h4,
.ipk-sc-service-additional-info h2,
.ipk-sc-service-additional-info h3,
.ipk-sc-service-additional-info h4 {
    margin: 26px 0 12px;
    color: var(--ipk-navy);
    font-weight: 800;
    line-height: 1.8;
}

.ipk-sc-service-content ul,
.ipk-sc-service-content ol,
.ipk-sc-service-additional-info ul,
.ipk-sc-service-additional-info ol {
    margin: 12px 0 20px;
    padding-right: 24px;
}

.ipk-sc-service-content li,
.ipk-sc-service-additional-info li {
    margin-bottom: 7px;
}

.ipk-sc-service-content a,
.ipk-sc-service-additional-info a {
    color: #b9630d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ipk-sc-service-content a:hover,
.ipk-sc-service-additional-info a:hover {
    color: var(--ipk-navy);
}

.ipk-sc-service-additional-info {
    margin-top: 25px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid var(--ipk-border);
    border-right: 4px solid var(--ipk-orange);
    border-radius: 9px;
    line-height: 2.1;
    overflow-wrap: anywhere;
}

.ipk-sc-service-additional-info > :first-child {
    margin-top: 0;
}

.ipk-sc-service-additional-info > :last-child {
    margin-bottom: 0;
}

.ipk-sc-service-children {
    margin: 30px 0;
}

.ipk-sc-service-children > h2 {
    margin: 0 0 18px;
    color: var(--ipk-navy);
    font-size: 22px;
    font-weight: 800;
}

/* =====================================================
   REQUEST FORM
   ===================================================== */

.ipk-sc-request-box {
    display: block;
    width: 100%;
    margin: 30px 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--ipk-border);
    border-top: 4px solid var(--ipk-orange);
    border-radius: 12px;
    box-shadow: 0 5px 22px rgba(11, 31, 51, .05);
    scroll-margin-top: 30px;
}

.ipk-sc-section-heading {
    margin: 0 0 22px;
}

.ipk-sc-section-heading h2 {
    margin: 0 0 6px;
    color: var(--ipk-navy);
    font-size: 22px;
    font-weight: 800;
}

.ipk-sc-section-heading p {
    margin: 0;
    color: var(--ipk-muted);
    font-size: 14px;
}

.ipk-sc-request-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin: 0;
}

.ipk-sc-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    margin: 0;
}

.ipk-sc-form-field label {
    display: block;
    margin: 0;
    color: var(--ipk-navy);
    font-size: 14px;
    font-weight: 700;
}

.ipk-sc-form-field label span {
    color: #d53b32;
}

.ipk-sc-form-field input,
.ipk-sc-form-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px;
    color: var(--ipk-text);
    background: #fff;
    border: 1px solid #d6dfe8;
    border-radius: 7px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    box-shadow: none;
}

.ipk-sc-form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.ipk-sc-form-field input:focus,
.ipk-sc-form-field textarea:focus {
    outline: none;
    border-color: var(--ipk-orange);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, .12);
}

.ipk-sc-request-form > button {
    align-self: flex-start;
}

/* =====================================================
   LOGIN REQUIRED
   ===================================================== */

.ipk-sc-login-required {
    display: block;
    width: 100%;
    margin: 0;
    padding: 22px;
    background: #fff8f0;
    border: 1px solid #f7d7b4;
    border-radius: 9px;
}

.ipk-sc-login-required p {
    margin: 0 0 14px;
    color: var(--ipk-navy);
}

/* =====================================================
   NOTICES AND EMPTY STATES
   ===================================================== */

.ipk-sc-notice {
    display: block;
    width: 100%;
    margin: 0 0 22px;
    padding: 15px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.9;
}

.ipk-sc-notice-success {
    color: var(--ipk-success);
    background: #edf9f1;
    border: 1px solid #c6e9d1;
}

.ipk-sc-notice-error {
    color: var(--ipk-danger);
    background: #fff1f1;
    border: 1px solid #f2cccc;
}

.ipk-sc-empty {
    display: block;
    width: 100%;
    margin: 16px 0;
    padding: 25px;
    color: var(--ipk-muted);
    background: var(--ipk-surface);
    border: 1px dashed #cbd6e1;
    border-radius: 10px;
    text-align: center;
}

.ipk-sc-empty p {
    margin: 0 0 12px;
}

/* =====================================================
   REQUEST DETAILS AND CONVERSATION
   ===================================================== */

.ipk-sc-back-link {
    display: inline-block;
    margin: 0 0 18px;
}

.ipk-sc-request-detail {
    display: block;
    width: 100%;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--ipk-border);
    border-radius: 12px;
}

.ipk-sc-request-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ipk-border);
}

.ipk-sc-request-detail-header h1 {
    margin: 5px 0 0;
    color: var(--ipk-navy);
    font-size: 23px;
    font-weight: 800;
}

.ipk-sc-request-number {
    color: var(--ipk-muted);
    font-size: 12px;
}

.ipk-sc-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ipk-sc-status-new {
    color: #174b78;
    background: #e9f3fc;
}

.ipk-sc-status-in_progress {
    color: #80520c;
    background: #fff3d8;
}

.ipk-sc-status-waiting_user {
    color: #8a4b0b;
    background: #fff0df;
}

.ipk-sc-status-answered,
.ipk-sc-status-completed {
    color: var(--ipk-success);
    background: #e6f7ed;
}

.ipk-sc-status-rejected {
    color: var(--ipk-danger);
    background: #fff0f0;
}

.ipk-sc-request-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.ipk-sc-request-meta > div {
    min-width: 0;
    padding: 13px;
    background: var(--ipk-surface);
    border-radius: 8px;
}

.ipk-sc-request-meta dt {
    margin: 0 0 4px;
    color: var(--ipk-muted);
    font-size: 12px;
}

.ipk-sc-request-meta dd {
    margin: 0;
    color: var(--ipk-navy);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ipk-sc-original-message,
.ipk-sc-conversation {
    margin: 24px 0 0;
}

.ipk-sc-original-message h2,
.ipk-sc-conversation h2 {
    margin: 0 0 14px;
    color: var(--ipk-navy);
    font-size: 18px;
    font-weight: 800;
}

.ipk-sc-message-content {
    overflow-wrap: anywhere;
    line-height: 2;
}

.ipk-sc-original-message .ipk-sc-message-content {
    padding: 18px;
    background: var(--ipk-surface);
    border-radius: 8px;
}

.ipk-sc-message {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 17px;
    border-radius: 10px;
}

.ipk-sc-message-admin {
    background: #edf4fa;
    border-right: 4px solid #174b78;
}

.ipk-sc-message-user {
    background: #fff7ee;
    border-right: 4px solid var(--ipk-orange);
}

.ipk-sc-message-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--ipk-navy);
    font-size: 13px;
}

.ipk-sc-message-header time {
    color: var(--ipk-muted);
    font-size: 11px;
}

.ipk-sc-empty-conversation {
    padding: 15px;
    color: var(--ipk-muted);
    background: var(--ipk-surface);
    border-radius: 8px;
}

/* =====================================================
   REQUESTS TABLE
   ===================================================== */

.ipk-sc-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--ipk-border);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.ipk-sc-requests-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: #fff;
    text-align: right;
}

.ipk-sc-requests-table th {
    padding: 15px 13px;
    color: #fff;
    background: var(--ipk-navy);
    border: 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.ipk-sc-requests-table td {
    padding: 14px 13px;
    color: var(--ipk-text);
    border: 0;
    border-bottom: 1px solid var(--ipk-border);
    font-size: 13px;
    vertical-align: middle;
}

.ipk-sc-requests-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ipk-sc-requests-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =====================================================
   REQUEST MODAL
   ===================================================== */

.ipk-sc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.ipk-sc-modal.is-open {
    display: flex;
}

.ipk-sc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 31, .76);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ipk-sc-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 590px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(242, 140, 40, .35);
    border-top: 5px solid var(--ipk-orange);
    border-radius: 15px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
    animation: ipk-sc-modal-enter .2s ease-out;
}

@keyframes ipk-sc-modal-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ipk-sc-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--ipk-navy);
    background: #f1f5f8;
    border: 1px solid var(--ipk-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ipk-sc-modal-close:hover {
    color: #fff;
    background: var(--ipk-navy);
}

.ipk-sc-modal-heading {
    margin: 0 0 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--ipk-border);
}

.ipk-sc-modal-heading .ipk-sc-eyebrow {
    color: var(--ipk-orange-dark);
}

.ipk-sc-modal-heading h2 {
    margin: 8px 0;
    padding: 0 25px 0 0;
    color: var(--ipk-navy);
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.7;
}

.ipk-sc-modal-heading p {
    margin: 0;
    color: var(--ipk-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* Selected service panel */

.ipk-sc-selected-service {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin: 0 0 2px;
    padding: 13px 15px;
    background: linear-gradient(120deg, #f5f8fb 0%, #fff7ee 100%);
    border: 1px solid #f1d5b7;
    border-right: 4px solid var(--ipk-orange);
    border-radius: 8px;
}

.ipk-sc-selected-service > span {
    color: var(--ipk-muted);
    font-size: 12px;
}

.ipk-sc-selected-service > strong {
    color: var(--ipk-navy);
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* Modal form */

.ipk-sc-modal-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
    margin: 0;
}

.ipk-sc-modal .ipk-sc-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.ipk-sc-modal .ipk-sc-form-field label {
    color: var(--ipk-navy);
    font-size: 14px;
    font-weight: 700;
}

.ipk-sc-modal .ipk-sc-form-field label span {
    color: #d53b32;
}

.ipk-sc-modal .ipk-sc-form-field input,
.ipk-sc-modal .ipk-sc-form-field select,
.ipk-sc-modal .ipk-sc-form-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 47px;
    margin: 0;
    padding: 11px 13px;
    color: var(--ipk-text);
    background: #fff;
    border: 1px solid #d6dfe8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    box-shadow: none;
}

.ipk-sc-modal .ipk-sc-form-field select {
    cursor: pointer;
}

.ipk-sc-modal .ipk-sc-form-field textarea {
    min-height: 125px;
    resize: vertical;
}

.ipk-sc-modal .ipk-sc-form-field input:focus,
.ipk-sc-modal .ipk-sc-form-field select:focus,
.ipk-sc-modal .ipk-sc-form-field textarea:focus {
    outline: none;
    border-color: var(--ipk-orange);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, .13);
}

.ipk-sc-modal .ipk-sc-modal-submit {
    align-self: flex-start;
    min-width: 150px;
    margin-top: 3px;
}

.ipk-sc-modal .ipk-sc-modal-submit:disabled {
    opacity: .65;
    cursor: wait;
}

/* AJAX feedback */

.ipk-sc-modal-feedback {
    display: block;
    margin: 0 0 17px;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ipk-sc-modal-feedback[hidden] {
    display: none;
}

.ipk-sc-modal-feedback.is-success {
    color: var(--ipk-success);
    background: #edf9f1;
    border-color: #c6e9d1;
}

.ipk-sc-modal-feedback.is-error {
    color: var(--ipk-danger);
    background: #fff1f1;
    border-color: #f2cccc;
}

.ipk-sc-modal-feedback.is-loading {
    color: #174b78;
    background: #edf4fa;
    border-color: #d0e2f2;
}

body.ipk-sc-modal-open {
    overflow: hidden;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (min-width: 768px) {
    .ipk-sc-services-grid,
    .ipk-sc-service-grid,
    .ipk-sc-services-list,
    .ipk-sc-service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {
    .ipk-sc-wrapper {
        padding: 12px;
        font-size: 14px;
    }

    .ipk-sc-page-header {
        margin-bottom: 22px;
        padding: 24px 20px;
        border-radius: 10px;
    }

    .ipk-sc-page-header h1 {
        font-size: 23px;
    }

    .ipk-sc-page-header p {
        font-size: 13px;
    }

    .ipk-sc-services-grid,
    .ipk-sc-service-grid,
    .ipk-sc-services-list,
    .ipk-sc-service-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ipk-sc-service-card,
    .ipk-sc-service-item,
    .ipk-sc-service {
        gap: 13px;
        padding: 14px;
        border-radius: 9px;
    }

    .ipk-sc-service-image,
    .ipk-sc-service-thumb {
        flex-basis: 95px;
        width: 95px;
        height: 95px;
    }

    .ipk-sc-service-icon {
        flex-basis: 65px;
        width: 65px;
        height: 65px;
        font-size: 14px;
    }

    .ipk-sc-service-card-title,
    .ipk-sc-service-title,
    .ipk-sc-service-card h3 {
        font-size: 15px;
        line-height: 1.7;
    }

    .ipk-sc-service-excerpt,
    .ipk-sc-service-description,
    .ipk-sc-service-card-body p {
        font-size: 12px;
        line-height: 1.8;
    }

    .ipk-sc-wrapper .ipk-sc-button,
    .ipk-sc-modal .ipk-sc-button {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .ipk-sc-service-detail,
    .ipk-sc-request-box,
    .ipk-sc-request-detail {
        padding: 18px;
    }

    .ipk-sc-detail-title {
        font-size: 22px;
    }

    .ipk-sc-service-additional-info {
        padding: 15px;
    }

    .ipk-sc-request-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .ipk-sc-request-detail-header h1 {
        font-size: 19px;
    }

    .ipk-sc-request-form > button {
        width: 100%;
    }

    .ipk-sc-modal {
        padding: 10px;
    }

    .ipk-sc-modal-dialog {
        max-height: calc(100vh - 20px);
        padding: 23px 18px;
        border-radius: 12px;
    }

    .ipk-sc-modal-heading h2 {
        font-size: 21px;
    }

    .ipk-sc-modal .ipk-sc-modal-submit {
        width: 100%;
    }
}

/* =====================================================
   VERY SMALL MOBILE
   ===================================================== */

@media (max-width: 380px) {
    .ipk-sc-service-card,
    .ipk-sc-service-item,
    .ipk-sc-service {
        align-items: flex-start;
        flex-direction: column;
    }

    .ipk-sc-service-image,
    .ipk-sc-service-thumb {
        flex: none;
        width: 100%;
        height: 170px;
    }

    .ipk-sc-service-icon {
        flex: none;
    }

    .ipk-sc-service-card-body,
    .ipk-sc-service-info {
        width: 100%;
    }

    .ipk-sc-service-actions {
        align-items: stretch;
    }

    .ipk-sc-service-actions .ipk-sc-button {
        flex: 1 1 auto;
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .ipk-sc-service-card,
    .ipk-sc-service-item,
    .ipk-sc-service,
    .ipk-sc-service-image img,
    .ipk-sc-service-thumb img,
    .ipk-sc-modal-dialog {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
   IPENKCO SERVICE CENTER
   FIX: BLUE HEADER OVERLAPPING MAIN MENU
   ===================================================== */

/* هدر اصلی OceanWP هنگام اسکرول بالاتر بماند */
#site-header {
    z-index: 99999 !important;
}

/* لایه‌های اصلی ناوبری سایت */
#site-header-inner,
#site-navigation-wrap,
#site-navigation,
#site-navigation .dropdown-menu,
#oceanwp-mobile-menu-icon,
.oceanwp-mobile-menu-icon {
    z-index: 99999 !important;
}

/* هدر آبی مرکز خدمات نباید لایه شناور ایجاد کند */
.ipk-sc-wrapper .ipk-sc-page-header,
.ipk-sc-wrapper .ipenkco-sc-header,
.ipk-sc-wrapper .ipenkco-sc-hero {
    position: relative;
    z-index: 0 !important;
}

/* کارت‌ها و محتوای مرکز خدمات */
.ipk-sc-wrapper .ipk-sc-service-card,
.ipk-sc-wrapper .ipk-sc-service-item,
.ipk-sc-wrapper .ipk-sc-service-detail {
    z-index: auto;
}

/* پنجره ثبت درخواست بالاتر از سایر اجزا باقی بماند */
.ipk-sc-modal {
    z-index: 1000000 !important;
}
