import styled from 'styled-components';

export const IntakeFormContainer = styled.div`
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url("/images/intake/BG-01.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: ${props => props.theme.colors.sky100};

  @media screen and (min-height: 950px) {
    & {
      height: calc(100vh - 90px);
    }
  }
`;

export const IntakeFormContainerTopBar = styled.div`
  width: 100%;
  height: 0px;
  background-color: ${props => props.theme.colors.orange20};
`;

export const IntakeFormContainerInfoBar = styled.div`
  width: 100%;
  padding: 20px 0px;
  margin-top: 0px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;

  ${({theme}) => `
    ${theme.media.desktop} {
      padding: 20px 0px;
      margin-top: 0px;
      margin-bottom: 30px
    }
  `}
   .intakeProgressBar_True {
    background-color: #badde6;
    width: clamp(5px, 3%, 20px);
    height:6px;
    margin: 0px 1px;
    transform: skewX(-25deg);
   } 
   .intakeProgressBar_False {
    background-color: #264b64;
    width: clamp(5px, 3%, 20px);
    height:6px;
    margin: 0px 1px;
    transform: skewX(-25deg);
   } 
`;

export const IntakeFormQueryContainer = styled.div`
  background-color: ${props => props.theme.colors.navy100};
  border: 0px solid #bbdde6;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  width: calc(100% - 40px);
  max-width: 750px;
  height: fit-content;
  padding: 0px 30px 30px 30px;
  position: relative;
  display: flex;
  z-index: 5;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow: hidden;
  transform: translateX(0px);
  color:  ${props => props.theme.colors.white};

  ${({theme}) => `
    ${theme.media.desktop} {
      padding: 0px 30px 30px 30px;
    }
  `}

  h2, h3 {
    display: block;
    width: 100%;
  }
  @media screen and (min-height: 950px) {
    & {
      transform: translateY(-100px);
    }
  }
`;

export const StackedQueryContainer = styled(IntakeFormQueryContainer)`
  z-index: 4;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;

  top: 75px;
  width: 92%;

  ${({theme}) => `
    ${theme.media.desktop} {
      transform: rotate(5deg);
      width: 512px;
      top: 130px;
    }
  `}
`;

export const DoubleStackedQueryContainer = styled(IntakeFormQueryContainer)`
  z-index: 3;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;

  top: 85px;
  width: 85%;

  ${({theme}) => `
    ${theme.media.desktop} {
      transform: rotate(10deg);
      width: 512px;
      top: 120px;
    }
  `}
`;

export const ResponseContainer = styled.div<{center: boolean}>`
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: ${props => (props.center ? 'center' : 'center')};
  align-items: center;
  color: ${props => props.theme.colors.navy100};
  text-align: center;
`;

export const QueryButtonContainer = styled.div`
  display: flex;
  justify-content: center;
  margin-top: auto;
`;

export const ExitButtonContainer = styled.div`
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
`;

export const ContinueButtonContainer = styled.div`
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
`;

export const ButtonContainerSmall = styled.div`
  width: 100%;
  display: flex;
  margin-top: auto;
  justify-content: space-between;

  ${({theme}) => `
    ${theme.media.desktop} {
      display: none;
    }
  `}
`;

export const AddressContainer = styled.div`
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
`;

export const UnorderedListContainer = styled.div<{half?: boolean}>`
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: ${props => (props.half ? 'space-between' : 'center')};
`;


interface iListItemContainerProps {
  clickCategory?: string;
  clickAction?: string;
  clickLabel?: string;
  half?: boolean;
}

export const ListItemContainer = styled.a.attrs((props: iListItemContainerProps) => ({
  'data-click-category': props.clickCategory,
  'data-click-action': props.clickAction,
  'data-click-label': props.clickLabel
}))<iListItemContainerProps>`
  width: 100%;
  padding: 16px;
  margin: 10px 10px 16px 10px;
  max-width: 300px;
  max-height: ${props => (props.half ? 'auto' : '91px')};
  width: ${props => (props.half ? '46%' : '300px')};
  background: ${props => props.theme.colors.white};
  border: 1px solid #ccd5db;
  box-sizing: border-box;
  box-shadow: 0px 2px 8px 2px rgba(0, 43, 73, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: ${props => props.theme.colors.navy100};

  &:hover {
    cursor: pointer;
  }
`;

export const LinkIconContainer = styled.div`
  display: flex;
  margin-right: 10px;
  justify-content: flex-start;
  color: ${props => props.theme.colors.navy100};
`;

export const SelectContainer = styled.div`
  width: 100%;
`;
