
/* ======================= GLOBAL STYLES ======================= */
/* ======================= GLOBAL ======================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.5;
}

section.registration {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.registration__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  position: relative;
}

.registration__image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.registration__image img {
  max-width: 100%;
  height: auto;
}

/* ======================= FORM CONTAINER ======================= */
.form-container {
  position: relative;
}

.registration__content {
  flex: 1;
  max-width: 600px;
  position: relative;
  min-height: 400px;
}

.registration__title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}

.registration__desc {
  font-size: 16px;
  margin-bottom: 40px;
}

/* ======================= CUSTOM SELECT ======================= */
.custom-select {
  position: relative;
  margin-bottom: 30px;
  cursor: pointer;
}

.select-placeholder {
  background: transparent;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s;
}

.select-placeholder .arrow {
  font-size: 12px;
}

.select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 10;
}

.select-options li {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.select-options li.selected {
  background: rgba(255,216,76,0.2);
}

.custom-select.error .select-placeholder {
  border-bottom-color: #e03b3b;
}

/* ======================= CONTACT INPUT ======================= */
.contact-block {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.contact-input-wrapper {
  flex: 1;
  position: relative;
}

.contact-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s;
}

.contact-input-wrapper.error .contact-input {
  border-bottom-color: #e03b3b !important;
}

/* ======================= ICON SELECT ======================= */
.icon-select {
  position: relative;
  width: 60px;
}

.icon-placeholder {
  width: 60px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s;
  
}

.icon-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-direction: column;
  z-index: 10;
}

.icon-options li {
  padding: 0 10px;      /* убираем вертикальный padding */
  height: 36px;          /* фиксированная высота строки */
  display: flex;
  align-items: center;    /* вертикальное центрирование */
  gap: 6px;
  cursor: pointer;
}

.icon-options li img, .icon-placeholder img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ======================= BUTTON ======================= */
.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  background: #FFD84C;
  color: #000 !important;  
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background: #ffd140; /* светлее при наведении */
  transform: translateY(-2px); /* лёгкое приподнимание */
  box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* мягкая тень */
  transition: all 0.25s ease; /* плавный переход */
}

/* ======================= OPEN MENUS ======================= */
.select-options.open,
.icon-options.open {
  display: flex;
}


/* Твой правый блок кнопок */
.projects__nav button {
  color: #000 !important;
}


/* ======================= SUCCESS MESSAGE ======================= */
.success-msg {
  display: block;               /* чтобы блок был в потоке */
  opacity: 0;                   /* изначально невидим */
  margin-top: 15px;             /* отступ сверху */
  font-size: 14px;              /* читаемый размер */
  color: #2ecc71;               /* зелёный цвет */
  font-weight: 400;
  line-height: 1.4;
  transition: opacity 1.5s ease; /* плавное появление */
}

.success-msg.show {
  opacity: 1;
}

/* ======================= BUTTON AFTER SUBMIT ======================= */
button[disabled] {
  background: #e0e0e0 !important;  /* серая кнопка */
  color: #8c8c8c !important;       /* серый текст */
  cursor: not-allowed !important;
  opacity: 0.9;
  transform: none !important;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ======================= CONSENT CHECKBOX ======================= */
.consent-wrapper {
  margin-bottom: 24px;
  font-size: 14px;       /* такой же размер текста как у формы */
  line-height: 1.4;
  color: #000;           /* черный текст */
}

.consent-wrapper a {
  color: #000;           /* черная ссылка */
  text-decoration: underline;
}

.consent-wrapper input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #FFD84C; /* желтый цвет галочки */
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.consent-wrapper.error {
  color: #e03b3b;       /* текст красный при ошибке */
}

.consent-wrapper.error a {
  color: #e03b3b;       /* ссылка тоже красная */
}

/* при клике по чекбоксу убираем ошибку */
.consent-wrapper input[type="checkbox"]:checked {
  outline: none;
}



/* ======================= RESPONSIVE ======================= */
@media(max-width:768px){
  .registration__wrapper {
    grid-template-columns: 1fr;
  }
  .registration__image {
    display: none;
  }
  .registration__content {
    max-width: 100%;
    min-height: auto;
  }
  .success-box {
    width: 100%;
    margin-top: 20px;
  }
}
