/* Základní nastavení */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  background-image: url('pozadi_kontakt.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #E0E0E0;
  line-height: 1.6;
}

/* Hlavička */
header {
  background-color: rgba(30, 30, 30, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
  padding: 20px 40px;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #E0E0E0;
  font-size: 2em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: #E0E0E0;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #4d9fff;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: rgba(30,30,30,0.95);
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 5px;
  margin-top: 5px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: visibility 0s linear 0.2s, opacity 0.2s linear;
  padding: 5px 0;
}

.dropdown-content a {
  color: #E0E0E0;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.dropdown-content a:hover {
  color: #4d9fff;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

/* Hlavní obsah */
main {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Alert hlášky */
.alert-container {
  margin-bottom: 20px;
}

.alert {
  padding: 15px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* Kontakt box */
.contact-box {
  background: linear-gradient(145deg, rgba(60,60,60,0.95), rgba(40,40,40,0.95));
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Kontaktní informace a karty */
.contact-info {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-card {
  flex: 1;
  background: linear-gradient(145deg, rgba(70,70,70,0.95), rgba(50,50,50,0.95));
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card h2 {
  color: #4d9fff;
  margin-bottom: 20px;
  font-size: 1.5em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contact-card p {
  margin-bottom: 10px;
}

.contact-card span {
  color: #4d9fff;
  font-weight: bold;
}

/* Formulář */
form {
  background: linear-gradient(145deg, rgba(70,70,70,0.95), rgba(50,50,50,0.95));
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #E0E0E0;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(40,40,40,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: #E0E0E0;
  font-size: 16px;
  transition: all 0.3s ease;
}

textarea {
  height: 150px;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #4d9fff;
  background-color: rgba(50,50,50,0.9);
}

/* Checkbox GDPR */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: normal;
}

.checkbox-group a {
  color: #4d9fff;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Tlačítko */
button {
  background: linear-gradient(145deg, #4d9fff, #3a7acc);
  color: #E0E0E0;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(77,159,255,0.3);
}

/* Patička */
footer {
  background-color: rgba(30,30,30,0.95);
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.social-links {
  margin-bottom: 10px;
}

.social-links a {
  font-size: 24px;
  color: #E0E0E0;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #4d9fff;
}

/* Tlačítko pro návrat nahoru */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4d9fff;
  color: white;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 999;
}

#back-to-top:hover {
  background: #3a7acc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77,159,255,0.4);
}

#back-to-top.show {
  display: flex;
}

/* Responzivní design */
@media screen and (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 20px;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  .contact-info {
    flex-direction: column;
  }
  .contact-box {
    padding: 20px;
  }
}
