/* Create Event Section */
.create-event-section {
  padding: 55px 0;
  background: #f5f5f5;
  padding-bottom: 123px;
}

.create-event-section .page-title {
  font-weight: 700;
  font-size: 27px;
  line-height: 30px;
  margin-bottom: 45px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 530px;
  gap: 20px;
}

/* Form Sections */
.form-section {
  margin-bottom: 20px;
}

.form-column-left {
  display: flex;
  flex-direction: column;
}

.form-column-right {
  background: #fff;
  padding: 40px 60px;
  border-radius: 8px;
}

/* Cover Photo Upload */
.cover-upload-area {
  position: relative;
  width: 100%;
  height: 250px;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%239F9F9FFF' stroke-width='2' stroke-dasharray='8%2c 6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #fff;
}

.cover-upload-area:hover {
  border-color: #a22a7d;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%23A22A7DFF' stroke-width='2' stroke-dasharray='8%2c 6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
  border-radius: 8px;
}

.cover-upload-placeholder {
  text-align: center;
  pointer-events: none;
}

.upload-title {
  font-weight: 600;
  font-size: 16px;
  vertical-align: middle;
  margin-top: 10px;
  margin-bottom: 5px;
}

.upload-subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: #6f6f73;
}

.cover-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-cover {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.remove-cover:hover {
  background: none;
}

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.photo-upload-box {
  aspect-ratio: 1.5 / 1;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%239F9F9FFF' stroke-width='2' stroke-dasharray='8%2c 6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-upload-box:hover {
  border-color: #a22a7d;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%23A22A7DFF' stroke-width='2' stroke-dasharray='8%2c 6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
  border-radius: 8px;
}
select:required:invalid {
  color: gray;
}

.photo-upload-box .icon-photo {
  width: 32px;
  height: auto;
}
.white-bg {
  background-color: #ffffff !important ;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1.5 / 1;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-placeholder {
  aspect-ratio: 1.5 / 1;
  background: #ebebeb;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-gallery-item {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(196, 79, 160, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.remove-gallery-item:hover {
  background: #a22a7d;
}

/* Form Elements */
.form-label {
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  vertical-align: middle;
  margin-bottom: 10px;
  display: block;
}

.form-group {
  margin-bottom: 25px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #eeeeee;
  border-radius: 7px;
  background-color: #f8f8f8;
  font-weight: 400;
  font-size: 14px;
  font-family: "Nunito", sans-serif;
}
.form-input {
  height: 46px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #a22a7d;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
  font-weight: 400;
  font-size: 14px;
  font-family: "Nunito", sans-serif;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.create-event-section .form-textarea {
  resize: vertical;
  min-height: 400px;
  background-color: #fff;
}

/* Date Time Group */
.date-time-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.date-time-group .input-with-icon:last-child .form-input {
  border-radius: 0px 8px 8px 0px;
}
.date-time-group .input-with-icon:first-child .form-input {
  border-radius: 8px 0px 0px 8px;
}

.date-time-group input[type="date"] {
  background-image: none;
}

.date-time-group .input-with-icon .input-icon img {
  width: 20px;
  height: 20px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-outline {
  flex: 1;
  padding: 13px 3px;
  background: transparent;
  font-weight: 800;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 1px;
  vertical-align: middle;
  text-transform: uppercase;
  color: #141414;
  width: 50%;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  outline: 0;
  border: 1px solid #141414;
  font-family: "Nunito", sans-serif;
}

.btn-outline:hover {
  border-color: #a22a7d;
  color: #fff;
  background-color: #a22a7d;
  outline: 0;
}

.btn-primary-form {
  flex: 1;
  padding: 13px 3px;
  background: #a22a7d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 1px;
  vertical-align: middle;
  text-transform: uppercase;
  width: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Nunito", sans-serif;
}

.btn-primary-form:hover {
  background-color: #2c478c;
}

/* Time Picker Modal */
.time-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.time-picker-modal.active {
  display: flex;
}

.time-picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.time-picker-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 8px;
  padding: 20px 40px;
  width: 220px;

  animation: timePickerSlideIn 0.3s ease;
}

@keyframes timePickerSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.time-picker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #141414;
}

.time-picker-body {
  margin-bottom: 20px;
}

.time-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.time-input {
  width: 60px;
  height: 46px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #141414;
  font-family: "Nunito", sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
  -moz-appearance: textfield;
}

.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.time-input:focus {
  border-color: #a22a7d;
}

.time-separator {
  font-size: 28px;
  font-weight: 600;
  color: #141414;
}

.time-labels {
  display: flex;
  justify-content: space-around;
  padding: 0 10px;
}

.time-label {
  font-size: 13px;
  color: #999;
}

.btn-save-time {
  width: 100%;
  padding: 14px;
  background: #a22a7d;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-save-time:hover {
  background-color: #2c478c;
}

.form-devider {
  width: 100%;
  height: 1px;
  background-color: #e9e9e9;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .photo-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .create-event-section {
    padding: 30px 0;
  }

  .create-event-section .page-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .form-section,
  .form-column-right {
  }

  .cover-upload-area {
    height: 220px;
  }

  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .date-time-group {
    grid-template-columns: 1fr 1fr;
  }

  .form-column-right {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #eeeeee;
    border-radius: 7px;
    background-color: #f8f8f8;
    font-weight: 400;
    font-size: 12px;
    font-family: "Nunito", sans-serif;
  }

  .form-devider {
    width: 100%;
    height: 1px;
    background-color: #e9e9e9;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .form-group {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-outline,
  .btn-primary-form {
    width: 100%;
  }
}
