/** Copyright (c) 2017 Artem Malcov | https://www.pandoge.com/post/411 **/
/** Adapted to match project dark theme (styles.css) **/

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

/* Используем шрифт из основного стиля для единства */
.clean_form_block * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.clean_form_block *:before,
.clean_form_block *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* OVERLAY - Тёмный фон с размытием вместо светлого градиента */
.overlay_clean {
    background: rgba(12, 14, 21, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    z-index: 99;
}

.clean_form_block {
    font-family: "Open Sans", sans-serif;
    visibility: hidden;
}

/* FORM CONTAINER - Тёмная карточка вместо белой */
.clean_form {
    width: 395px;
    margin: 100px auto 140px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 40, 60, 0.95);
    -webkit-transform: translateY(20%);
    -moz-transform: translateY(20%);
    -ms-transform: translateY(20%);
    transform: translateY(20%);
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
    z-index: 999;
}

.clean_form_block.show_form .clean_form {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1 !important;
    visibility: visible !important;
}

/* BORDER TOP - Цвета заменены на акцентные из темы */
.border_top_clean_form {
    height: 4px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.border_top_clean_form div {
    width: 20%;
    height: 4px;
    float: left;
}

.border_top_clean_form div:nth-of-type(1) {
    background: #2ecc71; /* accent */
}

.border_top_clean_form div:nth-of-type(2) {
    background: #27ae60;
}

.border_top_clean_form div:nth-of-type(3) {
    background: #3498db; /* secondary */
}

.border_top_clean_form div:nth-of-type(4) {
    background: #2980b9;
}

.border_top_clean_form div:nth-of-type(5) {
    background: #1abc9c;
}

.clean_forms {
    clear: both;
}

/* BODY FORM - Прозрачный фон вместо белого */
.body_clean_form {
    background: transparent;
    position: relative;
}

/* TEXT COLORS - Светлый текст вместо тёмного */
.title_clean_form {
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    padding: 24px 0 0 27px;
}

.description_clean_form {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 29px 0 28px;
    line-height: 16px;
}

.border_clean_form_1 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 18px 0 0 0;
}

.input_name_clean_form {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    padding: 22px 0 4px 3px;
}

/* INPUTS - Стиль как в .inputs из styles.css */
.f_input_clean_form {
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 49px;
    border-radius: 8px;
    box-shadow: none;
    padding: 0 15px;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    background: rgba(20, 25, 35, 0.8);
}

.f_input_clean_form:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    transition: all 0.3s ease;
    background: rgba(20, 25, 35, 0.95);
}

.f_input_clean_form::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form_block_clean_form {
    padding: 3px 29px 25px 29px;
}

/* POLICY LINKS - Акцентный цвет вместо красного */
.politik {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 16px;
    padding: 24px 0 0 0;
}

.politik a {
    border-bottom: 1px dashed #2ecc71;
    text-decoration: none;
    color: #2ecc71;
}

.politik a:hover {
    border-bottom: 0;
    text-decoration: none;
    color: #1abc9c;
}

/* BUTTON - Стиль как .buttons из styles.css */
.fbutton_clean_form {
    display: block;
    height: 50px;
    border: 0;
    border-radius: 40px;
    background: linear-gradient(90deg, #2ecc71, #1abc9c);
    color: #fff;
    text-shadow: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    margin: 24px 0 0 0;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: auto;
    max-width: 205px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fbutton_clean_form:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

/* FOOTER - Тёмный стиль вместо белого */
.footer_clean_form div {
    height: 4px;
    width: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    background: rgba(30, 40, 60, 0.5);
}

.footer_clean_form span {
    background: transparent;
    display: block;
}

/* REGISTRATION RESULT - Светлый текст */
#result-registration font {
    font-size: 12px;
    display: block;
    margin: 5px 0 -4px 0;
    color: rgba(255, 255, 255, 0.8);
}

#result-registration font li {
    list-style-type: none;
}

/* CLOSE BUTTON - Обновлённый стиль */
.close_clean_form {
    position: absolute;
    top: 10px;
    right: -40px;
    cursor: pointer;
    z-index: 150;
    /* Можно заменить на SVG или символ, если изображения нет */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    opacity: 1;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.close_clean_form:before {
    content: '×';
}

.close_clean_form:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.8);
    transition: .2s;
}

/* VALIDATION - Тёмная тема */
.validation_ok {
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 11px 14px;
    margin: 15px;
    background: rgba(46, 204, 113, 0.1);
}

.validation_ok div {
    padding: 8px 0 0 0;
    color: #2ecc71;
}

.validation_ok a {
    color: #3498db;
    text-decoration: underline;
}

.validation_ok a:hover {
    text-decoration: none;
    color: #2ecc71;
}

/* RESPONSIVE - Адаптив для мобильных */
@media (max-width: 480px) {
    .clean_form {
        width: 90%;
        margin: 50px auto 100px auto;
    }
    
    .close_clean_form {
        right: 10px;
        top: 5px;
    }
}