/* Outer Step Container */
.gpt-onboarding-step {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 24px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}

.gpt-onboarding-step:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Step Header */
.gpt-onboarding-step h2 {
    margin: 0;
    padding: 16px 20px;
    background: #f6f7f7;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.gpt-onboarding-step h2:after {
    content: "\25BC";
    /* Downward arrow */
    font-size: 13px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.gpt-onboarding-step.open h2:after {
    transform: rotate(-180deg);
}

/* Step Panel Content */
.gpt-panel {
    display: flex;
    gap: 1.5rem;
    padding: 20px;
    background: #fff;
    color: #2c3338;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.gpt-panel .panel-content {
    flex: 0 0 600px;
    max-width: 600px;
}

.gpt-panel .panel-image {
    flex: 1;
    min-width: 200px;
    max-width: 600px;
}

.gpt-panel .panel-image img {
    width: 100%;
    height: auto;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Stack on smaller screens */
@media (max-width: 900px) {
    .gpt-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .gpt-panel .panel-content,
    .gpt-panel .panel-image {
        max-width: 100%;
        flex: none;
    }

    .gpt-panel .panel-image {
        margin-top: 1rem;
    }
}


.gpt-panel p {
    margin-bottom: 1em;
}

.gpt-panel ul {
    padding-left: 20px;
    margin: 0 0 1em 0;
}

.gpt-panel li {
    list-style: square;
    margin-bottom: 0.5em;
}

/* Inputs */
.gpt-panel input[type="text"],
.gpt-panel textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0 16px;
    font-size: 13px;
    font-family: monospace;
    background-color: #fefefe;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-sizing: border-box;
}

.gpt-panel textarea {
    min-height: 140px;
    resize: vertical;
}

/* Buttons */
.gpt-panel .button-primary.next-step {
    margin-top: 10px;
}

/* Links */
.gpt-panel a {
    color: #007cba;
    text-decoration: none;
}

.gpt-panel a:hover {
    text-decoration: underline;
}

/* Panels that are hidden by default */
.gpt-panel[style*="display: none"] {
    display: none !important;
}

/* Final Step Message */
.gpt-onboarding-step[data-step="8"] .gpt-panel {
    background: #f0f6ff;
    border-top: 1px solid #d0e3f1;
}

.gpt-onboarding-step[data-step="8"] .gpt-panel p {
    font-size: 15px;
}

/* Scroll anchors */
.gpt-onboarding-step:target {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}