/* QR Generator Pro — Stylesheet v1.0.0 */

:root {
    --qrgp-brand:       #2563EB;
    --qrgp-brand-hov:   #1D4ED8;
    --qrgp-dark:        #0F172A;
    --qrgp-body:        #334155;
    --qrgp-muted:       #64748B;
    --qrgp-sub:         #475569;
    --qrgp-bg:          #F5F7FA;
    --qrgp-bg2:         #EEF2F7;
    --qrgp-card:        #FFFFFF;
    --qrgp-border:      #CBD5E1;
    --qrgp-divider:     #E2E8F0;
    --qrgp-success:     #16A34A;
    --qrgp-error:       #DC2626;
    --qrgp-radius:      12px;
    --qrgp-radius-sm:   8px;
    --qrgp-shadow:      0 4px 14px rgba(15,23,42,0.05);
    --qrgp-box-pad:     55px;
}

.qrgp-wrap *, .qrgp-wrap *::before, .qrgp-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.qrgp-wrap {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--qrgp-body);
    max-width: 960px;
    margin: 0 auto;
}

/* ── HERO ── */
.qrgp-hero {
    text-align: center;
    padding: 48px 0 36px;
}
.qrgp-hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--qrgp-dark);
    letter-spacing: -0.02em;
}
.qrgp-hero-sub {
    font-size: 20px;
    font-weight: 400;
    color: var(--qrgp-sub);
    margin-top: 12px;
}

/* ── THREE LANDING BOXES ── */
.qrgp-box {
    background: var(--qrgp-card);
    border: 1px solid var(--qrgp-divider);
    border-radius: var(--qrgp-radius);
    box-shadow: var(--qrgp-shadow);
    padding: var(--qrgp-box-pad);
    margin-bottom: 24px;
    position: relative;
}
.qrgp-box-num {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--qrgp-brand);
    margin-bottom: 14px;
}
.qrgp-box-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--qrgp-dark);
    margin-bottom: 20px;
}
.qrgp-email-box {
    background: var(--qrgp-bg2);
    border-color: var(--qrgp-border);
    box-shadow: none;
}

/* ── PAGE HEADER (type pages) ── */
.qrgp-page-head {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--qrgp-divider);
}
.qrgp-page-title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--qrgp-dark);
    line-height: 1.2;
}
.qrgp-page-sub {
    font-size: 16px;
    color: var(--qrgp-muted);
    margin-top: 6px;
}

/* ── TYPE PAGE LAYOUT ── */
.qrgp-type-wrap { padding: 8px 0; }
.qrgp-type-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
}
.qrgp-type-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.qrgp-type-right {
    position: sticky;
    top: 24px;
}

/* ── PANELS ── */
.qrgp-panel {
    background: var(--qrgp-card);
    border: 1px solid var(--qrgp-divider);
    border-radius: var(--qrgp-radius);
    box-shadow: var(--qrgp-shadow);
    padding: 28px;
}
.qrgp-email-panel {
    background: var(--qrgp-bg2);
    box-shadow: none;
}
.qrgp-panel-title {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--qrgp-dark);
    margin-bottom: 14px;
}
.qrgp-optional {
    font-weight: 400;
    color: var(--qrgp-muted);
    font-size: 13px;
}

/* ── FORM ELEMENTS ── */
.qrgp-field { margin-bottom: 16px; }
.qrgp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--qrgp-dark);
    margin-bottom: 6px;
    font-family: 'Manrope', sans-serif;
}
.qrgp-input {
    width: 100%;
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--qrgp-body);
    background: var(--qrgp-card);
    border: 1px solid var(--qrgp-border);
    border-radius: var(--qrgp-radius-sm);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}
.qrgp-input:focus {
    border-color: var(--qrgp-brand);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.qrgp-textarea {
    resize: vertical;
    min-height: 90px;
}
.qrgp-hint {
    font-size: 12px;
    color: var(--qrgp-muted);
    margin-top: 5px;
}

/* ── TWO COLUMN GRID ── */
.qrgp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── RADIO GROUP ── */
.qrgp-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.qrgp-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--qrgp-body);
    cursor: pointer;
}
.qrgp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--qrgp-body);
    cursor: pointer;
}

/* ── BUTTONS ── */
.qrgp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    background: var(--qrgp-brand);
    color: #ffffff;
    border: none;
    border-radius: var(--qrgp-radius);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}
.qrgp-btn:hover { background: var(--qrgp-brand-hov); }
.qrgp-btn:active { transform: scale(0.98); }
.qrgp-btn-lg {
    padding: 14px 28px;
    font-size: 17px;
    margin-top: 8px;
}
.qrgp-btn-sec {
    background: var(--qrgp-card);
    color: var(--qrgp-brand);
    border: 1px solid var(--qrgp-border);
}
.qrgp-btn-sec:hover { background: var(--qrgp-bg2); }

/* ── INLINE ROW (email + button) ── */
.qrgp-row {
    display: flex;
    gap: 10px;
}
.qrgp-row .qrgp-input { flex: 1; }

/* ── TABS ── */
.qrgp-tabs {
    display: flex;
    border-bottom: 2px solid var(--qrgp-divider);
    margin-bottom: 20px;
}
.qrgp-tab {
    padding: 9px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--qrgp-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.qrgp-tab:hover { color: var(--qrgp-brand); }
.qrgp-tab.active {
    color: var(--qrgp-brand);
    border-bottom-color: var(--qrgp-brand);
}
.qrgp-tab-pane { display: none; }
.qrgp-tab-pane.active { display: block; }

/* ── QR OUTPUT ── */
.qrgp-output {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--qrgp-card);
    border: 1px solid var(--qrgp-divider);
    border-radius: var(--qrgp-radius);
    box-shadow: var(--qrgp-shadow);
}
.qrgp-qr-wrap {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qrgp-bg2);
    border: 2px dashed var(--qrgp-border);
    border-radius: var(--qrgp-radius-sm);
}
.qrgp-qr-wrap.has-qr {
    background: #ffffff;
    border-style: solid;
    border-color: var(--qrgp-divider);
}
.qrgp-qr-wrap canvas,
.qrgp-qr-wrap img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.qrgp-placeholder {
    text-align: center;
    color: var(--qrgp-muted);
    padding: 16px;
}
.qrgp-placeholder svg {
    display: block;
    margin: 0 auto 10px;
    opacity: 0.3;
}
.qrgp-placeholder p {
    font-size: 13px;
}
.qrgp-dl-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── STATUS MESSAGES ── */
.qrgp-status {
    display: none;
    margin-top: 10px;
    padding: 9px 13px;
    border-radius: var(--qrgp-radius-sm);
    font-size: 14px;
    font-weight: 500;
}
.qrgp-status.ok  { display: block; background: #F0FDF4; color: var(--qrgp-success); border: 1px solid #BBF7D0; }
.qrgp-status.err { display: block; background: #FEF2F2; color: var(--qrgp-error);   border: 1px solid #FECACA; }
.qrgp-status.inf { display: block; background: #EFF6FF; color: var(--qrgp-brand);   border: 1px solid #BFDBFE; }

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
    .qrgp-type-layout { grid-template-columns: 1fr; }
    .qrgp-type-right { position: static; }
    .qrgp-hero-title { font-size: 36px; }
    .qrgp-two-col { grid-template-columns: 1fr; }
    .qrgp-box { padding: 28px; }
    .qrgp-row { flex-direction: column; }
}
@media (max-width: 480px) {
    .qrgp-box { padding: 20px; }
    .qrgp-panel { padding: 20px; }
    .qrgp-btn-lg { width: 100%; justify-content: center; }
}
