* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.form-all {
    background-color: #111111;
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.form-control {
    width: 100%;
    background-color: #495057;
    border: 1px solid #F96400;
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #FF8C42;
        box-shadow: 0 0 8px rgba(249, 100, 0, 0.5);
    }


.form-group > label {
    color: white;
}

.btn {
    background-color: transparent;
    border: 2px solid #F96400;
    border-radius: 2em;
    color: white;
    cursor: pointer;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin: 20px auto;
    padding: 1em 4em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}


    .btn.first {
        transition: box-shadow 300ms ease-in-out, color 300ms ease-in-out;
    }

    .btn:hover {
        color: #fff;
        box-shadow: 0 0 40px 40px #F96400 inset;
    }


.form-check {
    margin-top: 8%;
    margin-left: 0px !important;
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    accent-color: gray !important;
    cursor: pointer;
    color: white;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
}



.form-control {
    display: block;
    width: 100%;
    padding: 10px 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    background-color: #495057;
    background-clip: padding-box;
    border: 1px solid #F96400;
    border-radius: 15px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control > option {
        padding: 10px 0px;
    }

    .form-control:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }




#addmore {
    background-color: transparent;
    border: 2px solid #F96400;
    border-radius: 2em;
    color: white;
    cursor: pointer;
    font-weight: 700;
    padding: 1em 5%;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 10px 0 !important;
    width: auto !important; 
    display: inline-block !important;
}


    #addmore:hover {
        color: #fff;
        box-shadow: 0 0 40px 40px #F96400 inset;
    }


.special-text {
    color: white;
    margin-bottom: 10%;
}



.main-info, .about-form {
    display: none;
}

.companion-field {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
}

.remove-companion {
    cursor: pointer;
    color: red;
    margin-top: 10px;
    display: inline-block;
}

.child-mode .companion-field:first-child .remove-companion {
    display: none !important;
}


#addmore[style*="display: none"] {
    display: none !important;
}

.passport-input {
    text-transform: uppercase;
}

.validation-error {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.form-special-input input:invalid {
    border-color: red;
}


.child-mode .main-info {
    display: none !important;
}

    .child-mode .main-info input::before {
        content: none !important;
    }

.is-invalid {
    border-color: #dc3545 !important;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875em;
}



.fio-error {
    display: none;
    font-size: 14px;
    margin-top: 5px;
    color: red !important;
}

.main-info,
.about-form {
    display: none;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.field-validation-error {
    color: #dc3545;
    display: block;
    margin-top: 5px;
}

.remove-companion {
    color: white;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

#alertContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.alert {
    position: relative;
    padding: 18px 25px;
    margin: 0;
    border: none;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: slideIn 0.5s ease-out;
    backdrop-filter: blur(2px);
}

    .alert::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 8px;
        z-index: -1;
    }

.alert-success {
    color: #0f5132;
    background: rgba(209, 231, 221, 0.95);
}

    .alert-success::before {
        border: 1px solid #badbcc;
    }

.alert-danger {
    color: #842029;
    background: rgba(248, 215, 218, 0.95);
}

    .alert-danger::before {
        border: 1px solid #f5c2c7;
    }

.alert-warning {
    color: #664d03;
    background: rgba(255, 243, 205, 0.95);
}

    .alert-warning::before {
        border: 1px solid #ffecb5;
    }

@keyframes slideIn {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(0);
    }
}

/* ?????? ??? ??????????? */
.alert::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
}



#alertContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    font-family: 'Arial', sans-serif;
}

.alert {
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    color: white; /* ????? ????? ??? ???? ????????? */
}

/* ??????? ????? ? ?????????? */
.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-left: 5px solid #ffd4d8;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border-left: 5px solid #c3e6cb;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #1a1a1a; /* ?????? ????? ??? ?????????????? */
    border-left: 5px solid #ffeeba;
}





@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.alert {
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 1;
    transform: translateY(0);
}

    .alert.hiding {
        opacity: 0;
        transform: translateY(-20px);
    }


.animated-alert {
    animation: slideIn 0.5s ease-out;
    transition: opacity 0.3s ease-in-out;
}

.fade-out {
    opacity: 0 !important;
    transform: translateX(120%) !important;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.animated-alert {
    animation: slideIn 0.5s ease-out;
    transition: all 0.3s ease-in-out;
    background: #28a745;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-danger {
    background: #dc3545;
}

.fade-out {
    opacity: 0;
    transform: translateX(120%);
}

.alert-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 15px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}