:root {
  --brazil-blue: #009739;
  --brazil-green: #FEDD00;
  --croatia-red: #FF0000;
  --croatia-blue: #171796;
  --bg-light: #F5F7FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-muted: #666666;
  --border: #E0E0E0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header { position: fixed; top: 0; left: 0; right: 0; background: var(--bg-white); box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 1000; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: var(--croatia-red); text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--croatia-red); }
.lang-switcher { display: flex; gap: 8px; align-items: center; }
.lang-switcher a { padding: 6px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: all 0.3s; color: var(--text-dark); }
.lang-switcher a.active { background: var(--brazil-blue); color: var(--bg-white); }
.lang-switcher a:hover:not(.active) { background: var(--bg-light); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001; }
.menu-toggle span { width: 25px; height: 3px; background: var(--text-dark); border-radius: 3px; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); flex-direction: column; align-items: stretch; gap: 0; padding: 0; box-shadow: 0 4px 8px rgba(0,0,0,0.1); max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
  .nav-links.active { max-height: 500px; padding: 16px 0; }
  .nav-links a { padding: 12px 24px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .lang-switcher { margin: 12px 24px; justify-content: center; }
}
.loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; gap: 16px; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--croatia-red); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-muted); font-size: 16px; }
.wizard-section { margin-top: 100px; padding: 40px 24px 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.progress-bar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; position: relative; padding: 0 8px; }
.progress-bar::before { content: ''; position: absolute; top: 16px; left: 32px; right: 32px; height: 2px; background: var(--border); z-index: 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; flex: 1; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-muted); transition: all 0.3s; }
.step-dot.active, .step-dot.completed { background: var(--croatia-red); color: #FFFFFF; }
.step-label { font-size: 12px; color: var(--text-muted); text-align: center; font-weight: 500; max-width: 80px; }
.step-label.active { color: var(--croatia-red); font-weight: 700; }
.step-content { background: var(--bg-white); padding: 32px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: none; }
.step-content.active { display: block; }
.step-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.step-subtitle { font-size: 15px; color: #666; margin-bottom: 20px; font-weight: 400; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; min-height: 44px; text-align: center; user-select: none; -webkit-tap-highlight-color: transparent; }
.card:hover { border-color: var(--croatia-red); box-shadow: 0 2px 8px rgba(255,0,0,0.1); }
.card.selected { border-color: var(--croatia-red); background: #FFF5F5; box-shadow: 0 2px 12px rgba(255,0,0,0.15); }
.card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--croatia-red); overflow: hidden; flex-shrink: 0; }
.card-icon img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.2s ease; }
.card:hover .card-icon img { transform: scale(1.2); }
.card-name { font-size: 14px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-label .required-star { color: var(--croatia-red); margin-left: 2px; }
.form-input, .form-select { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px; font-size: 16px; transition: border-color 0.3s; background: var(--bg-white); color: var(--text-dark); min-height: 48px; box-sizing: border-box; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--croatia-red); }
.form-input.error { border-color: var(--croatia-red); }
.skill-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.skill-card { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.3s, background-color 0.3s; background: var(--bg-white); min-height: 48px; }
.skill-card:hover { border-color: #999; }
.skill-card input[type="radio"], .skill-card input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.skill-card:has(input:checked) { border-color: var(--croatia-red); background: rgba(255, 0, 0, 0.05); }
.skill-card svg { width: 36px; height: 36px; color: var(--croatia-red); transition: transform 0.2s ease; }
.skill-card:hover svg { transform: scale(1.15); }
.skill-card img { width: 36px; height: 36px; object-fit: contain; transition: transform 0.2s ease; }
.skill-card:hover img { transform: scale(1.15); }
.skill-card span { font-size: 13px; font-weight: 600; color: var(--text-dark); text-align: center; line-height: 1.3; }
.skill-card[data-value="male"] svg { color: var(--croatia-blue); }
@media (max-width: 768px) { .skill-cards { display: grid; grid-template-columns: repeat(2, 1fr); } }
.error-message { color: var(--croatia-red); font-size: 13px; margin-top: 4px; display: none; }
.error-message.visible { display: block; }
.card-grid-error { color: var(--croatia-red); font-size: 14px; margin-top: 12px; display: none; font-weight: 500; }
.card-grid-error.visible { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.iti { width: 100%; }
.iti .iti__selected-dial-code { font-size: 16px; }
.iti input.form-input { width: 100%; }
.iti__dropdown-content { z-index: 100; }
.iti__search-input { padding: 8px 12px; font-size: 16px; border: 2px solid var(--border); border-radius: 6px; min-height: 40px; box-sizing: border-box; width: calc(100% - 16px); margin: 8px; }
.iti__search-input:focus { outline: none; border-color: var(--croatia-red); }
.radio-group { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.radio-item, .checkbox-item-inline { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.radio-item input[type="radio"], .checkbox-item-inline input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; flex-shrink: 0; }
.radio-item label, .checkbox-item-inline label { cursor: pointer; font-weight: 500; font-size: 15px; }
.consent-section { margin: 24px 0; padding: 20px; background: #F9FAFB; border-radius: 8px; border: 1px solid var(--border); }
.consent-checkbox { display: flex; align-items: flex-start; gap: 12px; }
.consent-checkbox input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; margin-top: 2px; flex-shrink: 0; }
.consent-checkbox label { cursor: pointer; font-size: 14px; line-height: 1.6; color: var(--text-dark); }
.consent-checkbox label a { color: var(--croatia-red); text-decoration: underline; }
.wizard-buttons { display: flex; gap: 12px; padding: 16px 24px; background: var(--bg-white); position: sticky; bottom: 0; z-index: 100; box-shadow: 0 -2px 8px rgba(0,0,0,0.1); margin: 0 -32px -32px; border-radius: 0 0 12px 12px; }
.btn { padding: 14px 32px; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; min-height: 48px; text-align: center; }
.btn-primary { background: var(--croatia-red); color: #FFFFFF; flex: 1; }
.btn-primary:not(:disabled):hover { background: #CC0000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-secondary { background: var(--bg-white); color: var(--text-dark); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); background: var(--bg-light); }
@media (max-width: 768px) { .wizard-buttons { padding: 12px 16px; margin: 0 -16px -24px; } .btn { width: auto; flex: 1; } .step-content { padding: 24px 16px; } .wizard-section { padding: 30px 16px 40px; } }
footer { background: var(--text-dark); color: #FFFFFF; padding: 40px 24px; text-align: center; margin-top: auto; }
.footer-links { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-link { display: inline-block; color: #FFFFFF; text-decoration: none; font-size: 14px; text-transform: lowercase; transition: opacity 0.3s; }
.footer-link:hover { opacity: 0.8; text-decoration: underline; }
.footer-separator { color: #FFFFFF; opacity: 0.6; }
.chat-slider-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1000; }
.chat-slider-overlay.active { opacity: 1; visibility: visible; }
.chat-slider { position: fixed; top: 0; right: 0; width: 80%; max-width: 800px; height: 100%; background: #1a1a2e; transform: translateX(100%); transition: transform 0.3s ease; z-index: 1001; display: flex; flex-direction: column; }
.chat-slider.active { transform: translateX(0); }
.chat-slider-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #FF0000; border-bottom: 1px solid #CC0000; }
.chat-slider-title { color: white; font-size: 18px; font-weight: 600; margin: 0; }
.chat-slider-close { background: none; border: none; color: #aaa; font-size: 28px; cursor: pointer; padding: 0; line-height: 1; transition: color 0.2s; }
.chat-slider-close:hover { color: white; }
.chat-slider-iframe { flex: 1; border: none; width: 100%; height: 100%; }
@media (max-width: 768px) { .chat-slider { width: 100%; } }
.confirm-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 3000; }
.confirm-modal-overlay.active { display: flex; }
.confirm-modal { background: white; border-radius: 12px; padding: 24px; min-width: 320px; max-width: 480px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.confirm-modal-message { font-size: 15px; color: #333; margin-bottom: 20px; line-height: 1.5; }
.confirm-modal-buttons { display: flex; gap: 12px; justify-content: flex-end; }
.confirm-modal-btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.confirm-modal-btn-cancel { background: #f3f4f6; border: 1px solid #d1d5db; color: #374151; }
.confirm-modal-btn-cancel:hover { background: #e5e7eb; }
.confirm-modal-btn-ok { background: #ef4444; border: 1px solid #dc2626; color: white; }
.confirm-modal-btn-ok:hover { background: #dc2626; }
/* Quickfill modal */
.qf-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 2000; }
.qf-modal-overlay.active { display: flex; }
.qf-modal { background: white; border-radius: 12px; padding: 24px; min-width: 320px; max-width: 480px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.qf-modal-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #333; text-align: center; }
.qf-modal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qf-modal-btn { padding: 12px 20px; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.qf-modal-btn:hover { background: #FF0000; color: white; border-color: #FF0000; }
.qf-modal-close { margin-top: 12px; padding: 8px; border: none; background: transparent; color: #666; cursor: pointer; font-size: 13px; width: 100%; }
.qf-modal-close:hover { color: #333; }
.consent-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 3000; padding: 24px; }
.consent-modal-overlay.active { display: flex; }
.consent-modal { background: white; border-radius: 12px; padding: 24px; max-width: 500px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.consent-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.consent-modal-header h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin: 0; }
.consent-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); padding: 0; line-height: 1; }
.consent-modal-close:hover { color: var(--text-dark); }
.consent-modal-body { font-size: 14px; line-height: 1.7; color: var(--text-dark); }
.consent-short-label { cursor: pointer; font-size: 14px; line-height: 1.6; color: var(--text-dark); }
.consent-more-link { color: var(--croatia-red); text-decoration: underline; cursor: pointer; font-size: 13px; display: inline-block; margin-top: 4px; }
.consent-more-link:hover { color: #CC0000; }
