.form-with-background {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.form_input_container {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    max-width: 100%;
}

.form_input {
    display: block;
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
    line-height: 20px;
    color: #2d3748;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 400;
    transition: all 0.3s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 50px;
}

.form_input:focus {
    border-color: var(--first-site-color);
    box-shadow: 0 0 0 3px rgba(79, 212, 89, 0.1);
    background: #ffffff;
    outline: none;
}

.form_input[type="date"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 50px;
    line-height: 50px;
    padding: 12px 25px;
    padding-right: 45px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    min-width: 0;
}

.form_input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form_input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form_submit_button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: var(--first-site-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.form_submit_button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.form_submit_button.external-link {
    background: #f8fafc;
    color: var(--second-site-color);
    border: 1px solid #e5e5e7;
    font-weight: 600;
}

.form_submit_button.external-link:hover {
    background: #e5e5e7;
}

.form_input_container.no-margin {
    margin-bottom: 0;
}

.form_label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--second-site-color);
}

.text-danger {
    color: var(--important-text-color);
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--important-text-color);
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 4px;
}

.alert li:last-child {
    margin-bottom: 0;
}

.form__submit {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.form__submit .form_submit_button {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
}

.form__submit .form_submit_button.external-link {
    margin-left: 0;
}

@media screen and (max-width: 767px) {
    .form__submit {
        flex-direction: column;
        gap: 15px;
    }
    
    .form__submit .form_submit_button {
        width: 100%;
        margin: 0;
    }

    .form_input[type="date"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: 50px;
        line-height: 50px;
        padding: 12px 25px;
        padding-right: 45px;
        -webkit-appearance: textfield;
        -moz-appearance: textfield;
        appearance: textfield;
        position: relative;
        background-color: #f8fafc;
        border: 1px solid #e5e5e7;
        border-radius: 8px;
        min-width: 0;
    }
    
    .form_input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 15px;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 20px;
        height: 20px;
        padding: 0;
        cursor: pointer;
        opacity: 0.5;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form_input[type="date"]::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
    }

    /* Стили для Firefox */
    .form_input[type="date"]::-moz-calendar-picker-indicator {
        position: absolute;
        right: 15px;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 20px;
        height: 20px;
        padding: 0;
        cursor: pointer;
        opacity: 0.5;
        z-index: 1;
    }

    .form_input[type="date"]::-moz-calendar-picker-indicator:hover {
        opacity: 1;
    }

    /* Стили для Edge */
    .form_input[type="date"]::-ms-clear {
        display: none;
    }
    
    .form_input[type="date"]::-ms-reveal {
        display: none;
    }
}

.password-input-container {
    position: relative;
    width: 100%;
    min-height: 50px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 0;
    height: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
    transition: color 0.3s;
    z-index: 1;
    pointer-events: auto;
}

.password-toggle:hover {
    color: var(--first-site-color);
}

.password-input-container .form_input {
    padding-right: 45px;
    margin-bottom: 0;
    height: 50px;
    line-height: 50px;
}

.password-input-container .text-danger {
    position: absolute;
    left: 0;
    bottom: -20px;
    margin: 0;
    font-size: 14px;
}

.password-with-eye-container {
    position: relative;
    width: 100%;
    min-height: 50px;
}

.eye-container {
    position: absolute;
    right: 15px;
    top: 0;
    height: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
    transition: color 0.3s;
    z-index: 1;
    pointer-events: auto;
}

.eye-container:hover {
    color: var(--first-site-color);
}

.password-with-eye-container .form_input {
    padding-right: 45px;
    margin-bottom: 0;
    height: 50px;
    line-height: 50px;
}

.password-with-eye-container .text-danger {
    position: absolute;
    left: 0;
    bottom: -20px;
    margin: 0;
    font-size: 14px;
}

@media screen and (max-width: 767px) {
    .password-input-container,
    .password-with-eye-container {
        position: relative;
        margin-bottom: 24px;
        min-height: 50px;
    }
    
    .password-toggle,
    .eye-container {
        position: absolute;
        right: 15px;
        top: 0;
        height: 50px;
        display: flex;
        align-items: center;
    }
    
    .password-input-container .form_input,
    .password-with-eye-container .form_input {
        height: 50px;
        line-height: 50px;
    }
    
    .password-input-container .text-danger,
    .password-with-eye-container .text-danger {
        bottom: -20px;
    }
}

.add-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.add-block .form_submit_button {
    min-width: 200px;
    background: var(--first-site-color);
    color: #ffffff;
    border: none;
}

.add-block .form_submit_button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.personal-data-table-item .key {
    margin-bottom: 5px;
}

.personal-data-table-item .value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.personal-data-table-item .value label {
    width: 100%;
}

.personal-data-table-item .value .form_input_new {
    width: 100%;
    margin-right: 0;
}

.custom-date-input-container {
    position: relative;
    width: 100%;
}

.custom-date-input {
    width: 100%;
    padding-right: 45px;
}

.calendar-icon {
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s;
    z-index: 1;
}

.calendar-icon:hover {
    color: var(--first-site-color);
}

.calendar-icon i {
    font-size: 18px;
}

/* Flatpickr Calendar Styles */
.flatpickr-calendar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
    padding: 8px;
}

.flatpickr-day {
    border-radius: 4px;
    margin: 2px;
    height: 35px;
    line-height: 35px;
}

.flatpickr-day.selected {
    background: var(--first-site-color);
    border-color: var(--first-site-color);
}

.flatpickr-day:hover {
    background: #f3f4f6;
}

.flatpickr-months .flatpickr-month {
    height: 40px;
}

.flatpickr-current-month {
    padding: 8px 0;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 8px;
}

/* Flatpickr Input Styles */
.flatpickr-input {
    background-color: #f8fafc !important;
    border: 1px solid #e5e5e7 !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    line-height: 20px !important;
    color: #2d3748 !important;
    height: 50px !important;
}

.flatpickr-input:focus {
    border-color: var(--first-site-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 212, 89, 0.1) !important;
    background: #ffffff !important;
    outline: none !important;
}

@media screen and (max-width: 767px) {
    .custom-date-input {
        width: 100%;
        padding-right: 45px;
    }

    /* Mobile Calendar Styles */
    .flatpickr-calendar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .flatpickr-day {
        height: 40px;
        line-height: 40px;
    }
} 