/* Free Audit Modal Styles */
.audit-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.audit-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.audit-modal-header {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.audit-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.audit-modal-header p {
    margin: 8px 0 0 0;
    opacity: 0.95;
    font-size: 15px;
}

.audit-modal-close {
    color: white;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.audit-modal-close:hover,
.audit-modal-close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.audit-modal-body {
    padding: 35px 30px;
}

.audit-form-group {
    margin-bottom: 22px;
}

.audit-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.audit-form-group input,
.audit-form-group textarea,
.audit-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E2E2;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.audit-form-group input:focus,
.audit-form-group textarea:focus,
.audit-form-group select:focus,
.audit-form-group input[type="checkbox"]:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.audit-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.audit-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.audit-submit-btn {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.audit-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.4);
}

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

.audit-success-message {
    display: none;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .audit-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .audit-modal-header {
        padding: 20px;
    }

    .audit-modal-header h2 {
        font-size: 24px;
    }

    .audit-modal-body {
        padding: 25px 20px;
    }
}
