* {
  font-family: 'Quicksand', sans-serif;
}

/* Quicksand pro placeholdery */
input::placeholder,
textarea::placeholder {
  font-family: 'Quicksand', sans-serif;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  font-family: 'Quicksand', sans-serif;
}
input::-moz-placeholder,
textarea::-moz-input-placeholder {
  font-family: 'Quicksand', sans-serif;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  font-family: 'Quicksand', sans-serif;
}

html {
    background-color: #333;
}

body {
    position: absolute;
    min-height: 100vh;
    min-width: 100%;
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(62, 183, 228, 0.3) 0%, rgba(87, 199, 133, 0.3) 50%, rgba(250, 185, 44, 0.3) 100%);
    background-attachment: fixed;
    /*background: #333;*/
}

.main-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    min-height: calc(100vh - 90px - 90px - 60px); /* Aby se roztáhl */
    display: flex;
    flex-direction: column;
    /*justify-content: space-between; /* Roztlačí header a footer */
    padding-bottom: calc(90px + 90px);
}

.main-wrapper::before {
    text-align: center;
    content: "Early BETA";
    /*margin: auto;*/
    background-color: rgb(204, 98, 98);
    color: #1a1a1a;
    font-weight: bold;
    font-size: 25px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    padding: 10px 0;
}

.content-padding {
    padding: 0 25px; /* Ponecháno pro vnitřní obsah */
    color: #333333;
    font-size: 15px;
    flex-grow: 1; /* Aby vyplnil dostupný prostor */
}
h1 { text-align: center; margin-bottom: 25px; }
h3 { border-bottom: 1px solid #eee; padding-bottom: 5px; /*margin-top: 30px;*/ margin-bottom: 20px; }
.form-group { margin-bottom: 15px; position: relative; }
.form-group label {
    display: flex; /* Flexbox pro zarovnání labelu a počítadla */
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    color: #333333;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}
.form-group .checkbox-label {
    display: inline-block;
    font-weight: normal;
    color: #333333;
}
/* Původní pravidlo pro automatické přidávání asterisku odstraněno */
.button-group { text-align: center; margin-top: 30px; }
.button-group button, .file-upload-button {
    background:#fab92c;
    color:#1a1a1a;
    padding:12px 20px;
    border: none;
    border-radius:20px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    max-width: max-content;
}
.button-group button:hover, .file-upload-button:hover {
    opacity: 0.9;
}
.file-upload-button {
    margin-top: 5px;
    padding: 8px 15px;
    font-size: 14px;
}
.selected-file-name {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #333;
}
small { color: #666; font-size: 0.9em; }

/* Styly pro header a footer z template.html, upravené */
.header-section {
    padding: 20px;
    background: #3eb7e4;
    background: linear-gradient(135deg, #3eb7e4 0%, #57c785 50%, #fab92c 100%);
    border-radius: 20px 20px 0 0;
    color: #ffffff;
}
.header-section h2 { margin: 0; }
.header-section p { margin: 5px 0 0; }
.footer-section {
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: #777777;
    border-top: 1px solid #dddddd;
    border-radius: 0 0 8px 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
}
.footer-section a {
    color: #fab92c;
    text-decoration: none;
}
.footer-section .gradient-text {
    font-weight: bold;
    color: #fab92c;
    background: linear-gradient(135deg, #3eb7e4, #57c785, #fab92c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* VALIDATION STYLES */
.form-group input.error,
.form-group select.error {
    border-color: red !important;
}
.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* Character Counter Styles */
.char-counter {
    /* Již není absolutně pozicováno */
    font-size: 0.7em;
    color: #999;
    pointer-events: none;
    display: block; /* Zobrazit vždy */
    margin-left: auto; /* Zarovná doprava ve flex kontejneru label */
    padding-left: 10px; /* Mezera od textu labelu */
}
/* Původní padding-right pro inputy odstraněno */

@keyframes background-move {
    0% {background-position-x: 0px;}
    100% {background-position-x: -450px;}
}

.bck {
    background-attachment: fixed;
    position: fixed;
    left: -100%;
    top: 100%;
    height: 500%;
    width: 500%;
    z-index: -1;
    background-image: url(https://pragfur.cz/pacicky-mask-white.svg);
    background-size: 450px;
    transform: rotate(30deg);
    opacity: 0.10;
    filter: invert(0) drop-shadow(4px 4px 0px #808080);
    /*animation: background-move;*/
    /* animation-delay: 5s; */
    animation-iteration-count: infinite;
    animation-duration: 30s;
    animation-timing-function: linear;
    background-position-x: 0px;
}

.bck2 {
    position: fixed;
    overflow: hidden;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.bck2 .bck-text {
    color: #1a1a1a;
    position: fixed;
    width: -webkit-fill-available;
    top: 80px;
    left: 80px;
    padding-right: 160px;
    /*opacity: 0.2;*/
    margin: 0;
    font-size: xxx-large;
    text-align: left;
}

.bck2 .bck-img {
    width: 45%;
    position: fixed;
    right: -160px;
    bottom: -100px;
    /*opacity: 0.2;*/
    max-width: 620px;
}

/* FLEXBOX STYLY PRO ROZLOŽENÍ POLÍ */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Mezera mezi sloupci */
    margin-bottom: 15px; /* Mezera pod celým řádkem */
}

.form-row .form-group {
    flex: 1 1 calc(50% - 7.5px); /* Rozdělení na dva sloupce */
    margin-bottom: 0; /* Odstranit spodní mezeru, je na .form-row */
}
/* Pro Event a Sedadlo */
.form-row .form-group.event-field {
    flex: 2 1 calc(66% - 7.5px); /* Event 2/3 šířky */
}
.form-row .form-group.seat-field {
    flex: 1 1 calc(33% - 7.5px); /* Sedadlo 1/3 šířky */
}


/* Pro případ, že by jedno pole zabíralo celý řádek */
.form-row .form-group.full-width {
    flex: 1 1 100%;
}
/* Malé obrazovky - vše pod sebou */
@media (max-width: 480px) {
    .form-row .form-group {
        flex: 1 1 100%;
    }
    .form-row .form-group.event-field,
    .form-row .form-group.seat-field {
        flex: 1 1 100%;
    }
}

/* Multi-step form styles */
.form-step {
    display: none; /* Skryje všechny kroky na začátku */
}
.form-step.active {
    display: block; /* Zobrazí aktivní krok */
}
.form-navigation {
    position: absolute;
    width: 90%;
    bottom: 90px;
    display: flex;
    justify-content: space-between;
    /*margin-top: 30px;*/
    padding: 15px 5%; /* 90px; Padding pro zarovnání s content-padding */
    border-top: 1px solid #eee;
}
.form-navigation button {
    background:#fab92c;
    color:#1a1a1a;
    padding:10px 15px;
    border: none;
    border-radius:20px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.form-navigation button:hover {
    opacity: 0.9;
}
.form-navigation button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
/* Feather Icons */
/*.feather {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}*/

#nextBtn, #submitBtn {
    margin: 0 0 0 auto;
}

#registrationForm {
    display: flex;
    flex-direction: column;
}

#langBtn {
    position: absolute;
    top: 12px;
    right: 25px;
    display: flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    background: #fab92c;
    text-decoration: none;
    color: #1a1a1a;
}

#langBtn i {
    margin-left: 10px;
}
