@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;900;1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap');

@media only screen and (max-width: 700px) {

  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    font-family: 'Nunito', Arial, sans-serif;
    background: #f4f8fb;;
    color: #1a2233;
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }

  .marketing-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 15px 0 15px !important;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    gap: 0;
    min-height: unset;
    box-sizing: border-box;
  }

  #navbar {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .marketing-side {
    order: 0;
  }
  .form-side {
    order: 1;
  }
  .marketing-gap {
    order: 2;
  }

  .form-side,
  .marketing-side {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    padding: 0;
    text-align: left;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .form-side {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0 !important;
    padding-bottom: 8px;
    margin-top: 0 !important;
  }

  .marketing-side {
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }

  .marketing-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.1em;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    margin-top: 18px;
    text-align: left;
    flex-wrap: wrap;
    justify-content: flex-start;
    letter-spacing: -0.01em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
  }

  .title-blue {
    color: #1664f6;
    font-weight: 1000;
    letter-spacing: -0.01em;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.8em;
    text-shadow: 0 2px 14px #1664f62a;
    display: inline-block;
  }

  .title-black {
    color: #181a1c;
    font-weight: 1000;
    letter-spacing: -0.01em;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.8em;
    display: inline-block;
  }

  .marketing-subtitle {
    font-size: 1.13em;
    margin-bottom: 20px;
    text-align: left;
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 700;
    color: #283040;
    display: none !important;
  }

  .marketing-benefits {
    display: none !important;
  }

  .marketing-description {
    font-size: 1.01em;
    margin-top: 10px;
    text-align: left;
    color: #393f4a;
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 600;
    background: none;
    letter-spacing: 0.01em;
    line-height: 1.6;
  }

  #searchForm {
    background: #fff;
    border-radius: 2em;
    border: 2px solid #e7f0fd;
    box-shadow: 0 4px 16px #1664f61a;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px auto !important;
    padding: 10px 10px 18px 10px !important;
    box-sizing: border-box;
    position: relative;
    min-height: 0;
    transition: box-shadow 0.22s;
  }

  .form-fields-wrapper {
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
  }

  .toggle-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f1fe;
    border-radius: 2em;
    padding: 6px 6px;
    box-shadow: 0 2px 12px #1664f61a;
    width: max-content;
    margin: 0 auto 18px auto;
    gap: 0;
  }

  .toggle-group input[type="radio"] {
    display: none;
  }

  .toggle-group label {
    font-size: 1em;
    padding: 10px 20px;
    font-weight: 600;
    color: #1664f6;
    font-family: 'Nunito', Arial, sans-serif;
    border-radius: 2em;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    min-width: 0;
    text-align: center;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: color 0.18s;
  }

  .toggle-group .toggle-bg {
    position: absolute;
    z-index: 1;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    background: linear-gradient(90deg,#1664f6 76%,#2c95ff 100%);
    border-radius: 2em;
    box-shadow: 0 4px 16px #1664f62a;
    transition: left 0.32s cubic-bezier(.4,1.4,.3,1), width 0.32s cubic-bezier(.4,1.3,.3,1);
    will-change: left, width;
  }

  .toggle-group label.selected,
  .toggle-group input[type="radio"]:checked + label {
    color: #fff;
  }

  .form-field,
  .input-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    position: relative !important;
    height: 76px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: auto !important;
    padding: 0 !important;
    background: none !important;
    overflow: visible !important;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
  }

  .form-field,
  .input-container {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .form-field:last-child,
  .input-container:last-child {
    margin-bottom: 0 !important;
  }

  .form-field label,
  .input-container label {
    position: absolute !important;
    top: 25px !important;
    left: 22px !important;
    font-size: 1em !important;
    z-index: 12;
    background: #fff !important;
    padding: 0 2px !important;
    pointer-events: auto !important;
    opacity: 0.92;
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 500;
    transition: opacity 0.15s, color 0.15s;
    letter-spacing: 0.01em;
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    display: flex;
    align-items: center;
  }

  /* Skryj input pro datum, zobraz pretty-date jako input */
  .form-field input[type="datetime-local"],
  .form-field input[type="date"] {
    opacity: 0 !important;
    position: absolute !important;
    left: 0; 
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: all !important;
    margin: 0; 
    padding: 0;
    border: none; 
    outline: none;
    background: transparent;
  }

  .form-field .pretty-date {
    display: flex !important;
    align-items: center;
    font-size: 1.12em;
    color: #184075;
    font-weight: 600;
    background: #fff;
    border: 2.2px solid #e0e8f6;
    border-radius: 999em;
    padding: 27px 18px 6px 18px;
    min-height: 60px;
    height: 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    user-select: none;
    pointer-events: auto !important;
    cursor: pointer;
    margin: 0;
    width: 100%;
  }

  .form-field .pretty-date span {
    pointer-events: none !important;
    user-select: none !important;
    width: 100%;
  }

  .form-field .calendar-icon {
    position: absolute;
    right: 0px;
    left: 40%;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none !important;
  }

  .form-field .calendar-icon::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 7l4 4 4-4" stroke="%231664f6" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    margin: 0;
  }

  .input-container input[type="text"] {
    height: 60px;
    padding: 27px 18px 6px 18px !important;
    border: 2.2px solid #e0e8f6;
    background: #fff;
    outline: none;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 1.12em;
    font-weight: 600;
    color: #184075;
    box-sizing: border-box;
    margin-bottom: 0;
    border-radius: 999em;
    box-shadow: none;
    transition: color .16s, border-color .18s, box-shadow .18s;
    position: relative;
    width: 100%;
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .input-container label {
    position: absolute !important;
    top: 25px !important;
    left: 22px !important;
    font-size: 1em !important;
    z-index: 12;
    background: #fff !important;
    padding: 0 2px !important;
    pointer-events: auto !important;
    opacity: 0.92;
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 500;
    transition: opacity 0.15s, color 0.15s;
    letter-spacing: 0.01em;
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    display: flex;
    align-items: center;
  }

  .input-container input[type="text"]:focus {
    color: #1664f6;
    border-color: #1664f6;
    box-shadow: 0 0 0 2px #1664f610;
  }

  /* OPRAVA: Select (měsíčně) bude jako input - stejné styly jako input, bez defaultního oranžového selectu */
  .form-field select,
  .input-container select {
    height: 60px;
    padding: 27px 18px 6px 18px !important;
    border: 2.2px solid #e0e8f6;
    background: #fff;
    outline: none;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 1.12em;
    font-weight: 600;
    color: #184075;
    box-sizing: border-box;
    border-radius: 999em;
    box-shadow: none;
    transition: color .16s, border-color .18s, box-shadow .18s;
    position: relative;
    width: 100%;
    display: block;
    margin-left: 0;
    margin-right: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
  }
  .form-field select:focus,
  .input-container select:focus {
    color: #1664f6;
    border-color: #1664f6;
    box-shadow: 0 0 0 2px #1664f610;
  }
  .form-field select option,
  .input-container select option {
    color: #184075;
    font-weight: 600;
    font-family: 'Nunito', Arial, sans-serif;
  }
  .form-field select,
  .input-container select {
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 7l4 4 4-4" stroke="%231664f6" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px 18px;
  }

  /* CUSTOM SELECT pro mobilní vzhled */
  .custom-select-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
  }

  .custom-select-fake {
    position: relative;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 60px;
    line-height: 60px;
    padding: 27px 18px 6px 18px;
    border: 2.2px solid #e0e8f6;
    border-radius: 999em;
    background: #fff;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: 1.12em;
    font-weight: 600;
    color: #184075;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10;
    transition: border-color 0.18s;
  }

  .custom-select-fake:focus,
  .custom-select-fake:active {
    border-color: #1664f6;
    box-shadow: 0 0 0 2px #1664f610;
    outline: none;
  }

  .custom-select-dropdown {
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: #fff;
    border: 2.2px solid #e0e8f6;
    border-radius: 16px;
    box-shadow: 0 8px 32px #1664f62e, 0 1.5px 0 #e0e8f6;
    z-index: 1001;
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 600;
    display: none;
  }

  .custom-select-dropdown > div {
    padding: 18px 28px 18px 22px;
    cursor: pointer;
    font-size: 1.12em;
    color: #184075;
    transition: background 0.13s, color 0.13s, padding 0.13s;
  }

  .custom-select-dropdown > div:hover,
  .custom-select-dropdown > div:focus {
    background: #e3f0ff;
    color: #1664f6;
    padding-left: 34px;
  }

  #months-fields .form-field {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  #months-fields .form-field:first-child {
    margin-top: 0;
  }
  #months-fields .form-field:last-child {
    margin-bottom: 0;
  }

  #suggestions {
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 16px 16px;
    box-sizing: border-box;
    margin-left: 0;
    background: #fff;
    z-index: 1000;
    position: absolute;
    max-height: 220px;
    overflow-y: auto;
    font-family: 'Nunito', Arial, sans-serif;
    box-shadow: 0 8px 32px #1664f62e, 0 1.5px 0 #e0e8f6;
    animation: floatin 0.5s cubic-bezier(.38,1.1,.12,.98);
  }

  #suggestions div {
    padding: 13px 28px;
    border-bottom: 1px solid #f6f6fa;
    cursor: pointer;
    font-size: 1.12em;
    font-weight: 600;
    transition: background 0.13s, color 0.13s, padding 0.13s;
    border-radius: 0;
    background: none;
    font-family: 'Nunito', Arial, sans-serif;
  }

  #suggestions div:last-child {
    border-bottom: none;
  }

  #suggestions div:hover,
  #suggestions div:focus {
    background: #e3f0ff;
    color: #1664f6;
    padding-left: 34px;
  }

  /* MODAL LOCATION SUGGESTIONS - STEJNÝ VZHLED JAKO NA DESKTOPU */
  #modal-location-suggestions {
    background: #fff;
    border-radius: 0 0 16px 16px;
    margin-top: -8px;
    padding-bottom: 4px;
    z-index: 1001;
    position: relative;
    font-family: 'Nunito', Arial, sans-serif;
    max-width: 98vw;
  }
  #modal-location-suggestions div {
    padding: 13px 28px;
    border-bottom: 1px solid #f6f6fa;
    cursor: pointer;
    font-size: 1.12em;
    font-weight: 600;
    transition: background 0.13s, color 0.13s, padding 0.13s;
    border-radius: 0;
    background: none;
    font-family: 'Nunito', Arial, sans-serif;
  }
  #modal-location-suggestions div:last-child {
    border-bottom: none;
  }
  #modal-location-suggestions div:hover,
  #modal-location-suggestions div:focus {
    background: #e3f0ff;
    color: #1664f6;
    padding-left: 34px;
  }
  #modal-location-suggestions:empty {
    display: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  #searchForm button[type="submit"],
  #searchForm button {
    margin-top: 18px;
    padding: 15px 0;
    width: 100%;
    background: #1664f6;
    color: #fff;
    font-size: 1.18em;
    border: none;
    border-radius: 999em;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 4px 18px #1664f62b;
    letter-spacing: 0.01em;
    font-family: 'Nunito', Arial, sans-serif;
    outline: none;
    position: relative;
    overflow: hidden;
    display: block;
  }

  #searchForm button[type="submit"]:hover,
  #searchForm button:hover {
    background: #111;
    color: #fff;
    box-shadow: 0 8px 32px #1664f64a;
  }

  #searchForm button[type="submit"]:active,
  #searchForm button:active {
    background: #1664f6;
    color: #fff;
    box-shadow: 0 2px 6px #1664f63a;
  }

  .formatted-date {
    display: none !important;
  }

  .form-separator {
    width: 100%;
    height: 0;
    border: none;
    border-bottom: 2px solid #e0e8f6;
    margin: 18px 0 12px 0;
    background: none;
  }

  @keyframes floatin {
    0% { transform: translateY(20px) scale(0.97); opacity: 0; }
    100% { transform: none; opacity: 1;}
  }

  .modal-picker {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 40, 80, 0.28);
    backdrop-filter: blur(2px);
  }
  .modal-picker[style*="display: flex"] {
    display: flex !important;
  }
  .modal-picker-content {
    background: #fff;
    border-radius: 2em;
    padding: 28px 20px;
    box-shadow: 0 8px 32px #1664f62e, 0 1.5px 0 #e0e8f6;
    min-width: 280px;
    max-width: 98vw;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 18px;
    min-height: 44px;
  }
  .modal-picker-close {
    color: #1664f6;
    cursor: pointer;
    font-weight: 700;
    opacity: 0.85;
    transition: color 0.13s;
  }
  .modal-picker-close:hover {
    color: #0d3eb1;
    opacity: 1;
  }
  .calendar-modal-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 1.12em;
    font-weight: 600;
    padding: 12px 0 12px 0;
    margin-bottom: 6px;
    user-select: none;
  }
  .calendar-modal-month-nav span {
    cursor: pointer;
    user-select: none;
    padding: 0 8px;
    transition: color 0.14s;
  }
  .calendar-modal-month-nav span:hover {
    color: #1664f6;
  }
  .calendar-modal-days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    color: #9199ac;
    font-size: 0.92em;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .calendar-modal-date-selected {
    font-size: 1.02em;
    font-weight: 700;
    color: #1664f6;
    margin: 8px 0 8px 0;
    text-align: center;
    letter-spacing: 0.01em;
    min-height: 28px;
  }
  .calendar-modal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
    min-width: 224px;
  }
  .calendar-modal-grid-day {
    background: #e8f1fe;
    border-radius: 999em;
    font-size: 1.1em;
    text-align: center;
    padding: 8px 0;
    min-width: 32px;
    min-height: 32px;
    cursor: pointer;
    transition: background 0.13s, color 0.13s;
    font-weight: 700;
    color: #1664f6;
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
    margin: 0;
    box-sizing: border-box;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .calendar-modal-grid-day.today {
    background: #d1e5fe;
    color: #1664f6;
    box-shadow: 0 0 0 2px #1664f6a5;
    font-weight: 900;
  }
  .calendar-modal-grid-day.selected {
    background: #1664f6;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 4px 14px #1664f64a;
  }
  .calendar-modal-grid-day:hover {
    background: #2c95ff;
    color: #fff;
  }
  .calendar-modal-time-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
    gap: 10px;
    width: 100%;
    max-width: 360px;
  }
  .calendar-modal-time-select {
    width: 100%;
    font-size: 1.12em;
    padding: 10px 16px;
    border-radius: 999em;
    border: 2px solid #e0e8f6;
    background: #f6fafd;
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 700;
    color: #184075;
    outline: none;
    margin-bottom: 2px;
  }
  .calendar-modal-btn-done {
    padding: 13px 0;
    border: none;
    border-radius: 999em;
    background: #1664f6;
    color: #fff;
    font-weight: 800;
    font-size: 1.16em;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    box-shadow: 0 4px 18px #1664f62b;
    transition: background 0.17s, color 0.17s;
    letter-spacing: 0.01em;
    font-family: 'Nunito', Arial, sans-serif;
    outline: none;
    position: relative;
    overflow: hidden;
    display: block;
  }
  .calendar-modal-btn-done:hover {
    background: #0d3eb1;
    color: #fff;
  }
  .modal-picker-datetime {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 10px;
    width: 100%;
  }
  .modal-pretty {
    font-size: 1.08em;
    color: #1664f6;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
    letter-spacing: 0.01em;
  }
  .modal-picker-btns {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
    width: 100%;
  }
  .modal-picker-btn {
    padding: 10px 22px;
    border-radius: 999em;
    border: none;
    background: #1664f6;
    color: #fff;
    font-weight: 800;
    font-size: 1.08em;
    cursor: pointer;
    transition: background 0.17s, color 0.17s;
    font-family: 'Nunito', Arial, sans-serif;
    outline: none;
    position: relative;
  }
  .modal-picker-btn.cancel {
    background: #e0e8f6;
    color: #184075;
  }
  .modal-picker-btn.cancel:hover {
    background: #bfc9e4;
    color: #184075;
  }
  .modal-picker-btn:not(.cancel):hover {
    background: #0d3eb1;
    color: #fff;
  }
}

@media (max-width: 500px) {
  .calendar-modal-header {
    font-size: 1.07em;
    height: 46px;
  }
  .calendar-modal-header > span:first-child,
  .calendar-modal-header > span:last-child,
  .calendar-modal-header > .modal-picker-close {
    line-height: 46px;
    font-size: 0.98em;
    padding-left: 13px;
    padding-right: 11px;
  }
  .calendar-modal-month-nav {
    font-size: 0.98em;
    gap: 8px;
  }
  .calendar-modal-days-row > div {
    width: 12vw;
    min-width: 13px;
    font-size: 11px;
    padding: 0 0.5px;
  }
  .calendar-modal-grid-day {
    width: 22px;
    height: 22px;
    font-size: 0.92em;
  }
  .calendar-modal-time-wrap,
  .calendar-modal-time-select,
  .calendar-modal-btn-done {
    max-width: 96vw !important;
  }
  /* MODAL LOCATION SUGGESTIONS - mobilní úprava */
  #modal-location-suggestions {
    max-width: 98vw !important;
    font-size: 1em;
    border-radius: 0 0 8px 8px;
  }
  #modal-location-suggestions div {
    font-size: 1em;
    padding: 11px 18px;
  }
}