/* ==========================================================================
 * Get Listed wizard styles (form + preview shell)
 * The preview itself is styled by listed.css (same classes as real listings).
 * ========================================================================== */

#gl {
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    background-color: #f7f8fa;
}

.gl-container {
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
}

#gl-step-preview .gl-container,
#gl-step-preview {
    max-width: 1280px;
}

/* Intro */
.gl-intro {
    text-align: center;
    margin-bottom: 2rem;
}
.gl-intro .cs-title {
    margin: 0.25rem 0 0.75rem;
}
.gl-intro .cs-text {
    max-width: 38rem;
    margin: 0 auto;
}

/* Search */
.gl-search {
    position: relative;
    background: #fff;
    border: 2px solid var(--primary, #1a4d8f);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.gl-search > label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--headerColor, #1a1a1a);
}
#gl-search-input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    box-sizing: border-box;
}
.gl-suggestions {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 30;
    background: #fff;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}
.gl-suggestion {
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eef0f3;
}
.gl-suggestion:last-child {
    border-bottom: 0;
}
.gl-suggestion:hover {
    background: #f1f5fb;
}
.gl-suggestion strong {
    display: block;
    font-size: 0.95rem;
}
.gl-suggestion span {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}
.gl-search-status {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--primary, #1a4d8f);
    min-height: 1.1rem;
}

/* Form */
.gl-form {
    background: #fff;
    border-radius: 12px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.gl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}
.gl-field {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--headerColor, #222);
    margin-bottom: 0.25rem;
    gap: 0.35rem;
}
.gl-field small {
    font-weight: 400;
    color: #6b7280;
}
.gl-field-full {
    grid-column: 1 / -1;
}
.gl-form input,
.gl-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 400;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}
.gl-form input:focus,
.gl-form textarea:focus,
#gl-search-input:focus {
    outline: none;
    border-color: var(--primary, #1a4d8f);
    box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.15);
}

.gl-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.2rem;
    margin: 1.5rem 0;
}
.gl-fieldset legend {
    font-weight: 700;
    padding: 0 0.5rem;
    color: var(--headerColor, #222);
}
.gl-fieldset legend small {
    font-weight: 400;
    color: #6b7280;
}

.gl-repeat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.gl-add-btn {
    margin-top: 0.6rem;
    background: transparent;
    border: 1px dashed var(--primary, #1a4d8f);
    color: var(--primary, #1a4d8f);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}
.gl-add-btn:hover {
    background: rgba(26, 77, 143, 0.06);
}

.gl-hours-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.gl-hours-day {
    font-weight: 700;
    font-size: 0.85rem;
    color: #374151;
}

#gl-socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}

.gl-generate {
    margin-top: 1.5rem;
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Preview step */
.gl-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.gl-preview-note {
    color: #6b7280;
    font-size: 0.9rem;
}
.gl-btn-secondary {
    background: #fff;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--headerColor, #222);
}
.gl-btn-secondary:hover {
    background: #f1f5fb;
}
#gl-preview {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.gl-confirm-bar {
    text-align: center;
    background: #fff;
    border: 2px solid var(--primary, #1a4d8f);
    border-radius: 12px;
    padding: 1.5rem;
}
.gl-confirm-bar p {
    margin: 0 0 1rem;
    font-weight: 600;
}
#gl-confirm {
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Solid CTA buttons throughout the Get Listed / next-steps flow keep white text */
#gl .cs-button-solid,
#gl .cs-button-solid:hover,
#gl .cs-button-solid:focus,
#gl .cs-button-solid:visited,
.gl-generate,
#gl-confirm {
    color: #fff !important;
}

@media (max-width: 600px) {
    .gl-grid,
    #gl-socials {
        grid-template-columns: 1fr;
    }
}
