/* Bukit Piniapat – certificate page styles (ported verbatim from certificate.html) */
:root { --forest-green: #1E4D2B; --deep-forest: #14361D; --sunset-gold: #E58A1F; --sky-white: #FFFFFF; --soft-ecru: #F8F9F6; --charcoal: #2C3333; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--soft-ecru); color: var(--charcoal); display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--deep-forest); }
.sub-header { background: var(--deep-forest); padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--sky-white); font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; text-decoration: none;}
.logo-icon { width: 42px; height: 42px; background: var(--sunset-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.claim-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.claim-card { background: var(--sky-white); max-width: 500px; width: 100%; border-radius: 16px; padding: 40px; box-shadow: 0 15px 35px rgba(0,0,0,0.06); text-align: center; }
.claim-card i { font-size: 3rem; color: var(--sunset-gold); margin-bottom: 20px; }
.claim-card h2 { margin-bottom: 10px; }
.claim-card p { color: #666; font-size: 0.95rem; margin-bottom: 30px; }

.input-group { position: relative; margin-bottom: 20px; }
.input-group input { width: 100%; padding: 14px 20px; border-radius: 50px; border: 2px solid #EAEAEA; font-family: 'Inter'; font-size: 1rem; text-align: center; transition: 0.3s; }
.input-group input:focus { outline: none; border-color: var(--sunset-gold); }

.btn-green { background: var(--forest-green); color: var(--sky-white); padding: 14px 32px; border: none; border-radius: 50px; font-family: 'Montserrat'; font-weight: 700; width: 100%; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.btn-green:hover { background: var(--deep-forest); }

/* Certificate Preview */
#certPreview { display: none; margin-top: 30px; padding: 20px; border: 2px dashed var(--sunset-gold); border-radius: 12px; background: #fffaf0; }
#certPreview h3 { color: var(--sunset-gold); font-size: 1.2rem; }
    

/* ---- Added for WordPress integration ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bp-cert-error { display: none; margin-top: 16px; padding: 12px; border-radius: 10px; background: #fdecec; color: #8a1f2b; border: 1px solid #f3c7cc; font-size: 0.9rem; }
.claim-card #certPreview p { color: var(--charcoal); margin-bottom: 15px; }
.claim-card #certPreview i { margin-bottom: 10px; }
.bp-link-btn { background: none; border: none; color: var(--forest-green); font-weight: 600; margin-top: 12px; cursor: pointer; text-decoration: underline; font-family: 'Inter', sans-serif; }
.btn-green:disabled { opacity: 0.7; cursor: wait; }

/* ============================================================
   RESPONSIVE REFINEMENTS (layout audit, Oct 2026)
   ============================================================ */
:root { --gutter: 20px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }
.sub-header { padding: 14px var(--gutter); }
.sub-header > a:last-child { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.claim-wrapper { padding: clamp(24px, 6vw, 48px) var(--gutter); }
.claim-card { padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 40px); }
.input-group input { font-size: 16px; min-height: 50px; }
.btn-green { min-height: 50px; }
.bp-link-btn { min-height: 44px; }

/* ==================== BRAND LOGO ==================== */
.logo-icon:has(.bp-logo) {
    width: 44px; height: 44px; background: #fff; overflow: hidden; flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.logo-icon .bp-logo { width: 88%; height: 88%; object-fit: contain; display: block; }

/* ==================== CERTIFICATE ORIENTATION PICKER ==================== */
.cert-orient { border: 0; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cert-orient legend { grid-column: 1 / -1; width: 100%; margin-bottom: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #6B746F; }
.cert-orient-opt { position: relative; display: block; cursor: pointer; }
.cert-orient-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cert-orient-card { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 2px solid #E4E2DA; border-radius: 12px; background: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--charcoal); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.cert-orient-shape { display: block; flex-shrink: 0; border: 2px solid currentColor; border-radius: 3px; position: relative; color: #8A968F; transition: color 0.2s; }
.cert-orient-shape::after { content: ''; position: absolute; left: 50%; top: 50%; width: 45%; height: 2px; background: currentColor; transform: translate(-50%, -50%); opacity: 0.6; }
.cert-orient-shape.is-landscape { width: 28px; height: 20px; }
.cert-orient-shape.is-portrait { width: 20px; height: 28px; }
.cert-orient-opt:hover .cert-orient-card { border-color: #CFCAB9; }
.cert-orient-opt input:checked + .cert-orient-card { border-color: var(--forest-green); background: #F1F6F2; box-shadow: 0 0 0 3px rgba(30, 77, 43, 0.12); color: var(--deep-forest); }
.cert-orient-opt input:checked + .cert-orient-card .cert-orient-shape { color: var(--forest-green); }
.cert-orient-opt input:focus-visible + .cert-orient-card { outline: 3px solid var(--sunset-gold); outline-offset: 2px; }
