/*
Theme Name: Giftberry
Author: Meduzzen
Description: A blank WordPress theme
Version: 1.0
*/

/*=============================================
=            Normalize            =
=============================================*/
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  outline: 0;
  vertical-align: baseline;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  text-decoration: none;
}

b,
strong {
  font-weight: 600;
}

dfn {
  font-style: italic;
}

mark {
  background: unset;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
  vertical-align: middle;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
  border-style: solid;
  border-width: 0;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: 700;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

ul,
ol {
  margin-bottom: 25px;
  margin-left: 20px;
  padding-left: 0;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.6rem;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.6rem 1.6rem;
}

/* Box sizing.
--------------------------------------------- */
/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

p {
  word-break: break-word;
  margin-bottom: 20px;
}

code {
  background-color: #e0f2fe;
  padding: 0.125em 0.25em;
}

pre {
  background-color: #f4f4f5;
  padding: 20px;
}

.page-template-form-page #page {
  position: relative;
  overflow: hidden;
}

.site-main.form-post {
  position: relative;
  z-index: 2;
}

blockquote,
.wp-block-quote {
  padding: 16px;
  margin-top: 34px;
  margin-bottom: 34px;
  border-left: 4px solid #027abb;
  color: #27272a;
  font-style: italic;
}

blockquote.has-text-align-right,
blockquote.is-style-large,
blockquote.is-style-plain,
.wp-block-quote.has-text-align-right,
.wp-block-quote.is-style-large,
.wp-block-quote.is-style-plain {
  border: unset;
  border-left: 4px solid #027abb;
}

.wp-block-pullquote.has-border-color {
  border: unset !important;
  border-top: 4px solid #027abb !important;
  border-bottom: 4px solid #027abb !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.35s ease-in-out;
}

a:active {
  outline: 0;
}

.grecaptcha-badge {
  z-index: 3;
  position: relative;
}

/* standartization style */
.ty-wrap h4 {
  margin-bottom: 20px;
  text-align: center;
  color: #52225e;
}

.ty-wrap p:last-of-type {
  margin-bottom: 0;
}

body
  .select2-container--default
  .select2-search--dropdown
  .select2-search__field {
  border: 0;
  max-height: 39px;
}

.grecaptcha-badge {
  display: none;
}

.country-dropdown .select2-results {
  background: #fff;
}

input.select2-search__field {
  max-width: calc(100% - 44px);
}

body .select2-search--dropdown {
  padding: 1px;
}

.select2-container--open .select2-dropdown.country-dropdown {
  top: -41px !important;
  background: transparent !important;
  overflow: hidden;
}

.select2-container--open .select2-dropdown {
  top: 0 !important;
  margin-top: 0 !important;
}

#primary:not(.post-container) {
  overflow: hidden;
}

body.scroll-disabled {
  touch-action: none;
}

.select2-results__options,
ul.country-list,
.post-navigation-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.select2-results__options::-webkit-scrollbar,
ul.country-list::-webkit-scrollbar,
.post-navigation-list::-webkit-scrollbar {
  display: none;
}

.country-list.hide + .custom-scrollbar-container-country {
  display: none;
}

body.iti-mobile .intl-tel-input .country-list {
  min-height: 200px;
}

.custom-scrollbar-container-country {
  height: 100%;
  width: 5px;
  background: 0;
}

.country-dropdown .custom-scrollbar-container {
  top: 41px;
}
.custom-scrollbar-container {
  position: absolute !important;
  top: 0;
  right: 15px;
  height: 100%;
  width: 5px;
  background: 0;
}

.custom-scrollbar-thumb,
.custom-scrollbar-thumb-country {
  background: #52225e;
  width: 5px;
  border-radius: 13px;
}

body .select2-container .select2-selection--single {
  height: unset;
}

.select2-selection__placeholder {
  border: 0 !important;
}

.select2-container--default.select2-container--open.select2-container--above
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above
  .select2-selection--multiple {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.select2-selection__arrow b {
  display: none;
}

body .select2-container--open .select2-dropdown--below {
  border-radius: 0 0 19px 10px;
  background: #fff;
  border: 0;
}

body
  .select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable,
body .intl-tel-input .country-list .country.highlight {
  background: #e1e1e1;
  color: #1e1e1e;
}

body .select2-results__option,
body .intl-tel-input .country-list .country {
  font-size: 16px;
  font-weight: 400;
  padding: 10.5px 20px;
}

body
  .select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow,
.flag-container .selected-flag.flag-clicked .iti-arrow {
  transform: translateY(-50%) rotate(180deg);
}

body .intl-tel-input ul.country-list {
  border: 0;
  border-radius: 10px;
  border-bottom-right-radius: 19px;
}

body
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow,
body .intl-tel-input .selected-flag .iti-arrow {
  border: 0;
  margin-top: 0;
  background: center / contain no-repeat
    url("/wp-content/uploads/2024/12/select-drop-dawn.svg");
  width: 24px;
  height: 24px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.5s;
}

body
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0;
  display: flex;
  color: #1e1e1e;
  border: 0;
  line-height: 1.4;
}

body .select2-dropdown.select2-dropdown--above {
  border: 0 !important;
}

body .select2-container--default .select2-selection--single {
  max-height: 41px;
  outline: 0;
  border-color: #ccc;
  padding: 9px 20px;
  border-radius: 10px;
}

.solid-button {
  background: linear-gradient(52.53deg, #52225e 19.77%, #f53f4c 129.41%);
  color: #fff;
  padding: 15px 48px;
  border-radius: 200px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  display: flex;
  max-width: fit-content;
}

.post-content a,
.post-content span[style="text-decoration: underline;"],
.form-cover a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.post-content span[style="text-decoration: underline;"]::after {
  background: #1e1e1e;
}

.post-content a,
.form-cover a {
  color: #52225e;
}

.post-content a::after,
.post-content span[style="text-decoration: underline;"]::after,
.form-cover a::after {
  content: "";
  width: calc(100% + 2px);
  position: absolute;
  height: 1px;
  bottom: -1px;
  left: -1px;
  display: block;
}

body.page-template-form-page {
  background: linear-gradient(179deg, #ece0db 0%, #f3d7e6 100%);
}

body {
  font-family: "Red Hat Display", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #1e1e1e;
}

body p {
  margin-top: 0;
  margin-bottom: 25px;
}

.container {
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .container {
    max-width: 904px;
  }
}

@media screen and (min-width: 1201px) {
  .container {
    max-width: 1400px;
  }
}

h4 {
  margin-bottom: 25px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

h5 {
  font-size: 20px;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

h1 strong {
  font-weight: 700;
}

h1 {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 40px;
  }
}

/* form styles */

@media screen and (min-width: 769px) {
  span[data-name="comment"] textarea {
    min-width: 400px;
    max-width: 100%;
    min-height: 70px;
  }
}
.wpcf7-response-output {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .phone-and-code .intl-tel-input {
    flex-direction: column;
  }

  body .phone-and-code .intl-tel-input .selected-flag {
    width: 100% !important;
    padding-top: 9px;
    padding-bottom: 9px;
    max-height: 41px;
  }
}

@media screen and (min-width: 769px) {
  span[data-name="phone"] .wpcf7-not-valid-tip {
    margin-left: 187px;
  }
}

body .intl-tel-input.separate-dial-code .selected-flag {
  min-width: 177px;
  background: #fff;
  outline: 0;
  padding-left: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  gap: 15px;
  border: 1px solid #ccc;
}

body .flag-container:hover .selected-flag {
  background-color: #fff !important;
}

body .intl-tel-input .selected-flag .iti-flag {
  position: relative;
  margin: unset;
}

body .intl-tel-input.separate-dial-code .selected-dial-code {
  padding-left: 0;
}

.intl-tel-input {
  display: flex;
  gap: 10px;
}

body .intl-tel-input .country-list .country .dial-code {
  color: #1e1e1e;
}

body .intl-tel-input .flag-container {
  padding: 0;
  position: relative;
  outline: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

form .wpcf7-acceptance input:checked + span:before {
  border-color: #52225e;
}

.wpcf7-acceptance.wpcf7-not-valid label span:before {
  border-color: #e83a39;
}

span[data-name="address"] {
  display: flex;
  flex-direction: column;
}

span[data-name="address"] textarea {
  height: 41px;
  padding: 9px 20px;
  resize: none;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  span[data-name="address"] textarea {
    height: 72px;
    padding: 14px 20px;
  }
}

body .wpcf7-not-valid-tip {
  font-size: 14px;
  margin-top: 5px;
  color: #e83a39;
}

.wpcf7-acceptance .wpcf7-list-item {
  margin-left: 0;
}

.wpcf7-acceptance input {
  padding: 0;
  height: initial;
  width: initial;
  margin-bottom: 0;
  display: none;
  cursor: pointer;
}

.wpcf7-acceptance span {
  position: relative;
  cursor: pointer;
}

.wpcf7-acceptance label span:before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: transparent;
  border: 1px solid #52225e;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 10px;
  top: -1px;
  border-radius: 4px;
}

.wpcf7-acceptance label input:checked + span:after {
  content: "";
  display: block;
  position: absolute;
  background: center / contain no-repeat
    url("/wp-content/uploads/2024/12/check.svg");
  width: 14px;
  height: 14px;
  top: calc(50% + 1px);
  transform: translateY(-50%);
  left: 2px;
}

.country-line .form-first-column {
  width: 100%;
}

.ty-content p:last-of-type {
  margin-bottom: 0;
}

.form-cover .solid-button {
  margin-left: auto;
  margin-right: auto;
}

.wpcf7-acceptance label {
  font-weight: 400;
  font-size: 16px;
}

.form-cover button {
  margin-top: 5px;
}

.form-cover select option:first-of-type {
  display: none;
}

.form-two-column-line {
  display: flex;
  gap: 20px;
}

input::placeholder,
textarea::placeholder,
body
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: rgba(30, 30, 30, 0.4);
}

textarea {
  padding: 14px 20px;
  height: 145px;
}

input {
  padding: 9px 20px !important;
}
input,
textarea,
select,
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  outline: 0;
  border: 0;
  border-radius: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid #cccccc;
  font-size: 16px;
  color: #1e1e1e;
}
.form-fields {
  display: flex;
  flex-direction: column;
  row-gap: 25px;
}
label {
  font-size: 14px;
  font-weight: 700;
}
.field-and-label {
  gap: 5px;
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 768px) {
  body .form-fields {
    gap: 20px;
  }

  body .form-cover button {
    margin-top: 10px;
  }

  .form-two-column-line {
    flex-direction: column;
  }
}

/* hovers and other UI */
.footer-menu a,
input,
textarea,
.wpcf7-acceptance .wpcf7-list-item span::before,
.selected-flag {
  transition: all 0.5s;
}

input.wpcf7-not-valid,
.wpcf7-select.wpcf7-not-valid + span.select2:not(.choosen) .select2-selection,
textarea.wpcf7-not-valid {
  border-color: #e83a39;
}
body .select2-container--default .select2-selection--single {
  transition: border 0.5s;
}

.footer-menu a:hover {
  color: #52225e;
}

input:hover,
textarea:hover,
body .select2-container--default .select2-selection--single:hover,
body .intl-tel-input.separate-dial-code .flag-container:hover .selected-flag {
  border-color: #c3b2e7;
}

input:focus-visible,
textarea:focus-visible,
body .select2-container--default .select2-selection--single:focus-visible,
body
  .select2-container--default.select2-container--open
  .select2-selection--single,
body
  .intl-tel-input.separate-dial-code
  .flag-container
  .selected-flag.flag-clicked {
  border-color: #52225e;
}

body .wpcf7-acceptance span.wpcf7-list-item-label.active::before {
  border-color: #1e1e1e;
}

.wpcf7-acceptance .wpcf7-list-item:hover span::before {
  border-color: #c3b2e7;
}

/* country select style */

body .intl-tel-input .country-list .flag-box {
  display: none;
}

body .intl-tel-input .country-list li.divider {
  display: none;
}

/* special-personal-form */
.form-post .post-wrap {
  justify-content: center;
}

.form-post .form-wrap {
  padding: 42px 42px;
  border-radius: 30px;
  background: #fff;
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  .form-post .form-wrap {
    padding: 37px 19.5px;
  }
  .form-post .post-content {
    padding-top: 10px;
  }
}

.form-post .post-content p {
  max-width: 532px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 1201px) {
  .form-post {
    min-height: 570px;
    display: flex;
    flex-direction: column;
  }
}

.form-post .form-cover {
  text-align: center;
}
