@import "../../../styles/varibale.scss";

.enguiryContainer{
  width: 100%;
  float: left;
  background: #fff;
}

.home__enquiry_form__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  max-width: 100%;
  height: 550px;
}

.home__enquiry_form__input {
  padding: 2rem;
  background-color: $primaryColor;
  display: flex;
  flex-direction: column;
  justify-content: center;

  :global(.ant-form-item) {
    margin-bottom: 5px !important;
  }
  :global(.ant-form-item-label > label){
    color: #fff;
  }
}

// New container for the video section
.videoContainer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.videoContent {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradientOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(115, 125, 254, 0.8), rgba(255, 202, 201, 0.5));
}

.playButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2E2151;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
  
  &:hover {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.playIcon {
  height: 32px;
  width: 32px;
  color: white;
}

.videoFooter {
  position: absolute;
  bottom: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
    top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logoText {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.logoPartRed {
  color: #ff4d4f;
}

.logoPartDark {
  color: #2E2151;
}

.tagline {
  color: #f0f0f0;
  font-size: 0.875rem;
  margin: 0;
}

.first_name {
  border-radius: 3px;
  font-size: 15px;
  width: calc(100% - 5px);
  font-size: 12px;
  line-height: 20px;
  padding: 0px 8px;
  border-width: 1px;
  border-style: solid;
  height: 3em;
  background-clip: padding-box;
  transition: border 0.2s, background 0.2s;
  margin-bottom: 0.5rem;
}

.home__enquiry_form__video {
  :global(.ant-image) {
    height: 100%;
    width: 100%;
    
    :global(.ant-image-img) {
      height: 100%;
      object-fit: cover;
    }
  }
}

.home__enquiry_form__input_email {
  border-radius: 3px;
  font-size: 15px;
  width: calc(100% - 5px);
  font-size: 12px;
  line-height: 20px;
  padding: 0px 8px;
  border-width: 1px;
  border-style: solid;
  height: 3em;
  background-clip: padding-box;
  transition: border 0.2s, background 0.2s;
}

.home__enquiry_form__input_message {
  border-radius: 2px;
  font-size: 15px;
  font-size: 12px;
  line-height: 20px;
  width: calc(100% - 5px);
  border-width: 1px;
  padding: 0px 8px;
  border-style: solid;
  border-color: $cultured !important;
  height: 87.9px;
  background-clip: padding-box;
  transition: border 0.2s, background 0.2s;
}

.home__enquiry_form__button {
  margin-top: 1.5em;
  width: 259px;
  height: 59px;
  flex-shrink: 0;
  background-color: #F3465F;
  color: #fff;
}

.home__enquiry_form__input .home__enquiry_form__text_info {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: $primaryColor !important;
  padding: 30px 50px;
}

.home__enquiry_form__title {
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  color: #fff;
  padding-bottom: 20px;
}

.home__enquiry_form__sub_title {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: #fff;
  padding-bottom: 10px;
}

.home__enquiry_form_video_enquiry {
  width: 100%;
  height: 100%;
  border-radius: 1em;
  margin: 1em 0;
}

.home__enquiry_form__container>div>div {
  width: 100%;
  height: 100%;
}

.iconPlayer {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 100px;
  left: 50%;
  top: 50%;
  color: #fff;
  cursor: pointer;
}

.modalStyles {
  height: 100%;
  position: relative;
  z-index: 99;

  :global(.ant-modal-content) {
    padding: 2em 2em;
    background-color: transparent;
  }

  :global(.ant-modal-close) {
    color: #ffffff;
  }
}

.modalStyles>div {
  height: 100%;
}

.typeEnquiryContainer {
  :global(.ant-select-selector) {
    height: 2.8em !important;
  }
}

/* Mobile Styles */
@media (max-width: 767.98px) {
  .home__enquiry_form__container {
    flex-direction: column;
    display: flex;
    width: 100%;
    height: auto; // Remove fixed height on mobile
  }
  
  // This ensures form comes first on mobile
  .formSection {
    order: 1; // Form will be first
  }
  
  // This ensures video comes second on mobile
  .videoSection {
    order: 2; // Video will be second
  }
  
  .home__enquiry_form__input {
    padding: 1.5rem;
    width: 100%;
    min-height: auto;
  }

  .modalStyles>div {
    height: auto;
  }

  .inputContainer {
    width: 100%;
  }

  .first_name {
    width: calc(100% - 5px);
  }
  
  .videoContainer {
    min-height: 300px;
    width: 100%;
  }
  
  .home__enquiry_form__button {
    width: 100%;
    height: 50px;
  }
  
  .home__enquiry_form__title {
    font-size: 24px;
    line-height: 28px;
    padding-bottom: 15px;
  }
  
  .home__enquiry_form__sub_title {
    font-size: 13px;
    line-height: 18px;
    padding-bottom: 15px;
  }
  
  // Adjust video footer for mobile
  .videoFooter {
    top: 75%;
  }
  
  .logoText {
    font-size: 1.5rem;
  }
  
  .tagline {
    font-size: 0.75rem;
  }
  
  .playButton {
    width: 56px;
    height: 56px;
  }
  
  .playIcon {
    height: 28px;
    width: 28px;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .home__enquiry_form__container {
    height: auto;
    min-height: 500px;
  }
  
  .home__enquiry_form__input {
    padding: 1.5rem;
  }
  
  .videoContainer {
    min-height: 450px;
  }
}