@charset "utf-8";
/*
*--------------------------------------------*
|                  common                    |
*--------------------------------------------*
*/
/* --- Form Elements --- */
input, select, textarea, button {
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 15px;
}

.common-input, .common-select {
  height: 45px;
  line-height: 45px;
  padding: 0 15px;
  color: var(--text-dark);
  width: 100%;
  background-color: #fff;
}

.common-input::placeholder, .common-select::placeholder {
  color: var(--text-placeholder) !important;
}

.select-wrapper{
  position: relative;
  width: 100%;
}

.select-wrapper .common-select {
  appearance: none;
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none; /* Firefox */
  padding-right: 32px;
  background-color: transparent;
  cursor: pointer;
  z-index: 1;
  position: relative;
  color: var(--text-placeholder); 
}

.select-wrapper .common-select option {
  color: var(--text-color);
}

.select-wrapper .common-select.is-selected {
  color: var(--text-color);
}

.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;  /* 12px width half */
  border-right: 6px solid transparent; /* 12px width half */
  border-top: 6px solid var(--black-900);         /* 6px height, black */
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 0;
}

.select-wrapper:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

/* --- Buttons --- */
.submit-button {
  width: 100%;
  height: 45px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: var(--primary-dark);
}

/* --- Cards/Containers --- */
.box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);
  padding: 50px;
}

/* --- Typography Utilities --- */
.required {
  color: var(--error-color);
  margin-left: 2px;
}

/* --- Input Radio & Checkbox Custom --- */
input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-color);
}

input[type="number"],
input[type="text"] {
  height: 45px;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  padding: 0 15px;
}

input[type="number"]:focus,
input[type="text"]:focus,
.select-wrapper select:focus {
  outline: 1.5px solid var(--border-focus);
  border: 1px solid var(--border-focus);
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12.5px 0;
}

.radio-label, .check-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  gap: 8px;
  color: var(--text-dark);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-color);
  cursor: pointer;
  border: none;
  -webkit-appearance: auto;
  appearance: auto;
}

.check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--border-color);
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  position: relative;
  background-color: #fff;
  flex-shrink: 0;
}

.check-label input[type="checkbox"]:checked {
  border-color: var(--primary-color);
}

.check-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Popup --- */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s;
}

.show {
  opacity: 1;
  z-index: 999;
  pointer-events: auto;
}

.window {
  position: relative;
  width: 100%;
  height: 100%;
}

.popup {
  height: 212px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 393px;
  max-width: 90%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -40%);
}

.window .popup {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.window .popup .box-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 25px;
}

.show .popup {
  transform: translate(-50%, -50%);
  transition: all 0.5s;
}

.window .popup .box-title {
  height: 27px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  margin-bottom: 20px;
}

.window .popup .box-title .cont{
  font-size: 16px;
  font-weight: normal;
}

.close-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.close-wrap .close {
  width: 150px;
  margin-top: 32px;
}

/* Error State Style */
input.input-error, select.input-error {
  border-color: var(--error-color) !important;
  outline: 1px solid var(--error-color) !important;
}

/* Error Text Message */
.error-text {
  color: var(--error-color);
  font-size: 13px;
  display: none;
}

/*
*--------------------------------------------*
|                 Responsive                 |
*--------------------------------------------*
*/
@media screen and (max-width: 1000px) {
  .background {
    padding: 20px;
  }

  .popup {
    width: 100%;
  }
}