/* ==========================================================
   FORMS
========================================================== */

.png-field{

    display:flex;
    flex-direction:column;
    gap:8px;

}

.png-field label{

    font-size:13px;
    font-weight:600;
    color:#64748B;

}

/* ==========================================================
   INPUTS
========================================================== */

.png-field input,
.png-field select,
.png-field textarea{

    width:100%;

    border:1px solid #D9E1EC;

    border-radius:14px;

    background:#FFFFFF;

    padding:14px 16px;

    font-size:16px;

    color:#111827;

    transition:all .20s ease;

    appearance:none;

}

/* ==========================================================
   PLACEHOLDER
========================================================== */

.png-field input::placeholder,
.png-field textarea::placeholder{

    color:#94A3B8;

}

/* ==========================================================
   FOCUS
========================================================== */

.png-field input:focus,
.png-field select:focus,
.png-field textarea:focus{

    outline:none;

    border-color:#0E6544;

    box-shadow:
        0 0 0 4px rgba(14,101,68,.10);

}

/* ==========================================================
   TEXTAREA
========================================================== */

.png-field textarea{

    resize:vertical;

    min-height:170px;

    line-height:1.7;

}

/* ==========================================================
   GRID
========================================================== */

.png-grid{

    display:grid;

    grid-template-columns:
        repeat(3,minmax(260px,1fr));

    gap:28px;

}

.png-grid-5{

    grid-template-columns:
        repeat(5,minmax(0,1fr));

    gap:18px;

}

.png-grid-6{

    grid-template-columns:
        repeat(6,minmax(0,1fr));

    gap:16px;

}

.png-grid-2{

    grid-template-columns:
        repeat(2,minmax(260px,1fr));

}

/* ==========================================================
   CHIP GROUP
========================================================== */

.png-chip-group{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

/* ==========================================================
   CHIP
========================================================== */

.png-chip{

    position:relative;

}

.png-chip input{

    display:none;

}

.png-chip span{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 13px;

    border-radius:999px;

    border:1px solid #D9E1EC;

    background:white;

    color:#475569;

    font-size:12.5px;

    font-weight:600;

    cursor:pointer;

    transition:all .20s ease;

}

/* Hover */

.png-chip span:hover{

    border-color:#0E6544;

    color:#0E6544;

}

/* Active */

.png-chip input:checked + span{

    background:#0E6544;

    border-color:#0E6544;

    color:white;

}

.png-chip input:checked + span::before{

    content:"✓";

    margin-right:6px;

    font-weight:700;

}

/* ==========================================================
   SELECT ARROW
========================================================== */

.png-field select{

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4' stroke='%2364748B' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat:no-repeat;

    background-position:right 14px center;

    padding-right:42px;

}

/* ==========================================================
   CUSTOM INPUT (shown when a "Custom..." select option is chosen)
========================================================== */

.png-custom-input{

    display:none;
    margin-top:8px;

}

.png-custom-input.active{

    display:block;

}

.png-section{

    margin-bottom:42px;

}

.png-generate-section{

    position:sticky;

    bottom:0;

    margin:8px -32px -32px;

    padding:16px 32px;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(8px);

    -webkit-backdrop-filter:blur(8px);

    border-top:1px solid #EEF2F7;

    border-radius:0 0 20px 20px;

    box-shadow:0 -8px 24px rgba(15,23,42,.06);

    z-index:5;

}

.png-generate-section .png-section-title{

    display:none;

}

.png-section > .png-field + .png-field{

    margin-top:22px;

}

.png-create{

    counter-reset: png-section-counter;

}

.png-section-title{

    margin-bottom:22px;

    position:relative;

    padding-left:36px;

    counter-increment: png-section-counter;

}

.png-section-title::before{

    content:counter(png-section-counter);

    position:absolute;

    left:0;

    top:50%;

    transform:translateY(-50%);

    width:26px;

    height:26px;

    border-radius:50%;

    background:#0E6544;

    color:#fff;

    font-size:13px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

}

.png-chip-group{

    margin-top:14px;

    margin-bottom:30px;

}

/* ==========================================================
   FIELD VALIDATION ERROR
========================================================== */

.png-field-error{

    display:none;

    color:#DC2626;

    font-size:12.5px;

    margin-top:2px;

}

.png-field-error.active{

    display:block;

}

.png-field input.png-field-invalid{

    border-color:#DC2626 !important;

    background:#FEF2F2 !important;

}

.png-product-row{

    display:flex;

    gap:24px;

    align-items:stretch;

}

.png-product-row > .png-field{

    flex:1;

    min-width:0;

}

.png-image-upload-area{

    flex:1;

    display:flex;

    border:2px dashed #D9E1EC;

    border-radius:14px;

    background:#F8FAFC;

    cursor:pointer;

    transition:.2s;

    overflow:hidden;

}

.png-image-upload-area:hover{

    border-color:#0E6544;

    background:#F0F9F5;

}

.png-image-upload-area.dragover{

    border-color:#0E6544;

    background:#EEF7F3;

}

.png-image-empty-state{

    display:flex;

    flex-direction:row;

    align-items:center;

    text-align:left;

    padding:12px 16px;

    gap:12px;

    height:100%;

    box-sizing:border-box;

}

.png-image-upload-icon{

    font-size:20px;

    flex-shrink:0;

}

.png-image-upload-copy{

    display:flex;

    flex-direction:column;

    gap:2px;

    min-width:0;

}

.png-image-upload-text{

    font-size:13.5px;

    font-weight:600;

    color:#334155;

}

.png-image-upload-hint{

    font-size:11.5px;

    color:#94A3B8;

}

.png-image-preview-state{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:8px;

    height:100%;

    box-sizing:border-box;

}

.png-image-preview-state img{

    max-height:56px;

    max-width:100%;

    border-radius:8px;

    display:block;

}

.png-image-remove-btn{

    position:absolute;

    top:6px;

    right:6px;

    width:26px;

    height:26px;

    border:none;

    border-radius:50%;

    background:rgba(15,23,42,.65);

    color:#fff;

    font-size:12px;

    cursor:pointer;

    transition:.2s;

}

.png-image-remove-btn:hover{

    background:rgba(15,23,42,.85);

}

.png-image-error{

    color:#DC2626;

    font-size:12.5px;

    margin-top:6px;

    display:none;

}

.png-image-error.active{

    display:block;

}

/* ==========================================================
   LOW CREDITS BANNER
========================================================== */

.png-low-credits-banner{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:16px;

    flex-wrap:wrap;

    background:#FFFBEB;

    border:1px solid #FDE68A;

    border-radius:14px;

    padding:16px 20px;

    margin-bottom:28px;

    font-size:14px;

    color:#92400E;

}

.png-low-credits-banner-empty{

    background:#FEF2F2;

    border-color:#FEE2E2;

    color:#991B1B;

}

.png-low-credits-cta{

    background:#0E6544;

    color:#fff;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    padding:8px 18px;

    border-radius:9px;

    white-space:nowrap;

    transition:.2s;

}

.png-low-credits-cta:hover{

    background:#0A4E35;

}

/* ==========================================================
   RESEARCH TOGGLE
========================================================== */

.png-research-toggle{

    display:flex;

    align-items:center;

    gap:9px;

    font-size:13.5px;

    color:#516156;

    cursor:pointer;

    margin:14px 0 4px;

}

.png-research-toggle input{

    width:16px;

    height:16px;

    accent-color:#0E6544;

    cursor:pointer;

}

/* ==========================================================
   ONBOARDING CARD
========================================================== */

.png-onboarding-card{

    position:relative;

    background:linear-gradient(135deg, #EEF7F3, #F5FBF8);

    border:1px solid #BFE3D1;

    border-radius:16px;

    padding:22px 26px;

    margin-bottom:28px;

}

.png-onboarding-card h3{

    margin:0 0 14px;

    font-size:16px;

    font-weight:700;

    color:#0E6544;

}

.png-onboarding-steps{

    display:flex;

    flex-wrap:wrap;

    gap:10px 24px;

    margin-bottom:18px;

    font-size:13.5px;

    color:#334155;

}

.png-onboarding-steps strong{

    color:#0E6544;

    margin-right:4px;

}

.png-onboarding-example-btn{

    background:#0E6544;

    color:#fff;

    border:none;

    border-radius:9px;

    padding:9px 18px;

    font-size:13px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.png-onboarding-example-btn:hover{

    background:#0A4E35;

}

.png-onboarding-actions{

    display:flex;

    align-items:center;

    gap:14px;

}

.png-onboarding-no-thanks-btn{

    background:none;

    border:none;

    color:#64748B;

    font-size:13px;

    font-weight:600;

    cursor:pointer;

}

.png-onboarding-no-thanks-btn:hover{

    color:#334155;

    text-decoration:underline;

}

.png-onboarding-close{

    position:absolute;

    top:14px;

    right:16px;

    background:none;

    border:none;

    color:#8AA398;

    font-size:14px;

    cursor:pointer;

    padding:4px;

}

.png-onboarding-close:hover{

    color:#334155;

}

/* ==========================================================
   MULTI-SELECT (checkbox dropdown)
========================================================== */

.png-dropdown{

    position:relative;

}

.png-multiselect-toggle{

    width:100%;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    border:1px solid #D9E1EC;

    border-radius:14px;

    background:#fff;

    padding:14px 16px;

    font-size:15px;

    color:#111827;

    cursor:pointer;

    transition:all .2s ease;

    text-align:left;
}

.png-multiselect-toggle:hover{

    border-color:#BFCEDF;

}

.png-dropdown.active .png-multiselect-toggle{

    border-color:#0E6544;

    box-shadow:0 0 0 4px rgba(14,101,68,.10);

}

.png-multiselect-label{

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    color:#111827;
}

.png-multiselect-label.png-multiselect-placeholder{

    color:#94A3B8;

}

.png-multiselect-arrow{

    flex-shrink:0;

    color:#64748B;

    font-size:12px;

    transition:transform .2s ease;

}

.png-dropdown.active .png-multiselect-arrow{

    transform:rotate(180deg);

}

.png-multiselect-panel{

    display:none;

    position:absolute;

    top:calc(100% + 6px);

    left:0;

    min-width:100%;

    width:max-content;

    max-width:280px;

    background:#fff;

    border:1px solid #E2E8F0;

    border-radius:14px;

    box-shadow:0 16px 36px rgba(15,23,42,.12);

    padding:8px;

    z-index:40;

}

.png-dropdown.active .png-multiselect-panel{

    display:block;

}

.png-multiselect-option{

    display:flex;

    align-items:center;

    gap:9px;

    padding:6px 9px;

    border-radius:8px;

    font-size:13.5px;

    color:#334155;

    cursor:pointer;

    transition:.15s;

}

.png-multiselect-option:hover{

    background:#F5FBF8;

}

.png-field .png-multiselect-option input[type="checkbox"]{

    appearance:auto;

    -webkit-appearance:auto;

    width:15px;

    height:15px;

    min-width:15px;

    border-radius:4px;

    border:none;

    padding:0;

    background:none;

    accent-color:#0E6544;

    cursor:pointer;

    flex-shrink:0;

}

.png-multiselect-custom-option{

    border-top:1px solid #F1F5F9;

    margin-top:4px;

    padding-top:13px;

}

.png-dropdown-option{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    padding:8px 10px;

    border-radius:8px;

    font-size:13.5px;

    color:#334155;

    cursor:pointer;

    transition:.15s;

}

.png-dropdown-option:hover{

    background:#F5FBF8;

}

.png-dropdown-option.selected{

    background:#EEF7F3;

    color:#0E6544;

    font-weight:600;

}

.png-dropdown-option.selected::after{

    content:"✓";

}

.png-dropdown-custom-option{

    border-top:1px solid #F1F5F9;

    margin-top:4px;

    padding-top:13px;

}

.png-multiselect-custom-input{

    display:none;

    width:100%;

    margin-top:8px;

    border:1px solid #D9E1EC;

    border-radius:12px;

    background:#F8FAFC;

    padding:11px 14px;

    font-size:13.5px;

    color:#111827;

    box-sizing:border-box;

}

.png-multiselect-custom-input.active{

    display:block;

}

/* ==========================================================
   TARGET KEYWORDS
========================================================== */

.png-field-full{

    margin-top:20px;

}

.png-field-optional{

    color:#94A3B8;

    font-weight:400;

}

.png-target-keywords-input{

    width:100%;

    resize:vertical;

    min-height:52px;

    font-family:inherit;

}

.png-field-hint{

    display:block;

    margin-top:6px;

    font-size:12.5px;

    color:#8AA398;

}

/* ==========================================================
   KEEP SELECTIONS
========================================================== */

.png-keep-selections{

    display:flex;

    align-items:center;

    gap:8px;

    margin-top:20px;

    font-size:13px;

    font-weight:500;

    color:#64748B;

    cursor:pointer;

}

.png-keep-selections input{

    width:15px;

    height:15px;

    accent-color:#0E6544;

    cursor:pointer;

}
