.launch-form {
    width: 100%;
    margin: 0 auto;
}

.launch-form__layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.launch-form__sidebar {
    position: sticky;
    top: 120px;
}

.launch-form__main {
    width: 100%;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #1a1a1a);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #1a1a1a);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color, #0077cc);
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.launch-links-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.launch-links-primary,
.launch-links-x {
    width: 60%;
    max-width: 640px;
}

.launch-links-label {
    display: block;
}

.launch-links-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.launch-links-inputWrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
}

.launch-links-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: black;
}

.launch-links-additional {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.launch-links-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.launch-links-remove {
    border: none;
    background: transparent;
    color: #6b7280;
    height: 2.5rem;
    padding: 0 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.launch-links-remove:hover {
    color: #111827;
}

.launch-links-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.launch-links-add {
    background: transparent;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.launch-links-add:hover {
    text-decoration: underline;
}

.launch-links-hint {
    font-size: 0.9rem;
    color: #6b7280;
}

.launch-links-open-source {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.link-checkbox {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-checkbox__label {
    font-size: 0.9rem;
    color: #6b7280;
}

@media (max-width: 640px) {

    .launch-links-primary,
    .launch-links-x {
        width: 100%;
    }

    .launch-links-section {
        gap: 1.5rem;
    }
}

.launch-form .leadingTextWrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.launch-form .leadingText {
    padding-left: 0.25rem;
    color: var(--muted-soft)
}

.launch-form .styles-module__rcUG6W__checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    background: #fff;
}

.launch-form .styles-module__rcUG6W__checkbox.checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #2563eb;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.launch-form .link-checkbox {
    position: relative;
    cursor: pointer;
}

.launch-form .link-checkbox__input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

/* Rich Text Editor */
.rich-text-editor-wrapper {
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    background: var(--bg-primary, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rich-text-editor-wrapper:focus-within {
    border-color: var(--primary-color, #0077cc);
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

.rich-text-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    background: var(--bg-secondary, #f8f9fa);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    flex-wrap: wrap;
}

.rich-text-toolbar button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary, #1a1a1a);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.rich-text-toolbar button:hover {
    background: var(--bg-primary, #fff);
    border-color: var(--border-color, #ddd);
    color: var(--primary-color, #0077cc);
}

.rich-text-toolbar button:active {
    background: var(--bg-secondary, #f0f0f0);
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color, #ddd);
    margin: 0 0.25rem;
}

.rich-text-editor {
    min-height: 200px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary, #1a1a1a);
    outline: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.rich-text-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted, #999);
    pointer-events: none;
}

.rich-text-editor:focus {
    outline: none;
}

.rich-text-editor p {
    margin: 0.5rem 0;
}

.rich-text-editor p:first-child {
    margin-top: 0;
}

.rich-text-editor p:last-child {
    margin-bottom: 0;
}

.rich-text-editor ul,
.rich-text-editor ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.rich-text-editor a {
    color: var(--primary-color, #0077cc);
    text-decoration: underline;
}

.rich-text-editor h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.rich-text-editor h2:first-child {
    margin-top: 0;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted, #666);
}

.error-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.submit-status {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.submit-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.submit-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-status .text-link {
    margin-top: 0.5rem;
    display: inline-block;
    color: inherit;
    text-decoration: underline;
}

.auth-required {
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
}

.auth-required .muted {
    font-size: 1.125rem;
    color: var(--text-muted, #666);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 20px;
    width: 2px;
    background: var(--border-color, #e5e5e5);
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary, #f8f9fa);
    border: 2px solid var(--border-color, #e5e5e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted, #666);
    margin-bottom: 0;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: var(--primary-color, #0077cc);
    border-color: var(--primary-color, #0077cc);
    color: white;
}

.step-item.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-muted, #666);
    text-align: left;
}

.step-item.active .step-label {
    color: var(--primary-color, #0077cc);
    font-weight: 500;
}

.step-item.completed .step-label {
    color: #28a745;
}

/* Form Wizard */
.form-wizard {
    min-height: 400px;
    padding: 2rem 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Review Section */
.review-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.review-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item strong {
    display: inline-block;
    min-width: 150px;
    color: var(--text-primary, #1a1a1a);
}

.submit-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-status h3 {
    margin-bottom: 0.5rem;
}

.submit-status p {
    margin-bottom: 1rem;
}

.submit-status.info {
    background: #e9f4ff;
    color: #084c8a;
    border: 1px solid #c5e1ff;
}

.review-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.review-gallery img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e5e5e5);
}

.dual-input {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.dual-input--stacked {
    flex-direction: column;
    align-items: flex-start;
}

.gallery-url-adder {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.gallery-url-adder input {
    flex: 1;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.gallery-card {
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary, #fff);
}

.gallery-card--cover {
    border-color: var(--primary-color, #0077cc);
}

.gallery-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.gallery-card__actions {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.gallery-card__label {
    font-size: 0.875rem;
    color: var(--text-muted, #666);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    /* Important for <a> tags */
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    color: white;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-default {
    color: #212529;
    /* Dark text */
    background-color: #f8f9fa;
    /* Light gray background */
    border-color: #dee2e6;
}

.btn-default:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.btn-outline {
    color: #0d6efd;
    background-color: transparent;
    border-color: #0d6efd;
}

.btn-outline:hover:not(:disabled) {
    color: white;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-text {
    color: var(--primary);
    background-color: transparent;
    border-color: transparent;
    padding: 4px;
    border-radius: 12px;
}

.btn-text:hover:not(:disabled) {
    background-color: rgba(13, 110, 253, 0.1);
    /* Slight hover background */
    color: var(--primary);
}

.pending-banner {
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary, #f8f9fa);
}

.pending-banner__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pending-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.pending-list__item:first-child {
    border-top: none;
}

.pending-name {
    font-weight: 600;
}

.pill--ghost {
    background: transparent;
    border: 1px dashed var(--border-color, #ddd);
    color: var(--text-primary, #1a1a1a);
}

.small {
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .launch-form__layout {
        grid-template-columns: 1fr;
    }

    .launch-form__sidebar {
        position: static;
        width: 100%;
    }

    .step-indicator {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        margin-bottom: 2rem;
    }

    .step-indicator::before {
        top: 20px;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 2px;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        flex: 1;
    }

    .step-number {
        margin-bottom: 0.5rem;
    }

    .step-label {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .launch-form {
        padding: 0 0.5rem;
    }

    .launch-form__layout {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .step-indicator {
        padding: 0;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .review-item strong {
        display: block;
        margin-bottom: 0.25rem;
    }

    .submit-actions {
        flex-direction: column;
    }

    .submit-actions a,
    .submit-actions button {
        width: 100%;
    }

    .gallery-url-adder {
        flex-direction: column;
    }
}

.pricing-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.pricing-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group--half {
    flex: 1;
    min-width: 200px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pricing-plan-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pricing-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.plan-name-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    padding: 0.25rem;
}

.plan-name-input:focus {
    outline: none;
    background: var(--bg-primary, #fff);
    border-radius: 4px;
}

.plan-remove-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted, #666);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.plan-remove-btn:hover {
    color: #dc3545;
}

.pricing-plan-body {
    padding: 1rem;
}

.plan-price-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.plan-price-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-size: 1rem;
    min-width: 150px;
}

.plan-period-select {
    width: 120px;
    padding: 0.5rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-primary, #fff);
}

.plan-popular-label {
    margin-bottom: 0.75rem;
}

.plan-features {
    margin-top: 0.5rem;
}

.plan-features label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-muted, #666);
}

.plan-features-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

#add-pricing-plan {
    margin-top: 0.5rem;
}

/* Quill Editor Customization */
#description-editor,
#first-comment-editor {
    min-height: 150px;
    font-family: inherit;
}

#description-editor {
    min-height: 200px;
}

#description-editor .ql-editor,
#first-comment-editor .ql-editor {
    min-height: 120px;
    font-size: 1rem;
    line-height: 1.6;
}

#description-editor .ql-editor {
    min-height: 180px;
}

#description-editor .ql-editor.ql-blank::before,
#first-comment-editor .ql-editor.ql-blank::before {
    font-style: normal;
    color: var(--muted-soft, #999);
}

.ql-container.ql-snow {
    border: 1px solid var(--border-color, #ddd);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.ql-toolbar.ql-snow {
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px 6px 0 0;
    background: var(--bg-secondary, #f8f9fa);
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group--half {
        min-width: 100%;
    }
    
    .plan-price-row {
        flex-direction: column;
    }
    
    .plan-period-select {
        width: 100%;
    }
}