/* =================================================================
   ICGL Certificate Verifier — Frontend CSS v3
   Layout: Front certificate LEFT | Back certificate RIGHT
   ================================================================= */

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

.icgl-wrap {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    color: #111;
}

/* =================================================================
   VERIFY FORM
   ================================================================= */
.icgl-form-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.icgl-form-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    padding: 36px 40px 40px;
    width: 100%;
    max-width: 500px;
}

.icgl-form-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a3a8c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.icgl-form-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.3 !important;
}

.icgl-form-sub {
    font-size: 13px;
    color: #1a3a8c;
    margin-bottom: 22px;
}

.icgl-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.icgl-input {
    display: block;
    width: 100%;
    border: 1.5px solid #d1d9e0;
    border-radius: 7px;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    margin-bottom: 10px;
    transition: border-color .2s;
}
.icgl-input:focus { border-color: #1a3a8c; }

.icgl-err {
    color: #c0392b;
    font-size: 12px;
    padding: 8px 12px;
    background: #fdf2f2;
    border-radius: 5px;
    border-left: 3px solid #c0392b;
    margin-bottom: 12px;
}

.icgl-verify-btn {
    display: block;
    width: 100%;
    background: #1a3a8c;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 14px;
    transition: background .2s;
}
.icgl-verify-btn:hover { background: #15307a; }

/* =================================================================
   BRACELET IMAGE — centred above both cards
   ================================================================= */
.icgl-bracelet-top {
    text-align: center;
    margin-bottom: 18px;
}
.icgl-bracelet-top img {
    display: block;
    max-width: 200px;
    max-height: 155px;
    object-fit: contain;
    margin: 0 auto 8px;
}
.icgl-product-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111;
}

/* =================================================================
   CARDS ROW — front LEFT, back RIGHT, same height
   ================================================================= */
.icgl-cards-row {
    display: flex;
    flex-direction: row;          /* ALWAYS row on desktop */
    align-items: stretch;         /* equal height */
    gap: 0;
    width: 100%;
}

/* =================================================================
   SHARED CARD BASE
   ================================================================= */
.icgl-card {
    position: relative;
    overflow: hidden;
}

/* =================================================================
   FRONT CERTIFICATE (left, ~57%)
   ================================================================= */
.icgl-front {
    flex: 0 0 57%;
    max-width: 57%;
    background: #f4f4f4;
    border: 1px solid #c8c8c8;
    border-right: none;
    border-radius: 6px 0 0 6px;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,.08);
}

/* Header */
.icgl-front-header {
    background: #0e2a6e;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    flex-shrink: 0;
}

.icgl-logo-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;  /* transparent PNG on navy */
}

.icgl-header-text {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

/* Sub-title */
.icgl-front-subtitle {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #111;
    padding: 13px 14px 9px;
    background: #f4f4f4;
    position: relative;
    z-index: 1;
}

/* Body */
.icgl-front-body {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0 14px 18px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Data column */
.icgl-front-data {
    flex: 1;
    padding-right: 12px;
    min-width: 0;
}

.icgl-tbl {
    width: 100%;
    border-collapse: collapse;
}
.icgl-tbl tr { border: none; }

.icgl-tbl .lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: #111;
    padding: 4px 7px 4px 0;
    vertical-align: top;
    white-space: nowrap;
    width: 46%;
}

.icgl-tbl .val {
    font-size: 11.5px;
    color: #111;
    padding: 4px 0;
    vertical-align: top;
}

.icgl-tbl .val sub {
    font-size: 9px;
    vertical-align: sub;
}

/* Species/Remarks bordered box */
.icgl-sp-box {
    border: 1.5px solid #444;
    border-radius: 2px;
    margin-top: 9px;
}
.icgl-sp-box .lbl { padding-left: 6px; }
.icgl-sp-box .val  { padding-right: 6px; }

/* Right column: product image + QR + signature */
.icgl-front-right {
    width: 175px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.icgl-img-qr-row {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
}

.icgl-prod-img-box {
    flex: 1;
    border: 1px solid #ccc;
    background: #fff;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.icgl-prod-img-box img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.icgl-qr-box {
    flex-shrink: 0;
    border: 1px solid #ccc;
    background: #fff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icgl-qr-box img {
    width: 72px;
    height: 72px;
    display: block;
}

.icgl-prod-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-align: center;
    color: #111;
    margin-top: 2px;
}

.icgl-sig-area {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icgl-sig-area img {
    max-width: 120px;
    max-height: 44px;
    object-fit: contain;
    display: block;
}
.icgl-sig-line {
    width: 100%;
    border-top: 1.5px solid #333;
    margin: 5px 0 2px;
}
.icgl-sig-text {
    font-size: 10px;
    font-weight: 600;
    color: #111;
    text-align: center;
}

/* Watermark */
.icgl-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .07;
    pointer-events: none;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.icgl-watermark img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: grayscale(100%);
}
.icgl-wm-text {
    font-size: 38px;
    font-weight: 900;
    color: #555;
    letter-spacing: 6px;
    display: block;
}

/* =================================================================
   BACK CERTIFICATE (right, ~43%)
   ================================================================= */
.icgl-back {
    flex: 0 0 43%;
    max-width: 43%;
    background: #e6e6e6;
    border: 1px solid #c8c8c8;
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 22px;
    box-shadow: 2px 0 10px rgba(0,0,0,.08);
}

.icgl-back-title {
    font-size: 19px;
    font-weight: 900;
    color: #111;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: .2px;
}

.icgl-back-line {
    width: 100%;
    height: 1.5px;
    background: #aaa;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.icgl-back-list {
    flex: 1;
    list-style: disc;
    padding-left: 20px;
}
.icgl-back-list li {
    font-size: 12.5px;
    color: #111;
    line-height: 1.75;
    margin-bottom: 15px;
    padding-left: 2px;
}
.icgl-back-list li:last-child { margin-bottom: 0; }

.icgl-back-web {
    text-align: center;
    font-size: 13px;
    color: #333;
    margin-top: 20px;
    flex-shrink: 0;
}

/* =================================================================
   VERIFY AGAIN BUTTON  — #0557BC
   ================================================================= */
.icgl-again-wrap {
    text-align: center;
    margin-top: 26px;
}

.icgl-again-btn {
    background: #0557BC;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.icgl-again-btn:hover { background: #044fa8; }

/* =================================================================
   RESPONSIVE
   ================================================================= */

/* Below 900px: stack the two cards vertically */
@media (max-width: 900px) {
    .icgl-cards-row {
        flex-direction: column;
    }
    .icgl-front {
        flex: none;
        max-width: 100%;
        border-right: 1px solid #c8c8c8;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
    }
    .icgl-back {
        flex: none;
        max-width: 100%;
        border-top: 1px solid #aaa;
        border-radius: 0 0 6px 6px;
    }
}

@media (max-width: 620px) {
    .icgl-form-card { padding: 24px 18px; }

    .icgl-front-header  { padding: 8px 10px; gap: 8px; }
    .icgl-logo-img      { width: 46px; height: 46px; }
    .icgl-header-text   { font-size: 13px; }

    .icgl-front-body    { flex-direction: column; padding: 0 10px 14px; }
    .icgl-front-data    { padding-right: 0; }
    .icgl-front-right   { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
    .icgl-img-qr-row    { width: auto; }
    .icgl-sig-area      { width: 100%; margin-top: 10px; }

    .icgl-front-subtitle { font-size: 12px; padding: 10px; }
    .icgl-tbl .lbl, .icgl-tbl .val { font-size: 10.5px; }

    .icgl-bracelet-top img { max-width: 140px; }

    .icgl-back          { padding: 20px 16px 16px; }
    .icgl-back-title    { font-size: 16px; }
    .icgl-back-list li  { font-size: 12px; line-height: 1.6; margin-bottom: 11px; }
}

@media (max-width: 380px) {
    .icgl-header-text { font-size: 11px; }
    .icgl-tbl .lbl, .icgl-tbl .val { font-size: 10px; }
    .icgl-back-title { font-size: 14px; }
}
