.imagaAndHeades{
    display: flex;
    align-items: center;
}




#dididna {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#dididna .modal-window {
  transform: scale(0);
  opacity: 0;
  
  transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.2s ease;
}


#dididna.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#dididna.active .modal-window {
  transform: scale(1);
  opacity: 1;
}




.imagaAndHeades h2{
    font-size: 30px;
    flex: 1;
    text-align: center;
}

.logoReport{
    position: absolute;
}

.modalSendApport{
    z-index: 1000;
    position: relative;
    width: 50vw;
    height: auto;
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

.logoReport{
    display: none;
}


.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close{
    position: absolute;
    font-size: 30px;
    color: gray;
    right: 20px;
    top: 10px;
    cursor: pointer;
}



/* ---------- Поле телефона ---------- */
.phone-group {
    position: relative;
    display: flex;
    justify-content: flex-start;


}

.phone-group input {
    padding-left: 16px;
    transition: padding-left 0.2s ease;
}

.phone-group input:focus,
.phone-group input:not(:placeholder-shown) {
    padding-left: 44px;
}

.phone-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #002551;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

/* Показываем +7 только когда поле активно или заполнено */
.phone-group input:focus ~ .phone-prefix,
.phone-group input:not(:placeholder-shown) ~ .phone-prefix {
    opacity: 1;
}



.phone-group {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;   /* вместо center */
}

.phone-group input {
    width: 100%;
    margin: 0;
    text-align: left;
}

.siphonee{
    width: 100%;
}


.areaaaa{
    width: 100%;
}


/* ---------- Многострочное поле ---------- */
.textarea-group {
    width: 100%; /* или больше — например, 400px, если нужно */
}

.textarea-group textarea {
    width: 100%;
    height: 70px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit; /* чтобы шрифт совпадал с input */
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    background: transparent;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    resize: vertical;   /* пользователь может растянуть только по высоте */
    line-height: 1.4;
}

.textarea-group textarea:focus {
    border-color: #007bff;
}

/* Label для textarea — позиционируется по верхнему краю, а не по центру */
.textarea-group label {
    position: absolute;
    left: 14px;
    top: 14px;                 /* отступ сверху вместо 50% */
    transform: none;           /* убираем translateY */
    background-color: #fff;
    padding: 0 6px;
    color: #888;
    font-size: 16px;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Когда поле в фокусе или заполнено — label вверх */
.textarea-group textarea:focus ~ label,
.textarea-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #007bff;
}


.megaFlex{
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.grida{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px; /* если нужен отступ */

}


.btsn{
    width: 100%;
}

.logg button{
    float: right;
}


/* ---------- Чекбокс согласия ---------- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 250px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

/* Скрываем нативный чекбокс */
.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Кастомный квадратик */
.checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all 0.15s ease;
    margin-top: 2px;
}

/* Галочка внутри (псевдоэлемент) */
.checkbox-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

/* Наведение */
.checkbox-group:hover .checkbox-box {
    border-color: #2465A5;
}

/* Отмечен */
.checkbox-group input:checked ~ .checkbox-box {
    background: #2465A5;
    border-color: #2465A5;
}

.checkbox-group input:checked ~ .checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

/* Фокус (доступность) */
.checkbox-group input:focus-visible ~ .checkbox-box {
    box-shadow: 0 0 0 3px rgba(36, 101, 165, 0.25);
}

/* Текст */
.checkbox-text {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
}

.checkbox-text a {
    color: #2465A5;
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #3279c0;
}

/* ---------- Кнопка в неактивном состоянии ---------- */
.logg button:disabled {
    background-color: #b8c5d1;
    cursor: not-allowed;
    opacity: 0.7;
}

.logg button:disabled:hover {
    background-color: #b8c5d1; /* не меняется при наведении */
}










.file-input-hidden {
    display: none;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 14px 20px;
    border: 1.5px solid #2b5c8f;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0d2b45;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.upload-btn:hover {
    background-color: #f0f4f8;
}

.upload-btn img{
    width: 30px;
    height: 30px;
}

.marginMarg{
    padding-top: 20px;
}


.file-selected-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 50%;
    background-color: #eef3f8;
    border: 1px solid #d0dbe5;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: calc(100% - 130px);
    color: #0d2b45;
    font-size: 15px;
    font-weight: 500;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.change-btn {
    width: 50%;
    padding: 10px 16px;
    border: 1.5px solid #2b5c8f;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2b5c8f;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.change-btn:hover {
    background-color: #2b5c8f;
    color: #ffffff;
}

.hidden {
    display: none !important;
}


.file-chip button {
  min-width: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  overflow: hidden;
}

.file-remove-btn img{
    width: 30px;
    height: 30px;
    display: block;
}

#removeFileBtn{
    width: 10px;
    height: auto;
    border-radius: 10px;
    background-color: #be123c;
}

#submitBtn{
    margin: 20px;
}