/* General Body Styling */
body {
  font-family: Arial, sans-serif;
  background: url('bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Form Container Styling */
.container {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin: auto;
  position: relative;
}

img.logo {
  max-width: 100%;
  margin-bottom: 20px;
}

h1 {
  color: #ffd700;
}

p {
  font-size: 16px;
  line-height: 1.5;
}

/* Input Fields and Button Styling */
input,
button,
select {
  width: calc(100% - 20px);
  margin: 10px auto;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
}

input {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

input::placeholder {
  color: #ddd;
}

button {
  background-color: #ffd700;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #ffc107;
}

button[type="submit"] {
  margin-top: 20px;
  padding: 10px 20px;
  background: #ffd700;
  border: none;
  color: #030000;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
}

button[type="submit"]:hover {
  background: #ffc107;
}

/* Fix for "Dedicate this song" alignment */
.form-option {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: flex-start; /* Align to the left */
  gap: 5px; /* Add spacing between elements */
  margin-bottom: 15px; /* Space between form options */
}

.form-option label {
  display: flex;
  align-items: center; /* Vertically align checkbox with label text */
  gap: 10px; /* Space between checkbox and text */
  line-height: 1.5;
  margin-top: 10px;
}

.form-option label .custom-checkbox {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0; /* Prevent shrinking */
  margin-left : 10px;
}



input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

input[type="checkbox"]:checked + label .custom-checkbox {
  background: #ffd700;
  border-color: #ffd700;
}

.shoutout-fields {
  margin-top: 10px; /* Space between checkbox and input fields */
  display: flex;
  flex-direction: column; /* Stack input fields vertically */
  gap: 10px; /* Add spacing between input boxes */
  width: 100%; /* Ensure full width alignment */
}

.shoutout-fields input,
.shoutout-fields select {
  width: calc(100% - 20px);
  margin: 10px auto;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.shoutout-fields select option {
  background-color: rgba(0, 0, 0, 0.8); /* Dropdown option background */
  color: #fff;
}

.shoutout-fields select:focus,
.shoutout-fields input:focus {
  border-color: #fff;
  outline: none;
}

.custom-occasion-input {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 10px;
}

/* Hyperlink Styling */
label a {
  color: #ffd700;
  text-decoration: none;
}

label a:hover {
  text-decoration: underline;
}

/* Video Search Styles */
#search-results {
  background-color: rgba(0, 0, 0, 0.8);
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
  margin-top: 5px;
  color: white;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  color: white;
  text-align: left;
}

.search-result-item img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 3px;
}

.search-result-item-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

.search-result-item-details span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.search-result-item-details strong {
  font-size: 14px;
  font-weight: bold;
}

.search-result-item-details .duration {
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-option {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sticky Action Buttons */
#action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 5px 10px; /* Proper padding to match original look */
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#action-buttons button {
  background-color: #ffd700; /* Gold for better visibility */
  color: black; /* Text contrast */
  border: none;
  padding: 5px 10px; /* Original size */
  font-size: 14px; /* Original font size */
  border-radius: 20px; /* Rounded button */
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  flex: 1; /* Ensure buttons are evenly spaced */
  margin: 0 5px; /* Spacing between buttons */
  max-width: 90px; /* Limit button width */
}

#action-buttons button:hover {
  background-color: #ffc107; /* Slightly lighter gold */
  color: white;
}

#action-buttons button:disabled {
  background-color: rgba(255, 255, 255, 0.2); /* Dimmed look */
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}
