/* Add / edit page screens (submit.php, submitvideo.php, update.php).
   Everything is scoped under .lc-sub so nothing leaks into other pages. */

.lc-sub {
    padding: 28px 0 56px;
    color: var(--lc-ink);
}

.lc-sub *,
.lc-sub *:before,
.lc-sub *:after {
    box-sizing: border-box;
}

/* ---------- Page header ---------- */
.lc-sub-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.lc-sub-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px !important;
    background: #fff;
    border: 1px solid var(--lc-line);
    box-shadow: 0 6px 16px rgba(23, 32, 51, 0.06);
    font-size: 26px;
    color: var(--lc-blue);
}

.lc-sub-badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin: 0;
}

.lc-sub-badge .lc-icon {
    font-size: 26px;
}

.lc-sub-head h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.lc-sub-head p {
    margin: 4px 0 0;
    color: var(--lc-muted);
    font-size: 15px;
}

/* ---------- Page type switcher ---------- */
.lc-sub-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.lc-sub-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--lc-line);
    border-radius: 999px !important;
    background: #fff;
    color: var(--lc-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lc-sub-tab .fa,
.lc-sub-tab .lc-icon {
    color: var(--lc-muted);
    font-size: 15px;
}

.lc-sub-tab:hover,
.lc-sub-tab:focus {
    border-color: #b9d2f5;
    background: var(--lc-blue-soft);
    color: var(--lc-blue-deep);
    text-decoration: none;
}

.lc-sub-tab.is-active {
    border-color: var(--lc-blue);
    background: var(--lc-blue);
    color: #fff;
}

.lc-sub-tab.is-active .fa,
.lc-sub-tab.is-active .lc-icon {
    color: #fff;
}

/* ---------- Notices ---------- */
.lc-sub-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px !important;
    border: 1px solid #f2d58a;
    background: #fff9e8;
    color: #6b4a00;
    font-size: 14px;
    line-height: 1.5;
}

.lc-sub-note > .fa {
    margin-top: 3px;
    font-size: 16px;
}

.lc-sub-note a {
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
}

.lc-sub-note.is-info {
    border-color: #cfe0f8;
    background: var(--lc-blue-soft);
    color: #17407f;
}

/* ---------- Form card ---------- */
.lc-sub-card {
    margin: 0 0 24px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--lc-line);
    border-radius: var(--lc-radius) !important;
    box-shadow: var(--lc-shadow);
    overflow: hidden;
}

.lc-sub-step {
    padding: 26px 28px;
    border-bottom: 1px solid var(--lc-line);
}

.lc-sub-step:last-of-type {
    border-bottom: 0;
}

.lc-sub-step-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.lc-sub-step-n {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    background: var(--lc-blue-soft);
    color: var(--lc-blue-deep);
    font-size: 14px;
    font-weight: 800;
}

.lc-sub-step-h small {
    margin-left: auto;
    color: var(--lc-muted);
    font-size: 13px;
    font-weight: 600;
}

.lc-sub .form-group {
    margin-bottom: 20px;
}

.lc-sub .form-group:last-child {
    margin-bottom: 0;
}

.lc-sub label {
    margin: 0 0 6px;
    color: var(--lc-ink);
    font-size: 14px;
    font-weight: 700;
}

.lc-sub .form-control {
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #d5dce8;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lc-sub .form-control:focus {
    border-color: var(--lc-blue);
    box-shadow: 0 0 0 4px rgba(31, 111, 214, 0.14);
}

.lc-sub textarea.form-control,
.lc-sub #desc {
    height: 104px;
    resize: vertical;
    line-height: 1.5;
}

.lc-sub textarea.form-control[readonly] {
    resize: none;
}

.lc-sub .form-control[disabled],
.lc-sub .form-control[readonly] {
    background: #f4f6fb;
    color: #6b7789;
}

.lc-sub .input-group {
    width: 100%;
}

.lc-sub .input-group-addon {
    border: 1px solid #d5dce8;
    border-right: 0;
    border-radius: 12px 0 0 12px !important;
    background: #f4f6fb;
    color: var(--lc-muted);
    font-size: 14px;
    font-weight: 600;
}

.lc-sub .input-group .form-control {
    border-radius: 0 12px 12px 0 !important;
}

.lc-sub .help-block,
.lc-sub .lc-sub-help {
    margin: 6px 0 0;
    color: var(--lc-muted);
    font-size: 13px;
}

.lc-sub .has-error .form-control {
    border-color: var(--lc-danger);
}

.lc-sub .has-error .help-block {
    color: var(--lc-danger);
}

.lc-sub .lc-sub-req {
    color: var(--lc-danger);
}

/* Title / description spinners while details are fetched */
.lc-sub .lc-field-wrap {
    position: relative;
}

.lc-sub .lc-field-wrap .lc-field-spin {
    display: none;
    position: absolute;
    top: 16px;
    right: 14px;
    z-index: 2;
    color: var(--lc-muted);
    pointer-events: none;
}

.lc-sub .lc-field-wrap.is-loading .lc-field-spin {
    display: block;
}

.lc-sub .lc-field-wrap.is-loading .form-control {
    padding-right: 38px;
    background-color: #f5f5f7;
    color: #8e8e93;
}

/* ---------- Cost ---------- */
.lc-sub-cost {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #f2dc9a;
    border-radius: 14px !important;
    background: var(--lc-gold-soft);
    color: #5a4300;
    font-size: 14px;
    line-height: 1.55;
}

.lc-sub-cost-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    background: #fff;
    color: var(--lc-gold);
    font-size: 18px;
}

.lc-sub-cost strong {
    color: #3f2e00;
}

.lc-sub-cost a {
    color: #7a5200;
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- Action bar ---------- */
.lc-sub-actions {
    padding: 20px 28px 22px;
    background: #fafbfe;
    border-top: 1px solid var(--lc-line);
}

.lc-sub-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.lc-sub-actions .btn-u,
.lc-sub-actions .lc-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px !important;
    font-size: 16px;
    font-weight: 700;
}

.lc-sub-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lc-muted);
    font-weight: 600;
    text-decoration: none;
}

.lc-sub-back:hover {
    color: var(--lc-ink);
    text-decoration: none;
}

.lc-sub-actions .lc-captcha-notice {
    margin: 14px 0 0;
    text-align: right;
}

/* ---------- Side cards ---------- */
.lc-sub-side {
    margin-bottom: 24px;
}

.lc-sub-aside-card {
    margin: 0 0 16px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--lc-line);
    border-radius: 16px !important;
}

.lc-sub-aside-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.lc-sub-aside-card h2 .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    font-size: 14px;
}

.lc-sub-aside-card.is-good h2 .fa {
    background: #e8f7ee;
    color: #127a3b;
}

.lc-sub-aside-card.is-info h2 .fa {
    background: var(--lc-blue-soft);
    color: var(--lc-blue-deep);
}

.lc-sub-aside-card.is-bad h2 .fa {
    background: #fdeaea;
    color: var(--lc-danger);
}

.lc-sub-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lc-sub-list li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 22px;
    color: #3b475c;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.lc-sub-list li:last-child {
    margin-bottom: 0;
}

.lc-sub-list li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    background: #127a3b;
}

.lc-sub-list.is-bad li:before {
    background: var(--lc-danger);
}

.lc-sub-list.is-info li:before {
    background: var(--lc-blue);
}

.lc-sub-list strong {
    color: var(--lc-ink);
    font-weight: 700;
}

.lc-sub-list a {
    font-weight: 600;
}

/* ---------- Video preview (submitvideo) ---------- */
.lc-sub #video-preview {
    display: none;
    max-width: 420px;
    margin: 0 0 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--lc-line);
    border-radius: 14px !important;
    background: #f4f6fb;
}

.lc-sub #video-preview img {
    display: block;
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #dfe5f0;
}

.lc-sub #video-preview-author {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
}

.lc-sub #video-msg {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.lc-sub #video-msg.color-red {
    color: var(--lc-danger) !important;
}

.lc-sub #lc-probe {
    position: absolute;
    left: -9999px;
    width: 200px;
    height: 113px;
}

.lc-sub .lc-tt-preview {
    display: none;
    width: 220px;
    margin-top: 12px;
}

.lc-sub .lc-tt-preview iframe {
    display: block;
    width: 220px;
    height: 392px;
    border: 0;
    background: #0f1420;
}

.lc-sub .lc-tt-preview span {
    display: block;
    margin-top: 8px;
}

/* ---------- Success ---------- */
.lc-sub #submitted {
    display: none;
    max-width: 560px;
    margin: 24px auto 0;
    padding: 40px 32px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--lc-line);
    border-radius: var(--lc-radius) !important;
    box-shadow: var(--lc-shadow);
}

.lc-sub-done-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 50% !important;
    background: #e8f7ee;
    color: #127a3b;
    font-size: 32px;
}

.lc-sub #submitted h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
}

.lc-sub #submitted p {
    margin: 0 0 14px;
    color: var(--lc-muted);
    font-size: 15px;
    line-height: 1.6;
}

.lc-sub #submitted h4 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
}

.lc-sub #submitted .btn-u {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px !important;
    font-size: 16px;
    font-weight: 700;
}

.lc-sub-empty {
    padding: 28px;
    text-align: center;
    color: var(--lc-muted);
}

/* ---------- Small screens ---------- */
@media (max-width: 991px) {
    .lc-sub-side {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .lc-sub {
        padding-top: 18px;
    }

    .lc-sub-head h1 {
        font-size: 23px;
    }

    .lc-sub-badge {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .lc-sub-step {
        padding: 20px 18px;
    }

    .lc-sub-actions {
        padding: 16px 18px 18px;
    }

    .lc-sub-actions-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .lc-sub-actions .btn-u,
    .lc-sub-actions .lc-sub-btn {
        justify-content: center;
        width: 100%;
    }

    .lc-sub-back {
        justify-content: center;
    }

    .lc-sub-actions .lc-captcha-notice {
        text-align: center;
    }

    .lc-sub-cost {
        padding: 14px;
    }

    .lc-sub .input-group-addon {
        padding: 6px 8px;
        font-size: 12px;
    }

    .lc-sub #submitted {
        padding: 30px 18px;
    }
}
