/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
}

.company-name, .header {
  background: #007bff;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.container, #bookingForm, #invoicePage {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
  margin-top: 0;
  color: #d4e8fd;
  font-size: 1.5rem; /* Smaller */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Nicer font */
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  width: 100%;
  padding: 0.8rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button[type="button"] {
  width: auto;
  padding: 0.5rem 1rem;
  display: inline-block;
}

button:hover {
  background: #0056b3;
}

.back-link, a {
  color: #007bff;
  text-decoration: none;
}

.back-link:hover, a:hover {
  text-decoration: underline;
}

#invoicePage hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 1rem 0;
}

.invoice-btn {
  background: #28a745;
}

.invoice-btn:hover {
  background: #218838;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
}

.telegram-btn {
  background: #0088cc;
  margin-top: 1rem;
}

.telegram-btn:hover {
  background: #0077b3;
}

#chat button {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: #0088cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#chat button:hover {
  background: #0077b3;
}

/* Add */
@media (max-width: 480px) {
  .container, #bookingForm, #invoicePage {
    max-width: 90%;
    margin: 1rem auto;
    padding: 1rem;
  }
  
  input, textarea, button {
    font-size: 0.9rem;
  }
  
  .company-name, .header {
    font-size: 1.2rem;
    padding: 0.8rem;
  }
}

#chatMsg {
  width: 20%; /* Smaller width */
  margin: 0.5rem 0;
}


#invoicePage {
  border: 1px solid #ddd;
  padding: 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

.invoice-header {
  text-align: center;
  margin-bottom: 1rem;
}

.invoice-header h2 {
  font-size: 1.8rem;
  color: #007bff;
}

.invoice-table {
  margin-top: 1rem;
}

.invoice-total {
  text-align: right;
  font-weight: bold;
  margin-top: 1rem;
}

.invoice-btn {
  margin-top: 1rem;
}

/* Text Watermark */
#invoicePage::after {
  content: "Company Name";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 3rem;
  color: #ccc;
  opacity: 0.1;
  z-index: -1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

