.proposal-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.proposal-title {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.proposal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.proposal-type-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proposal-type-btn:hover {
    background: #e0e0e0;
}

.proposal-type-btn.active {
    background: #007bff;
    color: white;
}

.proposal-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #333;
    margin-bottom: 1rem;
}

.form-type-selector {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.form-type-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.form-type-selector input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.file-upload-section {
    margin: 2rem 0;
}

.file-upload-container {
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

/* Добавляем стили для кнопки отмены */
.submit-btn[style*="background: #6c757d"] {
    transition: background 0.3s ease;
}

.submit-btn[style*="background: #6c757d"]:hover {
    background: #5a6268 !important;
}

/* Стили для flash сообщений */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
}

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

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

/* Progress tracking styles */
.form-progress {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Milestone markers */
.milestone-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.milestone-marker.completed {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Celebration animation */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFF;
    border-radius: 50%;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Progress status */
.progress-status {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

/* Milestone achievement popup */
.milestone-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.milestone-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.milestone-popup .icon {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}