/*
Theme Name: Twenty Twenty-Two Child
Template: twentytwentytwo
Version: 1.0.0
*/

.wp-site-blocks {
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
}

.uacf7-col-2 {
    flex: 0 0 16.666667%;
}
.uacf7-col-8 {
    flex: 0 0 66.666667%;
}
.uacf7-col-10 {
    flex: 0 0 83.333333%;
}
.uacf7-col-2, .uacf7-col-8, .uacf7-col-10 {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}


.select-resize-ghost,
.select2-container .select2-choice,
.select2-container .select2-selection,
input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
  box-sizing: border-box;
  color: #333;
  font-size: .97em;
  height: 2.507em;
  max-width: 100%;
  padding: 0 .75em;
  transition: color .3s, border .3s, background .3s, opacity .3s;
  vertical-align: middle;
  width: 100%;
}

textarea.textarea-muc-tieu {
  height: auto !important;
}

[type=reset],
[type=submit],
button,
html [type=button] {
  -webkit-appearance: button;
}

[type=button],
[type=reset],
[type=submit],
button {
  cursor: pointer;
}

input[type=text],
input[type=tel],
input[type=email],
input[type=date],
select {
  height: 2.5em !important;
  border-radius: 5px !important;
  background-color: #fff !important;
  border: 1px solid #9DDBFF !important;
}

input[type="submit"],
button[type="submit"] {
  height: 1em !important;
  border-radius: 5px !important;
  background-color: #ffc800;
  color: #0040ff;
  display: block;
  margin: 0 auto;
  text-transform: none;
  padding: 20px 0px 40px 0px;
  width: 100%;
  text-transform: uppercase;
  font-size: x-large;
  font-weight: bolder;
}

.background-form-order {
  background: #0062D8;
  background: linear-gradient(0deg, rgba(0, 98, 216, 1) 50%, rgba(0, 149, 216, 1) 100%);
  color: white;
  margin-block-start: 0;
  padding: 0px 20px;
}


/* Step Button Styles */
.step-button {
  display: inline-flex;
  align-items: center;
  height: 45px;
  border-radius: 999px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
  background-color: #1a72ff;
  border: 1px solid white;
}

.step-number {
  width: 64px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 20px;
  white-space: nowrap;
  background-color: #48b5ff;
  border-radius: 999px;
  margin-left: -10px;
  border: 1px solid white;
}

/* Mobile */
@media (max-width: 480px) {
  .step-button {
    height: 35px;
    max-width: 100%;
  }

  .step-number {
    width: 48px;
  }

  .step-text {
    padding: 0 18px;
  }
}

/* End Step Button Styles */


/* Design note warning */
.design-note {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 15px 15px 15px 60px;
  background: #ffd91a;
  border-radius: 14px;
  box-sizing: border-box;
  margin-top: 35px;
}

.design-note-icon {
  position: absolute;
  left: 25px;
  top: 35%;
  transform: translateY(-50%);
  width: 20px;
  height: 40px;
  font-size: 0;
}

.design-note-icon::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 50px;
  background: #ed1c24;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

.design-note-icon::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #ed1c24;
  border-radius: 50%;
}

.design-note-text {
  font-weight: 700;
  color: #000;
}

@media (max-width: 768px) {
  .design-note {
    padding: 16px 20px 16px 78px;
    border-radius: 12px;
  }

  .design-note-icon {
    left: 28px;
    width: 28px;
    height: 66px;
  }

  .design-note-icon::before {
    top: -20px;
    width: 20px;
    height: 54px;
  }

  .design-note-icon::after {
    bottom: -2px;
    width: 22px;
    height: 22px;
  }

  .design-note-text {
    font-size: 18px;
    line-height: 1.35;
  }
}

/* End Design note warning */


/* Radio button*/

/* Radio grid base */
.radio-switch-grid .wpcf7-radio {
  display: grid !important;
  column-gap: 40px;
  row-gap: 18px;
}

/* Radio column control */

.radio-switch-grid.radio-col-1 .wpcf7-radio {
  grid-template-columns: 1fr;
}

.radio-switch-grid.radio-col-2 .wpcf7-radio {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-switch-grid.radio-col-3 .wpcf7-radio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Từng option */
.radio-switch-grid .wpcf7-list-item {
  margin: 0;
}

/* Label bọc input + chữ */
.radio-switch-grid .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: #fff;
}

/* Input radio biến thành switch */
.radio-switch-grid input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 64px;
  width: 64px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Nút tròn bên trong */
.radio-switch-grid input[type="radio"]::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #b9c0d3;
  transition: all 0.25s ease;
}

/* Khi được chọn */
.radio-switch-grid input[type="radio"]:checked {
  background: #fcd510;
}

/* Nút tròn trượt qua phải */
.radio-switch-grid input[type="radio"]:checked::before {
  transform: translateX(34px);
  background: #003db5;
}

/* Text label */
.radio-switch-grid .wpcf7-list-item-label {
  display: inline-block;
  white-space: normal;
  word-break: normal;
}

@media (max-width: 767px) {
  .radio-switch-grid .wpcf7-radio {
    grid-template-columns: 1fr !important;
    row-gap: 16px;
  }

  .radio-switch-grid .wpcf7-list-item label {
    font-size: 17px;
  }
}

/* End Radio button */


/* Checkbox button */

/* Checkbox grid base */
.checkbox-switch-grid .wpcf7-checkbox {
  display: grid !important;
  column-gap: 40px;
  row-gap: 18px;
}

/* Checkbox column control */

.checkbox-switch-grid.check-col-1 .wpcf7-checkbox {
  grid-template-columns: 1fr;
}

.checkbox-switch-grid.check-col-2 .wpcf7-checkbox {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-switch-grid.check-col-3 .wpcf7-checkbox {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Từng option */
.checkbox-switch-grid .wpcf7-list-item {
  margin: 0;
}

/* Label bọc input + chữ */
.checkbox-switch-grid .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: #fff;
}

/* Input checkbox biến thành switch */
.checkbox-switch-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 64px;
  width: 64px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Nút tròn bên trong */
.checkbox-switch-grid input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #b9c0d3;
  transition: all 0.25s ease;
}

/* Khi được chọn */
.checkbox-switch-grid input[type="checkbox"]:checked {
  background: #fcd510;
}

/* Nút tròn trượt qua phải */
.checkbox-switch-grid input[type="checkbox"]:checked::before {
  transform: translateX(34px);
  background: #003db5;
}

/* Text label */
.checkbox-switch-grid .wpcf7-list-item-label {
  display: inline-block;
  white-space: normal;
  word-break: normal;
}

@media (max-width: 767px) {
  .checkbox-switch-grid .wpcf7-checkbox {
    grid-template-columns: 1fr !important;
    row-gap: 14px;
  }

  .checkbox-switch-grid .wpcf7-list-item label {
    gap: 12px;
  }
}

/* End Checkbox button */


/* ================================
   CF7 Required Error Box - Final
================================ */

/* Box thông báo lỗi required */
.wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 8px;

  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 12px;

  color: #003db5;
  background: #fcd510;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  position: relative;
}

/* Icon chấm than phía trước */
.wpcf7-not-valid-tip::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  flex: 0 0 18px;

  border-radius: 50%;
  background: #003db5;
  color: #fcd510;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

/* Mũi tên nhỏ phía trên box */
.wpcf7-not-valid-tip::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 18px;

  width: 10px;
  height: 10px;

  background: #fcd510;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Input/select/textarea bị lỗi */
.wpcf7-not-valid {
  border-color: #fcd510 !important;
  box-shadow: 0 0 0 3px rgba(252, 213, 16, 0.28) !important;
}

/* Không để radio/checkbox switch bị dính box-shadow như input thường */
.wpcf7-radio.wpcf7-not-valid,
.wpcf7-checkbox.wpcf7-not-valid,
.wpcf7-radio .wpcf7-not-valid,
.wpcf7-checkbox .wpcf7-not-valid {
  box-shadow: none !important;
}

/* Mobile */
@media (max-width: 767px) {
  .wpcf7-not-valid-tip {
    font-size: 13px;
    padding: 7px 10px;
  }

  .wpcf7-not-valid-tip::before {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    font-size: 11px;
  }
}

/* End CF7 Required Error Box */

/* Ẩn lỗi CF7 trước khi user bấm submit */
.wpcf7 form:not(.cf7-show-errors) .wpcf7-not-valid-tip {
  display: none !important;
}

.wpcf7 form:not(.cf7-show-errors) .wpcf7-not-valid {
  border-color: initial !important;
  box-shadow: none !important;
}

/* =========================
   CF7 Custom 12-Column Grid
   ========================= */
.cf7-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  max-width: 100%;
}

.cf7-col-1 { grid-column: span 1; }
.cf7-col-2 { grid-column: span 2; }
.cf7-col-3 { grid-column: span 3; }
.cf7-col-4 { grid-column: span 4; }
.cf7-col-5 { grid-column: span 5; }
.cf7-col-6 { grid-column: span 6; }
.cf7-col-7 { grid-column: span 7; }
.cf7-col-8 { grid-column: span 8; }
.cf7-col-9 { grid-column: span 9; }
.cf7-col-10 { grid-column: span 10; }
.cf7-col-11 { grid-column: span 11; }
.cf7-col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .cf7-grid {
    grid-template-columns: 1fr;
  }

  .cf7-grid > * {
    grid-column: span 1;
  }
}