/* File upload styles */
.file-upload-container {
    margin-top: 5px;
}

.file-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-dropzone.has-file {
    padding: 15px;
}

.file-dropzone.dragover {
    border-color: #1a73e8;
    background-color: #f8f9fa;
}

.file-dropzone-content {
    color: #666;
    width: 100%;
}

.file-dropzone-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.file-dropzone-text {
    font-size: 14px;
    display: block;
}

.file-name-display {
    font-size: 14px;
    margin-top: 5px;
    word-break: break-all;
    text-align: center;
    display: none;
}

.file-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #ff0000;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: none;
    z-index: 2;
}

.file-remove-btn:hover {
    color: #cc0000;
}

/* Когда файл выбран */
.file-dropzone.has-file .file-dropzone-icon,
.file-dropzone.has-file .file-dropzone-text {
    display: none;
}

.file-dropzone.has-file .file-name-display {
    display: block;
}

.b-popup-cheaper__form .radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
    margin: 8px 0;
}

.b-popup-cheaper__form .radio-label {
    color: var(--text-color);
    transition: color var(--transition);
}

.b-popup-cheaper__form .radio-container:hover .radio-label {
    color: var(--primary-color);
}

.b-popup-cheaper__form  .radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.b-popup-cheaper__form .radio-checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all var(--transition);
}

.b-popup-cheaper__form .radio-container:hover input ~ .radio-checkmark {
    border-color: var(--primary-color-hover);
}

.b-popup-cheaper__form .radio-container input:checked ~ .radio-checkmark {
    border-color: var(--primary-color);
    background-color: var(--bg-color);
}

.b-popup-cheaper__form .radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.b-popup-cheaper__form .radio-container input:checked ~ .radio-checkmark:after {
    display: block;
    animation: radio-fade 0.2s ease;
}

.b-popup-cheaper__form .user-consent {
    display: flex;
    flex-direction: column;
}

.b-popup-cheaper__form .user-consent-item .checkbox__label {
    display: block;
    font-size: 0.8rem;
}

.b-popup-cheaper__form .user-consent-item a {
    text-decoration: underline;
}

@keyframes radio-fade {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
}

.checkbox__input {
    position: absolute;
    cursor: pointer;
    height: 15px;
    width: 15px;
    left: 0;
    top: 2px;
}

.checkbox__checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 15px;
    width: 15px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkbox__checkmark {
    border-color: #888;
}

.checkbox__input:checked ~ .checkbox__checkmark {
    background-color: #2196F3;
    border-color: #2196F3;
}

.checkbox__checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 3px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox__input:checked ~ .checkbox__checkmark:after {
    display: block;
}

.checkbox__input:focus ~ .checkbox__checkmark {
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

/* Button styles */
.btn-primary {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #0d5bba;
}

/* Alert styles */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}