/* Estilos para o site RKR - Regional de Kart Rental */

:root {
  --primary-color: #e10600;
  --primary-price: #fff;
  --secondary-color: #15151e;
  --accent-color: #00ff5e;
  --text-color: #ffffff;
  --gray-color: #38383f;
  --light-gray: #fff;
  --error-color: #e10600;
  --success-color: #27f4d2;
  --warning-color: #ffb800;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background-color: var(--secondary-color);
  background-image: url('../img/smoke-bg.png');
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Cursor personalizado com bandeira do RS */
body {
  cursor: url('../img/rs-flag-cursor.png'), auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #c00500;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--gray-color);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #45454f;
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(21, 21, 30, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  transition: all 0.3s ease;
}

.site-header.scrolled .logo img {
}

.main-nav {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

/* Menu Mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--secondary-color);
  z-index: 2000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

.mobile-logo img {
  max-height: 50px;
}

.mobile-nav ul {
  list-style: none;
  padding: 20px;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--primary-color);
}

.mobile-contact {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-contact a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-contact a i {
  color: var(--primary-color);
}

.mobile-social {
  padding: 20px;
  display: flex;
  gap: 15px;
}

.mobile-social a {
  width: 40px;
  height: 40px;
  background-color: var(--gray-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.mobile-social a:hover {
  background-color: var(--primary-color);
}

body.menu-open {
  overflow: hidden;
}

/* Main Content */
.main-section {
  padding: 120px 0 60px;
}

/* Formulário de Inscrição */
.form-container {
  background-color: rgba(56, 56, 63, 0.8);
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-title {
  color: var(--accent-color);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-description {
  margin-bottom: 20px;
  color: #ffffff;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.form-group {
  flex: 1;
  padding: 0 10px;
  margin-bottom: 20px;
  min-width: 250px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-color);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Checkbox personalizado */
.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gray-color);
  border-radius: 5px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.2);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Categorias */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.category-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-item .checkbox-container {
  padding: 0;
  width: 100%;
  height: 100%;
}

.category-info {
  padding: 20px;
  padding-left: 50px;
}

.category-info h3 {
  margin: 0 0 10px;
  color: var(--accent-color);
  font-size: 18px;
}

.category-info p {
  margin-bottom: 15px;
  color: #ffffff;
  font-size: 14px;
  min-height: 40px;
}

.category-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-price);
}

.category-item .checkmark {
  top: 20px;
  left: 20px;
}

/* Valor Total */
.total-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
}

.total-value h3 {
  font-size: 20px;
  color: var(--accent-color);
}

.total-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-price);
}

/* Termos e Condições */
.terms-link {
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
}

.terms-link:hover {
  color: var(--primary-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: var(--secondary-color);
  margin: 5% auto;
  padding: 0;
  width: 80%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  animation: modalopen 0.3s;
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  padding: 20px;
  background-color: var(--gray-color);
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: var(--accent-color);
  margin: 0;
}

.close {
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h3 {
  color: var(--accent-color);
  margin: 20px 0 10px;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.modal-body li {
  margin-bottom: 5px;
}

.modal-footer {
  padding: 20px;
  background-color: var(--gray-color);
  border-radius: 0 0 10px 10px;
  text-align: right;
}

/* Botões de Ação */
.form-actions {
  text-align: center;
  margin-top: 30px;
}

/* Alertas */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: 600;
}

.alert-success {
  background-color: rgba(39, 244, 210, 0.2);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.alert-error {
  background-color: rgba(225, 6, 0, 0.2);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

.alert-warning {
  background-color: rgba(255, 184, 0, 0.2);
  border: 1px solid var(--warning-color);
  color: var(--warning-color);
}

/* Rodapé */
.site-footer {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 60px 0 30px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-logo p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact li i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.developer i {
  color: var(--primary-color);
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
}

/* Animação de fumaça */
.smoke-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.smoke {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('../img/smoke.png') repeat;
  opacity: 0.05;
  animation: smoke-drift 60s linear infinite;
}

.smoke:nth-child(2) {
  background-position: 50% 50%;
  opacity: 0.03;
  animation-duration: 120s;
  animation-delay: -10s;
}

.smoke:nth-child(3) {
  background-position: 70% 70%;
  opacity: 0.02;
  animation-duration: 180s;
  animation-delay: -20s;
}

/* Responsividade */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .form-container {
    padding: 30px 20px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-section {
    padding: 100px 0 40px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-group {
    width: 100%;
  }
  
  .total-value {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

@media (max-width: 480px) {
  .logo img {
  }
  
  .site-header.scrolled .logo img {
  }
  
  .mobile-menu {
    width: 100%;
    max-width: none;
  }
  
  .form-title {
    font-size: 24px;
  }
  
  .form-subtitle {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .total-price {
    font-size: 24px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    left: 20px;
  }
}

@keyframes smoke-drift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}