﻿body {
    background: #f4f6f8;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 32px 24px;
}

fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 28px;
    padding: 18px 18px 10px 18px;
    background: #fafbfc;
}

legend {
    font-weight: 600;
    color: #2d6ca2;
    font-size: 1.1rem;
    padding: 0 8px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #222a30;
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
select,
textarea,
.form-control {
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    select:focus,
    textarea:focus,
    .form-control:focus {
        border-color: #2d6ca2;
        outline: none;
    }

.btn-primary,
input[type="submit"],
button[type="submit"] {
    background: #2d6ca2;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

    .btn-primary:hover,
    input[type="submit"]:hover,
    button[type="submit"]:hover {
        background: #23527c;
    }

.select2-container--default .select2-selection--single {
    height: 42px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #cfd8dc;
    font-size: 1rem;
    background: #fff;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 28px;
    }

    .select2-container--default .select2-selection--single:focus {
        border-color: #2d6ca2;
    }

@media (max-width: 700px) {
    .form-container {
        padding: 16px 4vw;
    }

    fieldset {
        padding: 10px 4vw 6px 4vw;
    }
}

.text-danger {
    color: #b94a48;
    font-size: 0.98em;
    margin-top: 2px;
}

.form-lang-select {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.lang-dropdown {
    min-width: 140px;
    font-size: 1rem;
}

/*.validator-block {
    display: inline !important;
    margin-top: 0.25em;
}*/

.text-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b94a48;
    background: #fff6f6;
    border: 2px solid #b94a48;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    margin: 24px auto;
    padding: 18px 24px;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(185,74,72,0.08);
    text-align: center;
    gap: 16px;
}

    .text-danger img {
        height: 48px;
        width: auto;
        margin-right: 12px;
    }


.success-box {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
    border-radius: 5px;
    padding: 12px 18px;
    margin: 18px auto;
    font-weight: 600;
    font-size: 1em;
    max-width: 480px;
    box-sizing: border-box;
    word-break: break-word;
    text-align: center;
    display: block;
}