/* Contract Termination module — storefront styles.
   Self-contained: does not depend on Bootstrap or theme grid classes. */

#ctm-wrap {
    max-width: 560px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

#ctm-wrap.ctm-wide {
    max-width: 840px;
}

#ctm-wrap .ctm-title {
    text-align: center;
    font-size: 26px;
    margin: 0 0 8px;
}

#ctm-wrap .ctm-lead {
    text-align: center;
    color: #777;
    margin: 0 0 25px;
}

/* Step indicator */
.ctm-steps {
    text-align: center;
    margin-bottom: 25px;
}

.ctm-steps span {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    font-weight: 600;
    margin: 0 5px;
    text-align: center;
}

.ctm-steps span.active {
    background: #12365E;
    color: #fff;
}

.ctm-steps span.done {
    background: #5cb85c;
    color: #fff;
}

/* Card */
#ctm-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    padding: 32px 30px;
}

/* Alerts */
.ctm-alert {
    margin-bottom: 20px;
}

/* Form fields */
.ctm-group {
    margin-bottom: 20px;
}

.ctm-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.ctm-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

textarea.ctm-control {
    height: auto;
    resize: vertical;
}

.ctm-control:focus {
    outline: none;
    border-color: #12365E;
    box-shadow: 0 0 0 3px rgba(18, 54, 94, 0.15);
}

.ctm-control.ctm-invalid {
    border-color: #dc3545;
}

.ctm-control.ctm-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.ctm-error {
    margin-top: 5px;
    font-size: 13px;
    color: #dc3545;
}

/* Buttons */
.ctm-btn {
    display: inline-block;
    padding: 0 24px;
    height: 46px;
    line-height: 46px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
}

.ctm-btn-primary {
    background: #F96C18;
    color: #fff;
    border-color: #F96C18;
}

.ctm-btn-primary:hover {
    background: #e0610f;
    border-color: #e0610f;
    color: #fff;
}

.ctm-btn-default {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.ctm-btn-default:hover {
    background: #e8e8e8;
    color: #333;
}

.ctm-submit {
    width: 100%;
    margin-top: 6px;
}

/* Products table */
.ctm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.ctm-table thead td {
    background: #f7f9fb;
    font-weight: 600;
    border-bottom: 2px solid #e6e6e6;
    padding: 10px 12px;
}

.ctm-table tbody td {
    vertical-align: middle;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.ctm-table .ctm-name {
    font-weight: 600;
    color: #333;
}

.ctm-text-left {
    text-align: left;
}

.ctm-text-right {
    text-align: right;
}

.ctm-text-center {
    text-align: center;
}

.ctm-qty {
    width: 80px;
    height: 38px;
    margin: 0 auto;
    display: inline-block;
}

/* Actions row */
.ctm-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

/* Success */
#ctm-card.ctm-success {
    padding: 40px 30px;
    text-align: center;
}

.ctm-success-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #5cb85c;
    color: #fff;
    font-size: 38px;
}

.ctm-success-msg {
    font-size: 16px;
    color: #555;
    margin-bottom: 28px;
}

.ctm-continue {
    min-width: 200px;
}

/* Responsive */
@media (max-width: 600px) {
    .ctm-table thead {
        display: none;
    }

    .ctm-table tbody td {
        display: block;
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .ctm-actions {
        flex-direction: column-reverse;
    }

    .ctm-actions .ctm-btn {
        width: 100%;
        margin-top: 10px;
    }
}
