/* CastTalents — registration & profile wizard premium UI */

.ct-register-hero {
    /* Header is position:absolute over the page — leave room for it (same as .innerpages). */
    padding: 150px 0 100px;
    background: linear-gradient(160deg, #f3fbff 0%, #ffffff 45%, #eef8f9 100%);
    min-height: 70vh;
}

@media (max-width: 768px) {
    .ct-register-hero {
        padding-top: 110px;
    }
}

.ct-register-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(28, 120, 135, 0.12);
    padding: 2rem 1.75rem;
    border: 1px solid rgba(28, 120, 135, 0.08);
}

@media (min-width: 768px) {
    .ct-register-card {
        padding: 2.5rem 2.75rem;
    }
}

.ct-register-card__header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #062646;
    margin-bottom: 0.5rem;
}

.ct-register-card__header p {
    color: #5a6a7a;
    font-size: 0.95rem;
}

.ct-doc-name-note {
    background: #f0f9fa;
    border-left: 4px solid #1c7887;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #333;
}

.ct-account-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ct-account-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.25rem 0.75rem;
    border: 2px solid #e2e8ec;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 110px;
    background: #fafbfc;
}

.ct-account-tile i {
    font-size: 1.5rem;
    color: #1c7887;
}

.ct-account-tile span {
    font-weight: 700;
    color: #062646;
}

.ct-account-tile small {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.3;
}

.ct-account-radio:checked + .ct-account-tile {
    border-color: #1c7887;
    background: #f0f9fa;
    box-shadow: 0 4px 16px rgba(28, 120, 135, 0.15);
}

.ct-form-control,
.ct-register-card .form-control,
.ct-register-card .form-select {
    border-radius: 10px;
    border: 1px solid #c5d0d6;
    padding: 0.65rem 0.85rem;
    min-height: 46px;
}

.ct-form-control:focus {
    border-color: #1c7887;
    box-shadow: 0 0 0 0.2rem rgba(28, 120, 135, 0.15);
}

.ct-btn-primary {
    background: #1c7887;
    border: 2px solid #1c7887;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: all 0.2s ease;
}

.ct-btn-primary:hover {
    background: #155a66;
    border-color: #155a66;
    color: #fff;
}

/* Profile wizard steps */
.ct-wizard-step-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ct-wizard-step-head h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #062646;
    margin-bottom: 0.35rem;
}

.ct-wizard-step-head p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

.ct-wizard-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ct-wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dde4e8;
    transition: background 0.2s;
}

.ct-wizard-dot.active {
    background: #1c7887;
    transform: scale(1.2);
}

/* Category grid premium */
.category-grid.ct-category-grid {
    gap: 1rem;
}

.ct-category-grid .selectbox .catogerybox {
    border: 2px solid #e8ecef;
    border-radius: 14px;
    padding: 1rem 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background: #fff;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ct-category-grid .selectbox input[type="checkbox"]:checked + .customselect .catogerybox {
    border-color: #1c7887;
    background: linear-gradient(180deg, #f0f9fa 0%, #fff 100%);
    box-shadow: 0 8px 24px rgba(28, 120, 135, 0.12);
    transform: translateY(-2px);
}

.ct-category-grid .catogerybox img {
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.ct-category-grid .catogerybox h5 {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #062646;
    margin: 0;
}

/* Subcategory sections */
.subcategory-section.ct-subcategory-panel {
    background: #f8fbfc;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2eaed;
}

.subcategory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dce5e9;
}

.subcategory-header h5 {
    margin: 0;
    font-weight: 700;
    color: #1c7887;
    font-size: 1.1rem;
}

.select-all-btn {
    background: transparent;
    border: 1px solid #1c7887;
    color: #1c7887;
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.select-all-btn:hover {
    background: #1c7887;
    color: #fff;
}

.musicainlist ul li label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
}

.musicainlist ul li label:hover {
    background: rgba(28, 120, 135, 0.06);
}

/* Photo upload step */
.ct-media-upload-zone {
    border: 2px dashed #b8d4d9;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fcfd 0%, #fff 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ct-media-upload-zone:hover {
    border-color: #1c7887;
    background: #f0f9fa;
    box-shadow: 0 8px 24px rgba(28, 120, 135, 0.12);
}

.ct-media-upload-zone .upload-icon {
    font-size: 2.5rem;
    color: #1c7887;
    margin-bottom: 0.75rem;
}

.ct-wizard-step-head + .row .uploadimg {
    background: #fff;
    border: 1px solid #e6edf0;
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(6, 38, 70, 0.05);
}

.ct-wizard-step-head + .row .uploadimg h5 {
    color: #062646;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

#audio-upload-container .audio-file-row,
#video-url-container .input-group {
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .ct-media-upload-zone {
        padding: 1.5rem 1rem;
    }
}

.ct-reg-locked {
    background-color: #f1f5f6 !important;
    cursor: not-allowed;
    color: #495057;
}

.ct-reg-locked-note {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Site search */
.ct-site-search {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.ct-site-search input {
    border-radius: 999px;
    border: 1px solid #c5d0d6;
    padding: 0.45rem 1rem 0.45rem 2.25rem;
    font-size: 0.85rem;
    width: 100%;
}

.ct-site-search .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1c7887;
    pointer-events: none;
}

.ct-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 10070;
    max-height: 360px;
    overflow-y: auto;
    display: none;
}

.ct-search-dropdown.open {
    display: block;
}

.ct-search-item {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.ct-search-item:hover {
    background: #f0f9fa;
}

.ct-search-item strong {
    display: block;
    font-size: 0.9rem;
    color: #062646;
}

.ct-search-item small {
    color: #6c757d;
}

.ct-search-choices {
    padding: 0.5rem 1rem 0.75rem;
}

.ct-search-choices a {
    display: block;
    font-size: 0.82rem;
    padding: 0.35rem 0;
    color: #1c7887;
    text-decoration: none;
}

.ct-search-choices a:hover {
    text-decoration: underline;
}

.ct-search-focusable:focus {
    outline: 2px solid #1c7887;
    outline-offset: -2px;
    background: #f0f9fa;
    border-radius: 6px;
}

/* Public bag page */
.ct-bag-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(160deg, #062646 0%, #1c7887 100%);
    color: #fff;
}

.ct-bag-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

.ct-bag-public {
    --ct-navy: #062646;
    --ct-teal: #1c7887;
    --ct-ink: #0f2a3d;
    --ct-muted: #5a7384;
    background: #f3f7f8;
}

.ct-bag-public__hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.ct-bag-public__hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 15% 20%, rgba(28, 120, 135, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6, 38, 70, 0.9) 0%, transparent 50%),
        linear-gradient(145deg, #062646 0%, #0a4a5c 48%, #1c7887 100%);
}

.ct-bag-public__hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.ct-bag-public__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: ct-bag-fade-up 0.55s ease both;
}

.ct-bag-public__brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1rem;
}

.ct-bag-public__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.ct-bag-public__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.ct-bag-public__lead {
    margin: 0 0 1.25rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
}

.ct-bag-public__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.ct-bag-public__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.ct-bag-public__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ct-bag-public__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ct-bag-public__btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.ct-bag-public__btn--primary {
    background: #fff;
    color: var(--ct-navy);
    border: 1px solid #fff;
}

.ct-bag-public__btn--primary:hover {
    background: #e8f4f6;
    color: var(--ct-teal);
}

.ct-bag-public__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.ct-bag-public__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.ct-bag-public__body {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.ct-bag-public__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #d5e3e8;
    animation: ct-bag-fade-up 0.55s ease 0.08s both;
}

.ct-bag-public__section-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ct-ink);
}

.ct-bag-public__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: #e4f2f4;
    color: var(--ct-teal);
    font-size: 0.85rem;
    font-weight: 700;
}

.ct-bag-public__grid .ct-bag-public__card {
    animation: ct-bag-fade-up 0.5s ease both;
}

.ct-bag-public__grid .ct-bag-public__card:nth-child(1) { animation-delay: 0.1s; }
.ct-bag-public__grid .ct-bag-public__card:nth-child(2) { animation-delay: 0.15s; }
.ct-bag-public__grid .ct-bag-public__card:nth-child(3) { animation-delay: 0.2s; }
.ct-bag-public__grid .ct-bag-public__card:nth-child(4) { animation-delay: 0.25s; }
.ct-bag-public__grid .ct-bag-public__card:nth-child(5) { animation-delay: 0.3s; }
.ct-bag-public__grid .ct-bag-public__card:nth-child(6) { animation-delay: 0.35s; }
.ct-bag-public__grid .ct-bag-public__card:nth-child(7) { animation-delay: 0.4s; }
.ct-bag-public__grid .ct-bag-public__card:nth-child(8) { animation-delay: 0.45s; }

.ct-bag-public__grid .castbox {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ct-bag-public__grid .castbox:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(6, 38, 70, 0.14);
}

.ct-bag-public__empty {
    text-align: center;
    max-width: 420px;
    margin: 2rem auto 0;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px solid #dcebee;
    border-radius: 14px;
}

.ct-bag-public__empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4f2f4;
    color: var(--ct-teal);
    font-size: 1.25rem;
}

.ct-bag-public__empty h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    color: var(--ct-ink);
}

.ct-bag-public__empty p {
    margin: 0 0 1.25rem;
    color: var(--ct-muted);
    font-size: 0.95rem;
}

@keyframes ct-bag-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .ct-bag-public__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-bag-public__btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ct-site-search {
        max-width: 100%;
        margin: 0.75rem 0;
    }
}

/* Profile form: numbered sections (Registration Info / Additional Info / Nationality) */
.ct-form-section-head {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #f4fafb 0%, #eef4f8 100%);
    border: 1px solid #dcebee;
    border-left: 4px solid #1c7887;
    border-radius: 12px;
}

.ct-form-section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1c7887;
    background: rgba(28, 120, 135, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.4rem;
}

.ct-form-section-head h4 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #062646;
}

.ct-form-section-head p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Talent profile: category badges */
.ct-profile-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
}

.ct-profile-categories-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #062646;
    margin-right: 0.15rem;
}

.ct-cat-badge {
    display: inline-block;
    background: #1c7887;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.ct-subcat-badge {
    display: inline-block;
    background: rgba(28, 120, 135, 0.12);
    color: #1c7887;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 120, 135, 0.25);
    white-space: nowrap;
}

/* Nationality rows */
.ct-nationality-row .d-flex {
    gap: 0.5rem;
}

.ct-nationality-row .ct-nationality-select {
    flex: 1 1 auto;
}

.ct-remove-nationality {
    flex: 0 0 auto;
    height: 40px;
    width: 40px;
    line-height: 1;
    font-size: 1.1rem;
    border-radius: 8px;
}

#ctAddNationalityBtn {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .ct-form-section-head {
        padding: 0.85rem 1rem;
    }
}

/* Step 4 — modern media upload wizard (aligned with job-posting wizard) */
.ct-media-wizard {
    background: #fff;
    border: 1px solid #dde7ec;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(6, 38, 70, 0.06);
    margin-bottom: 0.5rem;
}
.ct-media-wizard-hero {
    padding: 1.35rem 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(28, 120, 135, 0.12) 0%, rgba(6, 38, 70, 0.04) 55%, #fff 100%);
    border-bottom: 1px solid #e6eef1;
}
.ct-media-wizard-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1c7887;
    margin-bottom: 0.35rem;
}
.ct-media-wizard-hero h3 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #062646;
}
.ct-media-wizard-hero p {
    margin: 0 0 0.75rem;
    color: #667788;
    font-size: 0.92rem;
}
.ct-media-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem 1.25rem 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #f4fafb;
    border: 1px solid #d7e8ec;
    color: #35515a;
    font-size: 0.88rem;
    line-height: 1.4;
}
.ct-media-tip i {
    color: #1c7887;
    margin-top: 0.15rem;
}
.ct-media-tip--featured {
    background: #fff8e8;
    border-color: #f0dfb0;
    color: #6a5416;
}
.ct-media-tip--featured i {
    color: #c9a227;
}
.ct-media-grid {
    margin: 0;
    padding: 1rem 1.25rem 1.35rem;
}
.ct-media-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.15rem;
    background: linear-gradient(160deg, #f7fbfc 0%, #fff 55%);
    border: 1px solid #d7e6ea;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(6, 38, 70, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    overflow: hidden;
}
.ct-media-card:hover {
    border-color: #b7d2d9;
    box-shadow: 0 12px 28px rgba(6, 38, 70, 0.08);
}
.ct-media-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.ct-media-card__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: #062646;
    color: #fff;
}
.ct-media-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 120, 135, 0.12);
    color: #1c7887;
    font-size: 1.15rem;
}
.ct-media-card--profile .ct-media-card__icon { background: rgba(216, 31, 38, 0.1); color: #d81f26; }
.ct-media-card--portfolio .ct-media-card__icon { background: rgba(28, 120, 135, 0.12); color: #1c7887; }
.ct-media-card--audio .ct-media-card__icon { background: rgba(232, 175, 85, 0.18); color: #b37d1f; }
.ct-media-card--video .ct-media-card__icon { background: rgba(6, 38, 70, 0.1); color: #062646; }
.ct-media-card h5 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #062646;
}
.ct-media-card > p {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    color: #6c7a84;
    line-height: 1.4;
}
.ct-media-card__preview {
    text-align: center;
}
.ct-media-card__preview img {
    max-height: 160px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(6, 38, 70, 0.12);
}
.ct-media-drop {
    border: 1.5px dashed #9ec4cd;
    border-radius: 14px;
    background: rgba(28, 120, 135, 0.04);
    min-height: 130px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin-top: auto;
}
.ct-media-drop:hover,
.ct-media-drop.dz-drag-hover {
    border-color: #1c7887;
    background: rgba(28, 120, 135, 0.08);
}
.ct-media-drop--portfolio,
#portfolioDropzone.ct-media-drop--portfolio.dropzone {
    min-height: 160px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 280px;
    /* Kill Dropzone's default float layout that spills into the next card */
    float: none !important;
}

/* Dropzone thumbnails inside portfolio card */
.ct-media-drop--portfolio .dz-preview,
#portfolioDropzone .dz-preview {
    float: none !important;
    display: block !important;
    flex: 0 0 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d7e6ea !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #fff;
    vertical-align: top;
}
.ct-media-drop--portfolio .dz-image,
.ct-media-drop--portfolio .dz-image img,
#portfolioDropzone .dz-image,
#portfolioDropzone .dz-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}
.ct-media-drop--portfolio .dz-details,
#portfolioDropzone .dz-details {
    display: none !important;
}
.ct-media-drop--portfolio .dz-remove,
#portfolioDropzone .dz-remove {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5 !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: #d81f26 !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 0 !important;
    padding: 0 !important;
}
.ct-media-drop--portfolio .dz-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(0,0,0,0.25);
}
.ct-media-drop--portfolio .dz-upload {
    display: block;
    height: 100%;
    background: #1c7887;
}
.ct-media-drop--portfolio.dz-started .ct-media-drop__placeholder {
    display: none !important;
}
.ct-media-drop--portfolio .ct-media-drop__placeholder {
    flex: 1 1 100%;
}
.ct-media-drop__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    width: 100%;
    margin: 0;
}
.ct-media-drop__label i {
    font-size: 1.6rem;
    color: #1c7887;
    margin-bottom: 0.25rem;
}
.ct-media-drop__label strong {
    color: #062646;
    font-size: 0.95rem;
}
.ct-media-drop__label span {
    color: #7a8a94;
    font-size: 0.8rem;
}
.ct-media-filename {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: #1c7887;
    font-weight: 600;
    word-break: break-all;
    min-height: 1.1em;
}
.ct-media-file-list {
    width: 100%;
}
.ct-media-file-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e1e8eb;
    border-radius: 10px;
    margin-bottom: 0.45rem;
    background: #fff;
    font-size: 0.85rem;
}
.ct-media-file-row i {
    color: #1c7887;
    flex-shrink: 0;
}
.ct-media-file-row span {
    flex: 1;
    min-width: 0;
}
.ct-media-audio-row {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}
.ct-media-audio-row .form-control {
    border-radius: 10px;
    min-height: 44px;
}
.ct-media-audio-row .btn,
.ct-media-video-row .btn {
    border-radius: 10px;
    min-width: 44px;
}
.ct-media-video-row .input-group-text {
    background: #f4fafb;
    border-color: #d5e0e6;
    color: #1c7887;
    border-radius: 10px 0 0 10px;
}
.ct-media-video-row .form-control {
    border-color: #d5e0e6;
}
.ct-media-video-row .btn {
    border-radius: 0 10px 10px 0;
}

.ct-btn-outline {
    border: 1px solid #1c7887;
    color: #1c7887;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
}
.ct-btn-outline:hover {
    background: #1c7887;
    color: #fff;
}

@media (max-width: 575.98px) {
    .ct-media-wizard-hero,
    .ct-media-grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .ct-media-tip {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Registration phone fields: keep room for dial code UI */
.ct-register-card .iti:not(.iti--container) {
    width: 100%;
}
.ct-register-card .iti:not(.iti--container) .iti__selected-flag {
    z-index: 3;
    min-width: 52px;
    min-height: 44px;
}

/* Client job posting wizard */
.ct-job-wizard {
    background: #fff;
    border: 1px solid #dde7ec;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(6, 38, 70, 0.06);
}
.ct-job-wizard-hero {
    padding: 1.35rem 1.5rem 1.1rem;
    background:
        linear-gradient(135deg, rgba(28, 120, 135, 0.12) 0%, rgba(6, 38, 70, 0.04) 55%, #fff 100%);
    border-bottom: 1px solid #e6eef1;
}
.ct-job-wizard-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1c7887;
    margin-bottom: 0.35rem;
}
.ct-job-wizard-hero h3 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #062646;
}
.ct-job-wizard-hero p {
    margin: 0;
    color: #667788;
    font-size: 0.92rem;
}
.ct-job-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 0;
    padding: 1rem 1.25rem 0.75rem;
}
.ct-job-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    opacity: 0.55;
}
.ct-job-step.is-active,
.ct-job-step.is-done {
    opacity: 1;
}
.ct-job-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: #e8eef1;
    color: #062646;
    border: 2px solid transparent;
}
.ct-job-step.is-active .ct-job-step-num {
    background: #1c7887;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(28, 120, 135, 0.18);
}
.ct-job-step.is-done .ct-job-step-num {
    background: #062646;
    color: #fff;
}
.ct-job-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #445566;
}
.ct-job-progress {
    height: 6px;
    background: #e8eef1;
    margin: 0 1.25rem 0.5rem;
    border-radius: 999px;
    overflow: hidden;
}
.ct-job-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1c7887, #062646);
    border-radius: 999px;
    transition: width 0.25s ease;
}
.ct-job-post-form {
    padding: 0.75rem 1.35rem 1.35rem;
}
.ct-job-panel-head {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef3f5;
}
.ct-job-panel-head h5 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #062646;
}
.ct-job-panel-head p {
    margin: 0;
    font-size: 0.88rem;
    color: #6c7a86;
}
.ct-job-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #eef3f5;
}
.ct-job-btn-next,
.ct-job-btn-submit {
    background: #1c7887;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
}
.ct-job-btn-next:hover,
.ct-job-btn-submit:hover {
    background: #166473;
    color: #fff;
}
.ct-job-btn-back {
    background: #fff;
    color: #062646;
    border: 1px solid #cfd9df;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
}
.ct-job-btn-back:hover {
    background: #f4f7f8;
    color: #062646;
}
.ct-job-wizard .form-control,
.ct-job-wizard .form-select {
    border-radius: 10px;
    border-color: #d5e0e6;
    min-height: 44px;
}
.ct-job-wizard .form-control:focus,
.ct-job-wizard .form-select:focus {
    border-color: #1c7887;
    box-shadow: 0 0 0 3px rgba(28, 120, 135, 0.15);
}
@media (max-width: 575.98px) {
    .ct-job-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .ct-job-wizard-hero,
    .ct-job-post-form {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
