:root {
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --input-border: #dadce0;
    --input-bg: #ffffff;
    --brand: #1a73e8;
    --brand-hover: #1557b0;
    --star-empty: #dadce0;
    --star-filled: #fbbc04;
    --danger: #d93025;
    --success: #1e8e3e;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
	--logo-background: #f8f9fa;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #171717;
        --bg-card: #303134;
        --text-primary: #e8eaed;
        --text-secondary: #9aa0a6;
        --input-border: #5f6368;
        --input-bg: #202124;
        --brand: #8ab4f8;
        --brand-hover: #aecbfa;
        --star-empty: #5f6368;
		--logo-background: #343a40;
    }
	.heart-icon img {
		filter: brightness(0) invert(1);
	}
}

/* --- RESET & LAYOUT --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    /* Mobile Centering Magic */
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent body scroll */
}

.main-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 16px;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* If content is too long on tiny phones, allow internal scroll */
    max-height: 95dvh;
    overflow-y: auto;
}

/* --- TYPOGRAPHY & ELEMENTS --- */
.stylized-logo {
	font-family: "Imbue", serif !important;
	font-weight: 200 !important;
	font-variation-settings: 'opsz' 100 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.2 !important;
	font-size: 3.2em;
	transform-origin: left center !important;
	background-color: var(--logo-background);
	margin-bottom: 10px;
}
.logo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
h1 { font-size: 20px; font-weight: 500; }
h2 { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.address { font-size: 12px; color: var(--text-secondary); margin-bottom: 20px; }
.sub-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.small-meta { font-size: 13px; color: var(--text-secondary); margin-top: 5px; }
.hidden { display: none; }

/* --- STARS & ANIMATION --- */
.stars-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.star-touch-target {
    width: 48px; height: 48px; /* Touch friendly */
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-touch-target:active { transform: scale(0.8); } /* Pop effect */

.star-svg {
    width: 38px; height: 38px;
    fill: var(--star-empty);
    transition: fill 0.2s ease;
}

.star-svg.active { fill: var(--star-filled); }

/* --- FORM --- */
.input-block { margin-bottom: 15px; text-align: left; }
.row { display: flex; gap: 10px; margin-bottom: 15px; }
.col { flex: 1; text-align: left; }

label { display: block; font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

input, textarea {
    width: 100%; padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 16px; /* Stop iOS zoom */
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}
input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }

button {
    background: var(--brand); color: #fff;
    border: none; width: 100%; padding: 14px;
    border-radius: 24px; font-size: 15px; font-weight: 500;
    cursor: pointer; margin-top: 10px;
    transition: background 0.2s;
}
button:hover { background: var(--brand-hover); }
button:disabled { background: var(--text-secondary); cursor: not-allowed; }
#error-msg { color: var(--danger); font-size: 12px; margin-top: 12px; }

/* --- ANIMATION UTILS --- */
.anim-fade-in { animation: fadeIn 0.5s ease forwards; opacity: 0; }
.anim-slide-up { animation: slideUp 0.5s ease forwards; opacity: 0; transform: translateY(20px); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.anim-icon {
    width: 50px; height: 50px; border-radius: 50%;
    color: white; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
}
.check-icon { background: var(--success); }
.sent-icon { color: var(--brand); }
.sent-icon svg { width: 48px; height: 48px; }
.heart-icon { }
.heart-icon img { width: 60px; height: 80px; animation: heartBeat 1.2s ease-in-out infinite; }

.loader {
    border: 3px solid var(--input-border); border-top: 3px solid var(--brand);
    border-radius: 50%; width: 24px; height: 24px;
    animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(1);
    }
}

/* --- FOOTER --- */
.card-footer { margin-top: 30px; border-top: 1px solid var(--input-border); padding-top: 15px; }
.lang-switcher { margin-bottom: 10px; font-size: 13px; }
.lang-switcher a { text-decoration: none; color: var(--text-secondary); font-weight: 500; }
.lang-switcher a.active { color: var(--brand); font-weight: 700; }
.lang-switcher .sep { color: var(--input-border); margin: 0 5px; }
.legal { font-size: 11px; color: var(--text-secondary); }
.legal a { color: var(--text-secondary); }
