/* Wrapper */
.pricing-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* Individual cards */
.plan-card {
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 20px 24px 20px;
    background: #fff;
    cursor: pointer;
}

.plan-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border: 3px solid #008FFB;
}

.plan-card.active {
    border: 3px solid #008FFB;
    background: #f3f9ff;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.text-h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1c1c1c;
}

.btn-dark {
    border-radius: 5px;
    padding: 10px 30px;
    font-weight: 600;
    background-color: #1c1c1c;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.text-muted {
    font-size: 0.9rem;
    color: #6c757d;
}


.plan-tooltip {
    cursor: pointer;
}

.plan-tooltip i {
    color: #6c757d;
    font-size: 1rem;
}

.plan-tooltip:hover i {
    color: #0d6efd;
}

.plan-desc {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0; /* dynamically set */
    background-color: #1c1c1c;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.75rem;
    width: 100%;
    z-index: 20;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-desc i {
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.plan-desc::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1c1c1c;
}

.card-body {
    position: relative;
}

.plan-text {
    margin-top: 12px;
    line-height: 1.5;
}

/* newswire section */
.newswire-card h6 { font-size: 1.25rem; }
.newswire-card {
    padding: 2rem 6rem 3rem 6rem;
    border: 2px solid #d3d7df;
    border-radius: .5rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.newswire-card:hover {
    border-color: rgba(13,110,253,.3);
}
.newswire-card.selected {
    border-color: #0db2ff;
    background-color: #e9f5ff;
}
.newswire-logo {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 64px;
    height: auto;
}
.custom-radio {
    position: absolute;
    top: 50%; right: 1rem;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    border: 2px solid #b0b8c1;
    border-radius: 50%;
    background: transparent;
    transition: border-color .2s;
}
.newswire-card.selected .custom-radio {
    border-color: #0db2ff;
    border-width: 7px;
    background: transparent;
}
.price {
    position: absolute;
    bottom: 1.5rem;
    left: 6rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}
.info-badge {
    display: inline-flex;
    align-items: center;
    background: #e9f5ff;
    border: 1px solid #0db2ff;
    border-radius: .5rem;
    padding: .25rem .5rem;
    font-size: .875rem;
    color: #0db2ff;
    margin: .5rem 0;
}

@media (max-width: 576px) {
    .newswire-card {
        padding: 1.5rem 1rem 2.5rem;
    }
    .newswire-logo {
        position: static;
        display: block;
        margin: 0 auto .75rem;
    }
}

/* new order stepper styles */
.stepper {
    position: relative;
    padding: 0;
    margin: 0;
}
.stepper::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: #c0c6d1;
}
.step {
    position: relative;
    padding-left: 40px;
    min-height: 60px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.step:not(:last-child) {
    margin-bottom: 20px;
}
.step .circle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 3px solid #c0c6d1;
    border-radius: 50%;
    background: #fff;
}
.step .circle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0c6d1;
}
.step.active .circle {
    border-color: #0d6efd;
}
.step.active .circle::after {
    background: #0d6efd;
}
.step.completed .circle {
    border-color: #0d6efd;
    background: #0d6efd;
}

.step.completed .circle::after {
    background: transparent;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(-45deg);
    border-radius: 0;
}
.step.completed .label {
    color: #6c7a89;
}
.step-pane {
    display: none;
    animation: fade .2s ease-in;
}
.step-pane.active {
    display: block;
}
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 576px) {
    .stepper::before {
        display: none;
    }
    .step {
        padding-left: 0;
        flex-direction: column;
        text-align: center;
    }
    .step:not(:last-child) {
        margin-bottom: 10px;
    }
}

/* region card styles */
.region-card {
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.region-card.selected {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 .5rem rgba(13,110,253,.25);
}
.region-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
}

/* media chanel styles */

.media-channel-filter {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 10;
    min-width: 140px;
}
.media-channel-list {
    margin-top: 12px;
}
.media-channel-card.selected {
    border: 2px solid #2196f3 !important;
    background: #f9fbff;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
}
.media-channel-card {
    transition: border 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.media-channel-card .form-check-input:checked {
    background-color: #2196f3;
    border-color: #2196f3;
}
.media-channel-card .card-body {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    min-width: 0; /* allow inner content to shrink */
}
.media-channel-card .media-logo {
    width: 90px;
    height: 70px;
    object-fit: contain;
    margin: 0 8px 0 0;
    display: block;
}
.media-channel-card .flex-grow-1 {
    flex: 1 1 0%;
}
.media-channel-card .media-title {
    font-weight: 600;
    font-size: 1.12rem;
    margin-bottom: 2px;
}
.media-channel-card .media-desc {
    color: #5c5c5c;
    font-size: 0.97rem;
    margin-bottom: 7px;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.media-channel-card .media-meta {
    font-size: 0.93rem;
    margin-bottom: 2px;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.media-channel-card .media-meta strong {
    color: #1a1a1a;
}
.media-channel-card .media-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.media-channel-card .media-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
    text-align: right;
}
.media-channel-card .badge {
    font-size: 0.95em;
    padding: 3px 10px;
    background: #f3f7fa;
    border: 1px solid #e0e6ed;
    color: #444;
}
.media-channel-card .btn-link {
    font-size: 0.97em;
    color: #2196f3;
    text-decoration: underline;
    padding: 0 0 0 4px;
}

/* Prevent long URLs from breaking layout */
.media-channel-card .media-meta a {
    word-break: break-all;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .media-channel-filter {
        position: static;
        margin: 8px 0 12px;
        min-width: 0;
        width: 100%;
    }

    .media-channel-card .card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .media-channel-card .media-logo {
        width: 80px;
        height: auto;
        margin: 0 0 4px 0;
    }

    .media-channel-card .flex-grow-1 {
        width: 100%;
        min-width: 0;
    }

    /* Wrap header row where title and checkbox live */
    .media-channel-card .d-flex.justify-content-between.align-items-start {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .media-channel-card .media-footer {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 6px 10px;
    }

    .media-channel-card .media-price {
        text-align: left;
    }
}

/* addon card styles */

.addon-card {
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    cursor: pointer;
    border-radius: 0.375rem;
}

.addon-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.addon-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.addon-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.addon-checkbox {
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    position: relative;
    appearance: none;
    border: 1px solid #adb5bd;
    background-color: #fff;
}

.addon-checkbox:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.addon-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.60rem;
    height: 0.60rem;
    border-radius: 50%;
    background-color: #fff;
}

.addon-card.selected .addon-checkbox {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
/* release and upload styles */

.note-editor.note-frame {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Hide Summernote's default toolbar */
.note-toolbar {
    display: none !important;
}

.note-statusbar {
    display: none !important;
}

.form-text.text-end {
    font-size: 0.75rem;
    color: #6c757d;
}

.summernote {
    min-height: 150px;
}

.custom-toolbar {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 6px;
    margin-bottom: 10px;
}

.custom-toolbar button {
    background-color: #fff;
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.custom-toolbar button:hover {
    background-color: #e9ecef;
}

.custom-toolbar .vr {
    width: 1px;
    background-color: #dee2e6;
    margin: 0 6px;
    height: 20px;
    display: inline-block;
}

.custom-toolbar-group {
    display: flex;
    align-items: center;
}

.login-bg {
    background: url('/assets/general/images/bG9naW4tYmc2.jpg') center center no-repeat;
    background-size: cover;
}