/*Page4.css - Schedule Meeting Form*/

/* Container for the content area */
.content-area {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-primary);
}

/* Heading Style */
.content-area h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.content-area h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border-radius: 2px;
}

/* Form Section */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--medium-gray);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section h3 {
  color: var(--primary-red);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Label Styling */
.content-area label {
  font-size: 15px;
  font-weight: 600;
  color: var(--darker-gray);
  margin-bottom: 8px;
  display: block;
}

/* Input Fields and Select Styling */
.content-area input[type="text"],
.content-area input[type="email"],
.content-area input[type="date"],
.content-area input[type="time"],
.content-area select,
.content-area textarea {
  width: 100%;
  padding: 14px 18px;
  margin-top: 6px;
  margin-bottom: 20px;
  border: 2px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 15px;
  color: var(--black);
  background-color: var(--off-white);
  transition: var(--transition);
}

.content-area input:focus,
.content-area select:focus,
.content-area textarea:focus {
  border-color: var(--primary-red);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(183, 32, 46, 0.1);
}

.content-area input::placeholder,
.content-area textarea::placeholder {
  color: var(--dark-gray);
}

/* Select Dropdown */
.content-area select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

/* Textarea Specific Styling */
.content-area textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Row Layout for Date/Time */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Agenda and Recipients Section Styling */
.content-area .agenda-item,
.content-area .recipient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}

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

.content-area .agenda-item input,
.content-area .recipient-item input {
  flex: 1;
  margin-bottom: 0;
}

/* Remove Button for Items */
.content-area .remove-btn,
.content-area .FaTimes {
  color: var(--white);
  background-color: #dc3545;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.content-area .remove-btn:hover,
.content-area .FaTimes:hover {
  background-color: #c82333;
  transform: scale(1.1);
}

/* Primary Button Styling */
.content-area button {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.content-area button:hover {
  background: linear-gradient(135deg, var(--dark-red), #6d1219);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 32, 46, 0.35);
}

.content-area button:active {
  transform: translateY(0);
}

/* Secondary/Add Button */
.content-area .add-btn,
.content-area button.secondary {
  background: var(--light-gray);
  color: var(--darker-gray);
  padding: 12px 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.content-area .add-btn:hover,
.content-area button.secondary:hover {
  background: var(--medium-gray);
  color: var(--black);
  box-shadow: none;
}

/* Submit Button Full Width */
.content-area button[type="submit"],
.content-area .submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
}

/* Attachments Input Styling */
.content-area input[type="file"] {
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 20px;
  border: 2px dashed var(--medium-gray);
  border-radius: var(--border-radius);
  background-color: var(--off-white);
  cursor: pointer;
  transition: var(--transition);
}

.content-area input[type="file"]:hover {
  border-color: var(--primary-red);
  background-color: rgba(183, 32, 46, 0.05);
}

/* Button Group */
.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button-group button {
  flex: 1;
  min-width: 150px;
}

/* Success/Error Messages */
.message {
  padding: 14px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-weight: 500;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Responsiveness */
@media (max-width: 768px) {
  .content-area {
    margin: 20px;
    padding: 30px 25px;
  }

  .content-area h1 {
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .content-area input,
  .content-area select,
  .content-area textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .content-area button {
    font-size: 14px;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .content-area {
    margin: 15px;
    padding: 25px 20px;
  }

  .content-area .agenda-item,
  .content-area .recipient-item {
    flex-direction: column;
    align-items: stretch;
  }

  .content-area .remove-btn {
    width: 100%;
    border-radius: var(--border-radius);
  }

  .button-group {
    flex-direction: column;
  }

  .button-group button {
    width: 100%;
  }
}
  