
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /*  backdrop-filter: blur(5px);*/
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-60px) scale(0.95);
    transition: transform 0.5s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ff4757;
    background: #f1f2f6;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 2px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    margin-bottom: 20px;
    padding: 0 10px;
}

.full-width {
    width: 100%;
}

.half-width {
    width: 50%;
}

.form-row    label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
   color: #34495e;
   /* color: #6a11cb; */
    text-align: left;
    font-size: 14px;
}

.form-row      input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-row     input:focus, select:focus, textarea:focus {
    outline: none;
   /* border-color: #3498db; */
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-row    textarea {
    min-height: 120px;
    resize: vertical;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    text-align: left;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #6a11cb;
    background: #e8f4fe;
}

.upload-icon {
    font-size: 48px;
    color: #6a11cb;
    margin-bottom: 15px;
}

.image-preview {
    margin-top: 20px;
    display: none;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

.submit-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .half-width {
        width: 100%;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    h2 {
        font-size: 26px;
    }

    input, select, textarea {
        padding: 14px;
    }
}