.postwizard {
    padding: 2rem;
    margin-top: 120px;
}

.wizard-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
}

/* Progress Bar */
.wizard-progress {
    padding: 2rem 3rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 252, 252, 0.95) 100%);
    border-bottom: 1px solid var(--bg-color);
}

.progress-bar {
    height: 4px;
    background: var(--bg-color);
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step-circle::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step-item.active .step-circle::after {
    border-color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-dark-low);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    color: var(--text-dark);
}

.step-item.active .step-label {
    color: var(--text-dark);
}

.step-item.completed .step-circle {
    background: var(--primary-color-dark);
    color: var(--text-dark);
}

/* Wizard Content */
.wizard-content {
    padding: 2rem;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.step-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--text-dark-low);
    font-size: 0.9rem;
}

.step-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: calc(100% - 2rem);
    padding: 1rem;
    border: 1px solid var(--bg-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group textarea {
    width: calc(100% - 2rem);
    min-height: 80px;
    max-height: 120px;
    padding: 1rem;
    border: 1px solid var(--bg-color);
    border-radius: 8px;
    font-size: 0.9rem;
    resize: none;
    transition: all 0.2s ease;
}

.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-low);
}

.character-count {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dark-low);
    text-align: right;
    transition: color 0.3s ease;
}

.character-count.warning {
    color: #ff9800;
}

.character-count.error {
    color: #f44336;
}

/* Custom Select */
.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--bg-color);
    border-radius: 8px;
    background: var(--card-bg);
    appearance: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.custom-select i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark-low);
    pointer-events: none;
    font-size: 0.8rem;
}

.custom-select select:disabled {
    background: var(--bg-color-low);
    cursor: not-allowed;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    position: relative;
}

.feature-item input[type="checkbox"] {
    display: none;
}

.feature-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--bg-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-item label i {
    font-size: 1.2rem;
    color: var(--text-dark-low);
}

.feature-item input[type="checkbox"]:checked + label {
    background: var(--primary-color-low);
    border-color: var(--primary-color);
}

.feature-item input[type="checkbox"]:checked + label i {
    color: var(--text-dark);
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem;
    background: var(--bg-color-low);
    border-radius: 12px;
}

.input-icon {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--bg-color);
    transition: all 0.2s ease;
}

.input-icon:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-low);
}

.input-icon input {
    width: 65%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: transparent;
}

.input-icon input#price {
    width: calc(100% - 3rem);
}

.input-icon input:focus {
    outline: none;
}

.input-icon .unit,
.input-icon .currency {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark-low);
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-color);
    border-radius: 4px;
}

.input-icon .currency {
    left: 1rem;
    background: transparent;
    padding: 0;
    width: max-content;
}

.input-icon .currency + input {
    padding-left: 2.5rem;
}

/* Photo Upload Area */
.photo-upload {
    margin-top: 1rem;
}

.upload-area {
    border: 2px dashed var(--primary-color-low);
    background: var(--bg-color-low);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-color-low);
}

.upload-area.dragover {
    background: var(--primary-color-low);
    border-color: var(--primary-color);
    transform: scale(0.99);
}

.upload-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-message p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.upload-message p span {
    color: var(--primary-color-dark);
    text-decoration: underline;
    cursor: pointer;
}

.upload-message small {
    font-size: 0.75rem;
    color: var(--text-dark-low);
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-5px);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-photo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

.preview-item:hover .remove-photo {
    opacity: 1;
    transform: scale(1);
}

.preview-item .remove-photo:hover {
    background: #ff4757;
    color: white;
}

/* Editor Styles */
#editor {
    border: 1px solid var(--bg-color);
    border-radius: 8px;
    min-height: 200px;
    margin-bottom: 1rem;
}

/* Action Buttons */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-color);
}

.wizard-actions button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--bg-color-dark);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--primary-color-dark);
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #388E3C;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wizard-progress {
        padding: 1.5rem;
    }
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    .step-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    .features-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .photo-preview {
        grid-template-columns: repeat(3, 1fr);
    }
    .wizard-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .wizard-actions button {
        width: 100%;
        justify-content: center;
    }

    .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 480px) {
    .photo-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    .wizard-step[data-step="4"] .form-group {
        padding: 1rem;
    }
}

.wizard-step[data-step="4"] .step-content {
    max-width: 800px;
}

.wizard-step[data-step="4"] .form-group {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ck-editor__editable,
.ck.ck-editor__editable {
    font-family: inherit !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--text-dark) !important;
    padding: 1.5rem !important;
    min-height: 300px !important;
}

.ck.ck-editor__main {
    border-radius: 0 0 8px 8px !important;
    max-height: 400px;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    border: 1px solid var(--bg-color);
    border-top: none;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.ck.ck-editor__main > .ck-editor__editable {
    background: var(--card-bg) !important;
}

.ck.ck-editor__main::-webkit-scrollbar {
    width: 8px;
}

.ck.ck-editor__main::-webkit-scrollbar-track {
    background: var(--bg-color-low);
}

.ck.ck-editor__main::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.ck.ck-toolbar {
    background: var(--bg-color-low) !important;
    border: 1px solid var(--bg-color) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 0.5rem !important;
    display: flex !important;
    gap: 0.3rem !important;
    flex-wrap: wrap !important;
}

.ck.ck-button {
    border-radius: 6px !important;
    padding: 0.4rem 0.6rem !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
}

.ck.ck-button:hover {
    background: var(--primary-color-low) !important;
}

.ck.ck-button.ck-on {
    background: var(--primary-color) !important;
    color: var(--text-dark) !important;
}

.ck-list__item .ck-button:hover:not(.ck-disabled) {
    background: var(--primary-color-low) !important;
}

.ck-list__item .ck-button.ck-on {
    background: var(--primary-color) !important;
    color: var(--text-dark) !important;
}

.ck-content blockquote {
    border-left: 4px solid var(--primary-color) !important;
    margin-left: 0 !important;
    padding-left: 1rem !important;
    font-style: italic !important;
    background: var(--bg-color-low) !important;
    border-radius: 0 4px 4px 0 !important;
}

.ck-content ul li::marker {
    color: var(--primary-color) !important;
    font-size: 1.2em !important;
}

.ck-content ol li::marker {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.ck-content ul,
.ck-content ol {
    padding-left: 2rem !important;
    margin: 0.5rem 0 !important;
}

.ck-content li {
    margin: 0.3rem 0 !important;
}

.ck-content ul li {
    position: relative !important;
    padding-left: 0.5rem !important;
    margin: 0.5rem 0 !important;
}

.ck-content ul li::before {
    content: '' !important;
    position: absolute !important;
    left: -1rem !important;
    top: 0.6rem !important;
    width: 6px !important;
    height: 6px !important;
    background-color: var(--primary-color) !important;
    border-radius: 50% !important;
}

.ck-content ol li {
    padding-left: 0.5rem !important;
    margin: 0.5rem 0 !important;
}

.ck-content ol li::marker {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
}

.ck-editor__editable.ck-editor__editable_inline.ck-blank::before {
    color: var(--text-dark-low) !important;
    font-style: normal !important;
    font-size: 0.9rem !important;
}

.ck-powered-by {
    display: none !important;
}

.ck-character-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-dark-low);
    padding: 0.5rem;
    border-top: 1px solid var(--bg-color);
    background: var(--bg-color-low);
}

.ck-character-count.warning {
    color: #ff9800;
}

.ck-character-count.error {
    color: #f44336;
}

.ck-content {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--text-dark) !important;
    padding: 1.5rem !important;
}

.ck-content strong {
    font-weight: 600 !important;
}

.ck-content em {
    font-style: italic !important;
    font-weight: normal !important;
    font-family: inherit !important;
}

.ck-content h2 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 1.5rem 0 1rem !important;
    color: var(--text-dark) !important;
}

.ck-content h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 1.2rem 0 0.8rem !important;
    color: var(--text-dark) !important;
}

.ck-content p {
    margin: 0.8rem 0 !important;
    line-height: 1.6 !important;
}

.ck-content ul {
    list-style: none !important;
    padding-left: 1.5rem !important;
    margin: 1rem 0 !important;
}

.ck-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin: 1rem 0 !important;
}

.ck-toolbar__items .ck-button .ck-button__label {
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
}

/* Terms Step Styles */
.terms-content {
    max-width: 700px !important;
}

.terms-group {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.terms-checkbox {
    position: relative;
}

.terms-checkbox input[type="checkbox"] {
    display: none;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.terms-checkbox label:hover {
    background: var(--bg-color-low);
}

.checkbox-icon {
    width: 22px;
    height: 22px;
    border: 2px solid var(--bg-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-icon::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--text-dark);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.terms-checkbox input:checked + label .checkbox-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.terms-checkbox input:checked + label .checkbox-icon::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.terms-link {
    color: var(--primary-color-dark);
    font-weight: 500;
    text-decoration: underline;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-link:hover {
    color: var(--text-dark);
}

.terms-summary {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(165deg, 
        rgba(255, 232, 0, 0.1) 0%,
        rgba(255, 232, 0, 0.05) 100%
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.summary-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon i {
    font-size: 2rem;
    color: var(--text-dark);
}

.summary-icon.pulse::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    animation: pulse-success 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.summary-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.summary-content p {
    font-size: 0.9rem;
    color: var(--text-dark-low);
    line-height: 1.6;
}

/* Terms Modal */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terms-modal.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    margin: auto;
    border-radius: 12px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.terms-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 150px);
    overflow-y: auto;
}

.modal-body h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-dark-low);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.modal-body ul li {
    font-size: 0.9rem;
    color: var(--text-dark-low);
    margin: 0.5rem 0;
    position: relative;
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}
