/* ============================================
   PROMOTE TASK PAGE - sweet-rebuild
   Responsive, theme variables, same as other pages
   ============================================ */

/* Back Link */
.promote-back-wrap {
    margin-bottom: 1rem;
}

.promote-back-wrap .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: var(--font-size-small);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.promote-back-wrap .back-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-purple);
    transform: translateX(-4px);
}

.promote-back-wrap .back-link i {
    font-size: var(--icon-size-xs);
    color: var(--primary-purple);
}

/* Page Header */
.promote-page-header {
    margin-top: 3rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.promote-page-header .page-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promote-page-header .page-title i {
    font-size: var(--icon-size-lg);
    color: var(--primary-purple);
}

.promote-page-header .page-subtitle {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}

.promote-page-header .page-subtitle strong {
    color: var(--primary-purple);
    font-weight: 700;
}

/* Form Card */
.promote-form-card {
    margin-bottom: 2rem;
    padding: 1.75rem 2rem;
}

.promote-form-card .card-header {
    margin-bottom: 1.5rem;
}

.promote-form-card .card-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.375rem;
}

.promote-form-card .card-title i {
    font-size: var(--icon-size-md);
    color: var(--primary-purple);
}

.card-desc {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin: 0;
}

/* Form Layout */
.promote-form .form-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0;
}

.promote-form .form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.promote-form .form-group {
    flex: 1;
    margin-bottom: 1.25rem;
}

.promote-form .form-group-full {
    width: 100%;
}

.input-group-inline {
    display: flex;
    gap: 0.5rem;
}

.input-group-inline .form-control {
    flex: 1;
}

.form-control-unit {
    max-width: 120px;
    flex-shrink: 0;
}

/* Requirements & Instructions Section */
.promote-section-divider {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.promote-section-heading {
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promote-section-heading i {
    font-size: var(--icon-size-md);
    color: var(--primary-purple);
}

.promote-section-desc {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin: 0.375rem 0 0;
}

/* Promotion Type Options */
.form-row-full {
    width: 100%;
}

.promotion-types-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
}

.promotion-type-option {
    margin: 0;
    cursor: pointer;
}

.promotion-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.promotion-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.25s var(--ease-smooth);
    text-align: center;
    min-height: 100%;
}

.promotion-type-option:hover .promotion-type-card {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.06);
}

.promotion-type-option input:checked + .promotion-type-card {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 0 0 1px var(--primary-purple);
}

.promotion-type-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-purple);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.promotion-type-option input:checked + .promotion-type-card .promotion-type-icon {
    background: var(--primary-purple);
    color: #fff;
}

.promotion-type-name {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.promotion-type-price {
    font-weight: 700;
    font-size: var(--font-size-small);
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.promotion-type-features {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.promotion-type-features li {
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.15rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.3;
}

.promotion-type-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-size: 0.6rem;
}

.promotion-type-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Sub Total Section */
.promote-subtotal-section {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.subtotal-card {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.subtotal-heading {
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subtotal-heading i {
    font-size: var(--icon-size-md);
    color: var(--primary-purple);
}

.subtotal-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.subtotal-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.subtotal-label {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}

.subtotal-value {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--text-primary);
}

.subtotal-fee {
    color: var(--text-muted);
}

.subtotal-row-total {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-bottom: none !important;
    border-top: 2px solid var(--primary-purple);
}

.subtotal-row-total .subtotal-label {
    font-weight: 700;
    color: var(--text-primary);
}

.subtotal-total {
    font-size: var(--font-size-h4);
    font-weight: 800;
    color: var(--color-success);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn-secondary {
    flex-shrink: 0;
}

.form-actions .btn-primary {
    flex: 1;
    max-width: 240px;
}

/* Info Section */
.promote-info-section {
    margin-bottom: 2rem;
}

.promote-info-card {
    padding: 1.5rem 1.75rem;
}

.promote-info-title {
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promote-info-title i {
    font-size: var(--icon-size-md);
    color: var(--primary-purple);
}

.promote-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promote-info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.promote-info-list li:last-child {
    margin-bottom: 0;
}

.promote-info-list li i {
    color: var(--color-success);
    font-size: var(--icon-size-sm);
    flex-shrink: 0;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .promote-form-card {
        padding: 1.5rem 1.5rem;
    }
    
    .promote-form .form-row-two {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .promote-back-wrap {
        margin-top: 0.5rem;
        margin-bottom: 0.875rem;
    }
    
    .promote-back-wrap .back-link {
        padding: 0.625rem 1rem;
        font-size: var(--font-size-small);
    }
    
    .promote-page-header {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        padding: 1.25rem 1.5rem;
        border-radius: 14px;
    }
    
    .promote-page-header .page-title {
        font-size: var(--font-size-h2);
    }
    
    .promote-page-header .page-subtitle {
        font-size: var(--font-size-small);
    }
    
    .promote-form-card {
        padding: 1.25rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .promote-form-card .card-title {
        font-size: var(--font-size-h3);
    }
    
    .card-desc {
        font-size: var(--font-size-small);
    }
    
    .promote-form .form-row-two {
        grid-template-columns: 1fr;
    }
    
    .promote-form .form-group {
        margin-bottom: 1rem;
    }
    
    .promote-form .form-group-task-id {
        margin-bottom: 0;
    }
    
    .input-group-inline {
        flex-wrap: wrap;
    }
    
    .form-control-unit {
        max-width: 100%;
        min-width: 100px;
    }
    
    .promote-subtotal-section {
        margin-top: 1.25rem;
    }
    
    .subtotal-card {
        padding: 1rem 1.25rem;
    }
    
    .subtotal-heading {
        font-size: var(--font-size-h4);
        margin-bottom: 0.75rem;
    }
    
    .subtotal-label,
    .subtotal-value {
        font-size: var(--font-size-small);
    }
    
    .subtotal-total {
        font-size: var(--font-size-h3);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }
    
    .form-actions .btn-primary {
        max-width: none;
    }
    
    .promote-info-card {
        padding: 1.25rem 1.25rem;
    }
    
    .promote-info-title {
        font-size: var(--font-size-h4);
    }
    
    .promote-info-list li {
        font-size: var(--font-size-small);
    }
}

@media (max-width: 480px) {
    .promote-back-wrap {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .promote-back-wrap .back-link {
        padding: 0.5rem 0.875rem;
        font-size: var(--font-size-tiny);
    }
    
    .promote-back-wrap .back-link span {
        font-size: var(--font-size-tiny);
    }
    
    .promote-page-header {
        margin-top: 2rem;
        margin-bottom: 1.25rem;
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .promote-page-header .page-title {
        font-size: var(--font-size-h3);
    }
    
    .promote-page-header .page-title i {
        font-size: var(--icon-size-md);
    }
    
    .promote-page-header .page-subtitle {
        font-size: var(--font-size-tiny);
    }
    
    .promote-form-card {
        padding: 1rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    .promote-form-card .card-header {
        margin-bottom: 1.25rem;
    }
    
    .promote-form-card .card-title {
        font-size: var(--font-size-h4);
    }
    
    .card-desc {
        font-size: var(--font-size-tiny);
    }
    
    .promote-form .form-group {
        margin-bottom: 0.875rem;
    }
    
    .promote-form .form-group-task-id {
        margin-bottom: 0;
    }
    
    .promote-subtotal-section {
        margin-top: 1rem;
    }
    
    .subtotal-card {
        padding: 0.875rem 1rem;
    }
    
    .subtotal-heading {
        font-size: var(--font-size-body);
        margin-bottom: 0.625rem;
    }
    
    .subtotal-heading i {
        font-size: var(--icon-size-sm);
    }
    
    .subtotal-label,
    .subtotal-value {
        font-size: var(--font-size-tiny);
    }
    
    .subtotal-total {
        font-size: var(--font-size-h4);
    }
    
    .promote-form .form-label {
        font-size: var(--font-size-tiny);
    }
    
    .promote-form .form-control {
        padding: 0.625rem 0.875rem;
        font-size: var(--font-size-small);
    }
    
    .promote-form .form-help {
        font-size: 0.625rem;
    }
    
    .form-actions .btn {
        font-size: var(--font-size-small);
        padding: 0.625rem 1rem;
    }
    
    .promote-info-card {
        padding: 1rem 1rem;
    }
    
    .promote-info-title {
        font-size: var(--font-size-body);
        margin-bottom: 0.75rem;
    }
    
    .promote-info-list li {
        font-size: var(--font-size-tiny);
        margin-bottom: 0.5rem;
    }
}
