/*
Theme Name: Blocksy Child
Author: 
Description: Your description goes here
Version: 1.0
Template: blocksy

This is the child theme for Blocksy theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

:root {
    --eu-blue: #003399;
    --eu-gold: #FFCC00;
    --navy: #001f66;
    --white: #ffffff;
    --amber-bg: #FAEEDA;
    --amber-tx: #854F0B;
    --green-bg: #EAF3DE;
    --green-tx: #27500A;
    --green-tag: #3B6D11;
    --grey-bg: #F1EFE8;
    --grey-tx: #2C2C2A;
    --body: Verdana, Geneva, sans-serif;
    --display: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
}

/* Overlay (the dimmed background behind the popup) */
.hostineu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 76px 16px 32px;
    overflow-y: auto;
    z-index: 1000;
}

/* Device wrapper - controls width */
#hostineu-device {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

/* The popup itself - EXACT match to prototype */
.hostineu-popup {
    width: 100%;
    background: var(--eu-blue);
    border-radius: 14px;
    padding: 28px 28px 22px;
    position: relative;
    color: var(--white);
    font-family: var(--body);
}

.hostineu-popup .close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.hostineu-popup .close:hover {
    color: var(--eu-gold);
}

.hostineu-popup .stars {
    text-align: center;
    color: var(--eu-gold);
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hostineu-popup .eyebrow {
    color: var(--eu-gold);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
    margin: 0 0 8px;
}

.hostineu-popup h1.title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 25px;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 12px;
}

.hostineu-popup .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
}

/* Fields and buttons - EXACT match */
.hostineu-popup .field {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: var(--white) !important;
    color: var(--navy);
    font-family: var(--body);
    font-size: 14px;
}

.hostineu-popup .field:focus {
    outline: 3px solid var(--eu-gold);
    outline-offset: 2px;
}

.hostineu-popup .btn {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: var(--eu-gold);
    color: var(--eu-blue);
    font-family: var(--body);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.hostineu-popup .btn:hover {
    background: #ffd633;
}
.hostineu-popup .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hostineu-popup .err {
    color: #FFD2D2;
    font-size: 12px;
    margin: 8px 0 0;
    min-height: 1em;
}

.hostineu-popup .microcopy {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 12px 0 0;
    line-height: 1.5;
}

.hostineu-popup .microcopy .ic {
    color: var(--eu-gold);
    margin-right: 5px;
}

.hostineu-popup .footer-line {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 20px;
    padding-top: 14px;
    text-align: center;
}
.hostineu-popup .footer-line p {
    color: var(--eu-gold);
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0;
}

/* Screen management - EXACT match */
.hostineu-popup .screen {
    animation: hostineuFade 0.25s ease;
}
.hostineu-popup .screen[hidden] {
    display: none !important;
}

@keyframes hostineuFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hostineu-popup .screen {
        animation: none;
    }
}

/* Loading - EXACT match */
.hostineu-popup .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 30px 0;
}
.hostineu-popup .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--eu-gold);
    border-radius: 50%;
    animation: hostineuSpin 0.8s linear infinite;
}
@keyframes hostineuSpin {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hostineu-popup .spinner {
        animation: none;
    }
}

/* Result card - EXACT match */
.hostineu-popup .result-card {
    background: var(--white);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
    color: var(--navy);
}
.hostineu-popup .result-card .rc-label {
    font-size: 12px;
    color: #6b7a9c;
    margin: 0 0 4px;
}
.hostineu-popup .result-card .rc-name {
    font-size: 18px;
    color: var(--navy);
    font-weight: bold;
    margin: 0 0 10px;
}
.hostineu-popup .badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.hostineu-popup .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 18px;
}
.hostineu-popup .badge.amber {
    background: var(--amber-bg);
    color: var(--amber-tx);
}
.hostineu-popup .badge.green {
    background: var(--green-bg);
    color: var(--green-tx);
}
.hostineu-popup .badge.grey {
    background: var(--grey-bg);
    color: var(--grey-tx);
}
.hostineu-popup .tag {
    font-size: 11px;
    font-weight: bold;
    padding: 5px 11px;
    border-radius: 18px;
    color: #fff;
}
.hostineu-popup .tag.amber {
    background: var(--amber-tx);
}
.hostineu-popup .tag.green {
    background: var(--green-tag);
}
.hostineu-popup .tag.grey {
    background: var(--grey-tx);
}

.hostineu-popup .verdict {
    color: var(--white);
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.25;
    margin: 0 0 14px;
}

.hostineu-popup .what-label {
    color: var(--eu-gold);
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: bold;
    margin: 0 0 12px;
}

.hostineu-popup .points {
    margin-bottom: 16px;
}
.hostineu-popup .point {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 13px;
}
.hostineu-popup .point:last-child {
    margin-bottom: 0;
}
.hostineu-popup .point .ic {
    flex: none;
    margin-top: 2px;
    color: var(--eu-gold);
}
.hostineu-popup .point b {
    display: block;
    color: var(--white);
    font-size: 13px;
    margin: 0 0 2px;
}
.hostineu-popup .point span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.5;
}

.hostineu-popup .bridge {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.55;
    margin: 16px 0 18px;
}
.hostineu-popup .bridge .ic {
    color: var(--eu-gold);
    margin-right: 6px;
}

/* Giveaway box - EXACT match, static */
.hostineu-popup .giveaway {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid var(--eu-gold);
    border-radius: 10px;
    padding: 18px 18px 16px;
}
.hostineu-popup .giveaway .gv-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.hostineu-popup .giveaway .gv-head .ic {
    color: var(--eu-gold);
}
.hostineu-popup .giveaway .gv-head span {
    color: var(--eu-gold);
    font-size: 15px;
    font-weight: bold;
}
.hostineu-popup .giveaway .gv-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.hostineu-popup .consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 0;
    cursor: pointer;
}
.hostineu-popup .consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--eu-gold);
    cursor: pointer;
}
.hostineu-popup .consent input:focus-visible {
    outline: 3px solid var(--eu-gold);
    outline-offset: 2px;
}
.hostineu-popup .consent span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.5;
}

.hostineu-popup .gv-foot {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin: 11px 0 0;
    line-height: 1.5;
}
.hostineu-popup .gv-foot a,
.hostineu-popup .microcopy a {
    color: var(--eu-gold);
    text-decoration: underline;
}
.hostineu-popup .gv-foot a:hover,
.hostineu-popup .microcopy a:hover {
    color: #ffd633;
}

/* Hidden fields for Laposta */
.hostineu-popup .laposta-fields {
    display: none;
}

/* Screen 3 - Confirmation - EXACT match */
.hostineu-popup .confirm {
    text-align: center;
    padding: 6px 0;
}
.hostineu-popup .confirm .check {
    color: var(--eu-gold);
}
.hostineu-popup .confirm h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 24px;
    color: var(--white);
    margin: 14px 0 10px;
}
.hostineu-popup .confirm p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
}
.hostineu-popup .confirm .inbox {
    color: var(--eu-gold);
    font-size: 13px;
    margin: 0;
}
.hostineu-popup .confirm .inbox .ic {
    margin-right: 4px;
}

/* Responsive - EXACT match */
@media (max-width: 480px) {
    .hostineu-popup {
        padding: 24px 20px 18px;
        border-radius: 12px;
    }
    .hostineu-popup h1.title {
        font-size: 21px;
    }
    .hostineu-popup .verdict {
        font-size: 16px;
    }
}

/* Inline SVG icons - EXACT match to prototype */
.ic {
    display: inline-block;
    vertical-align: -0.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gv-foot a {
  font-size: 11px !important;
  color: rgba(255,255,255,.7) !important;
  font-weight: 600 !important;
}