* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #c8a2c8 0%, #1e3a8a 70%, #312e81 100%);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.form-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(30, 58, 138, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  border: 3px solid rgba(200, 162, 200, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 15px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c8a2c8 0%, #1e3a8a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
  animation: pulse 2s infinite;
}

.logo-img {
  border-radius: 50%;
  width: 135px;
  height: 135px;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.clinic-name {
  color: #1e3a8a;
  font-size: 24px;
  font-weight: 700;
  padding-top: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.subtitle {
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 28px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 15px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

textarea {
  resize: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c8a2c8;
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 162, 200, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.rating-section {
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
  padding: 25px;
  border-radius: 20px;
  margin: 25px 0;
  border: 2px solid #e5e7eb;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rating-section h3 {
  color: #1e3a8a;
  margin-bottom: 20px;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.rating-item {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.rating-item:hover {
  transform: translateY(-3px);
}

.rating-item label {
  font-size: 14px;
  margin-bottom: 10px;
  color: #374151;
  text-transform: none;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star {
  font-size: 28px;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.star:hover {
  color: #fbbf24;
  transform: scale(1.2) rotate(5deg);
}

.star.active {
  color: #f59e0b;
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.recommendation {
  text-align: center;
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(145deg, #fef3f2 0%, #ffffff 100%);
  border-radius: 20px;
  border: 2px solid #fecaca;
}

.recommendation label {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1e3a8a;
}

.recommendation-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.recommendation-btn {
  padding: 15px 30px;
  border: 3px solid #e5e7eb;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recommendation-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recommendation-btn.selected {
  background: linear-gradient(135deg, #c8a2c8 0%, #1e3a8a 100%);
  color: white;
  border-color: #1e3a8a;
  transform: translateY(-3px) scale(1.05);
}

.submit-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #c8a2c8 0%, #1e3a8a 70%, #312e81 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.4);
}

.hidden {
  display: none;
}

.thank-you {
  text-align: center;
  padding: 40px;
  color: #1e3a8a;
}

.thank-you h2 {
  color: #059669;
  margin-bottom: 20px;
  font-size: 36px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.google-review-section {
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 100%);
  padding: 30px;
  border-radius: 20px;
  margin-top: 25px;
  text-align: center;
  border: 3px dashed #c8a2c8;
  box-shadow: 0 10px 30px rgba(200, 162, 200, 0.2);
}

.review-preview {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e5e7eb;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  font-style: italic;
  padding: 15px;
  background: rgba(200, 162, 200, 0.05);
  border-left: 4px solid #c8a2c8;
  border-radius: 8px;
  margin-bottom: 15px;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.copy-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.copy-success {
  color: #10b981;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 16px;
}

.copy-success.show {
  opacity: 1;
}

.google-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.google-btn {
  background: linear-gradient(135deg, #4285F4 0%, #1a73e8 100%);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.google-btn:hover {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
}

.manual-btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.manual-btn:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(107, 114, 128, 0.4);
}

.chetumal-accent {
  color: #c8a2c8;
  font-weight: 600;
}


.form-container {
  padding: 25px;
  margin: 10px;
}

.logo-section {
  flex-direction: column;
  gap: 10px;
}


.rating-grid {
  grid-template-columns: 1fr;
  gap: 15px;
}

.recommendation-options {
  flex-direction: column;
  align-items: center;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-tooth {
  position: absolute;
  font-size: 20px;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* CSS para el grupo de fecha */
.date-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-input-group input {
  flex: 1;
}

.today-btn {
  background: linear-gradient(135deg, #c8a2c8 0%, #1e3a8a 100%);
  color: white;
  border: none;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(200, 162, 200, 0.3);
}

.today-btn:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

@media (max-width: 768px) {

  .clinic-name {
    font-size: 20px;
  }

  .google-actions {
    flex-direction: column;
    align-items: center;
  }

  .google-btn,
  .manual-btn {
    min-width: 100%;
    margin: 5px 0;
  }

  .review-actions {
    flex-direction: column;
    gap: 10px;
  }

  .date-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .today-btn {
    margin-top: 8px;
  }

  .form-container {
    margin: 5px;
    padding: 20px;
    max-width: 95vw;
  }

  .form-group {
    margin-bottom: 20px;
  }
}