/* Service Error Codes Table Section */

.error-codes-table {
    padding: 70px 0;
    background: var(--whitef6, #f6f6f6);
    color: var(--black22, #222);
    font-family: var(--font-family);
}

.error-codes-table__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.error-codes-table__header {
    text-align: center;
    margin-bottom: 48px;
}

.error-codes-table__title {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 600;
    line-height: 120%;
    color: var(--black22, #222);
}

.error-codes-table__subtitle {
    margin: 0 auto;
    max-width: 720px;
    color: var(--gray66, #666);
    font-size: 16px;
    line-height: 150%;
}

/* Table Wrapper */
.error-codes-table__wrapper {
    overflow-x: auto;
    margin-bottom: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Table */
.error-codes-table__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white, #ffffff);
    border: 1px solid var(--graye5, #e5e5e5);
    border-radius: 12px;
    overflow: hidden;
    min-width: 700px;
}

/* Table Header */
.error-codes-table__table thead {
    background: var(--red, #cc2229);
    color: var(--white, #ffffff);
}

.error-codes-table__table thead th {
    padding: 18px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.error-codes-table__code-col {
    width: 15%;
}

.error-codes-table__issue-col {
    width: 25%;
}

.error-codes-table__description-col {
    width: 60%;
}

/* Table Body */
.error-codes-table__table tbody tr {
    border-bottom: 1px solid var(--graye5, #e5e5e5);
    transition: background-color 0.2s ease;
}

.error-codes-table__table tbody tr:last-child {
    border-bottom: none;
}

.error-codes-table__table tbody tr:hover {
    background: var(--whitef6, #f6f6f6);
}

.error-codes-table__table tbody td {
    padding: 18px 16px;
    font-size: 14px;
    line-height: 160%;
    vertical-align: top;
}

/* Code Cell */
.error-codes-table__code-cell {
    font-weight: 600;
}

.error-codes-table__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--red, #cc2229);
    color: var(--white, #ffffff);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.error-codes-table__code-placeholder {
    color: var(--gray66, #666);
}

/* Issue Cell */
.error-codes-table__issue-cell {
    color: var(--black22, #222);
    font-size: 15px;
}

.error-codes-table__issue-cell strong {
    font-weight: 600;
}

/* Description Cell */
.error-codes-table__description-cell {
    color: var(--gray66, #666);
}

.error-codes-table__description-cell p {
    margin: 0 0 8px;
}

.error-codes-table__description-cell p:last-child {
    margin-bottom: 0;
}

/* Footer CTA Box */
.error-codes-table__footer {
    margin-top: 48px;
}

.error-codes-table__cta-box {
    background: linear-gradient(135deg, var(--red, #cc2229) 0%, #9b1116 100%);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    box-shadow: 0 8px 24px rgba(204, 34, 41, 0.2);
}

.error-codes-table__cta-content {
    flex: 1;
}

.error-codes-table__cta-title {
    margin: 0 0 8px;
    color: var(--white, #ffffff);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
}

.error-codes-table__cta-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 150%;
}

.error-codes-table__cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.error-codes-table__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--white, #ffffff);
    color: var(--red, #cc2229);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--white, #ffffff);
    white-space: nowrap;
}

.error-codes-table__cta-button:hover {
    background: transparent;
    color: var(--white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.error-codes-table__cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.error-codes-table__cta-button:hover .error-codes-table__cta-arrow {
    transform: translateX(4px);
}

.error-codes-table__cta-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    color: var(--white, #ffffff);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.error-codes-table__cta-phone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white, #ffffff);
    transform: translateY(-2px);
}

.error-codes-table__phone-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Responsive */
@media (max-width: 743px) {
    .error-codes-table {
        padding: 50px 0;
    }

    .error-codes-table__container {
        padding: 0 16px;
    }

    .error-codes-table__header {
        margin-bottom: 32px;
    }

    .error-codes-table__title {
        font-size: 26px;
    }

    .error-codes-table__subtitle {
        font-size: 14px;
    }

    .error-codes-table__wrapper {
        margin: 0 -16px 32px;
        padding: 0 16px;
        border-radius: 0;
    }

    .error-codes-table__table {
        font-size: 12px;
        min-width: 600px;
    }

    .error-codes-table__table thead th {
        padding: 14px 12px;
        font-size: 11px;
    }

    .error-codes-table__table tbody td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .error-codes-table__code {
        padding: 4px 10px;
        font-size: 11px;
    }

    .error-codes-table__issue-cell {
        font-size: 13px;
    }

    /* Stack CTA on mobile */
    .error-codes-table__cta-box {
        flex-direction: column;
        padding: 28px 20px;
        gap: 24px;
        text-align: center;
    }

    .error-codes-table__cta-title {
        font-size: 20px;
    }

    .error-codes-table__cta-text {
        font-size: 14px;
    }

    .error-codes-table__cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .error-codes-table__cta-button,
    .error-codes-table__cta-phone {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Tablet */
@media (min-width: 744px) and (max-width: 1023px) {
    .error-codes-table__title {
        font-size: 32px;
    }

    .error-codes-table__table {
        font-size: 13px;
    }

    .error-codes-table__cta-box {
        padding: 32px;
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .error-codes-table__cta-actions {
        width: 100%;
        justify-content: center;
    }

    .error-codes-table__cta-title {
        font-size: 22px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .error-codes-table {
        padding: 90px 0;
    }

    .error-codes-table__title {
        font-size: 40px;
    }

    .error-codes-table__table thead th {
        padding: 20px 20px;
        font-size: 15px;
    }

    .error-codes-table__table tbody td {
        padding: 20px;
        font-size: 15px;
    }

    .error-codes-table__code {
        padding: 8px 16px;
        font-size: 14px;
    }

    .error-codes-table__issue-cell {
        font-size: 16px;
    }

    .error-codes-table__cta-title {
        font-size: 26px;
    }

    .error-codes-table__cta-text {
        font-size: 16px;
    }
}
