/* Unique Styles for Contact Page */

/* Ensure box-sizing is set globally */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure body and html take full height */
body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000; /* Black background */
}

/* Main Content Padding to Prevent Overlap */
main {
  padding-top: 80px; /* Height of the header */
  padding-bottom: 80px; /* Height of the footer */
}

/* Contact Section */
.ct-contact-section {
  padding: 150px 20px;
  background: url("./images/contact.jpg") no-repeat center center;
  background-size: cover;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
  position: relative;
  min-height: calc(
    100vh - 160px
  ); /* 100% viewport height minus header and footer */
}

/* Semi-Transparent Overlay for Better Readability */
.ct-contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6); /* Adjust opacity as needed */
  z-index: 1;
}

/* Section Title */
.ct-section-title {
  font-size: 48px;
  margin-bottom: 40px;
  color: #000300;
  position: relative; /* To appear above the overlay */
  z-index: 2;
}

/* Contact Form */
.ct-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: ct-slideUp 1s ease-in-out;
  position: relative;
  z-index: 2; /* To appear above the overlay */
}

/* Form Groups */
.ct-form-group {
  margin-bottom: 20px;
}

.ct-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #000300;
}

.ct-required {
  color: red;
  margin-left: 5px;
}

/* Form Inputs */
.ct-form-group input[type="text"],
.ct-form-group input[type="tel"],
.ct-form-group input[type="email"],
.ct-form-group input[type="url"],
.ct-form-group select,
.ct-form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.ct-form-group input[type="text"]:focus,
.ct-form-group input[type="tel"]:focus,
.ct-form-group input[type="email"]:focus,
.ct-form-group input[type="url"]:focus,
.ct-form-group select:focus,
.ct-form-group textarea:focus {
  border-color: #64dafe;
  outline: none;
}

.ct-form-group textarea {
  resize: vertical;
}

/* Checkbox Group */
.ct-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ct-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-checkbox-item label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  cursor: pointer;
}

.ct-social-input {
  margin-left: 10px;
  flex-grow: 1;
}

.hidden {
  display: none;
}

.ct-followers {
  margin-left: 10px;
  font-size: 14px;
  color: #555;
}

/* Submit Button */
.ct-submit-button {
  width: 100%;
  padding: 15px;
  background-color: #64dafe;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ct-submit-button:hover {
  background-color: #4bbbe3;
  transform: scale(1.02);
}

/* Error Messages */
.ct-error {
  color: red;
  font-size: 14px;
  display: none;
}

/* Thank You Message */
.ct-thank-you {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Thank You Message Styles */
.ct-thank-you h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #000300;
}

.ct-thank-you p {
  font-size: 18px;
  color: #555;
}

/* Animations */
@keyframes ct-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ct-slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .ct-contact-section {
    padding: 60px 15px;
  }

  .ct-section-title {
    font-size: 32px;
  }

  .ct-form {
    padding: 20px;
  }

  .ct-form-group input[type="text"],
  .ct-form-group input[type="tel"],
  .ct-form-group input[type="email"],
  .ct-form-group input[type="url"],
  .ct-form-group select,
  .ct-form-group textarea {
    font-size: 14px;
  }

  .ct-submit-button {
    font-size: 16px;
    padding: 12px;
  }

  .ct-followers {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
}

.ct-contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.ct-form {
  flex: 1 1 300px; /* adjust as needed */
}

.ct-meeting-box {
  flex: 1 1 300px; /* adjust as needed */
  border: 1px solid #ddd; /* optional styling */
  padding: 1rem;
  background: #f9f9f9; /* optional styling */
}

.ct-meeting-box {
  position: relative;
  z-index: 2;
  /* other styles here */
}
